修改注解

master
星期八 5 years ago
parent d8e0614990
commit d8da06e524
  1. 1
      src/main/java/com/lq/cms/service/impl/SysLogServiceImpl.java
  2. 1
      src/main/java/com/lq/cms/web/wechat/WechatInfoController.java
  3. 7
      src/main/java/com/lq/code/util/DataValidatorUtil.java
  4. 3
      src/main/java/com/lq/code/util/FileUtil.java
  5. 2
      src/main/java/com/lq/code/util/InterfaceProxyFactoryUtil.java
  6. 3
      src/main/java/com/lq/code/util/StringUtil.java
  7. 2
      src/main/java/com/lq/code/util/jdbc/mode/DbInfo.java
  8. 2
      src/main/java/com/lq/code/util/jdbc/mode/Table.java
  9. 4
      src/main/java/com/lq/code/util/mybatisPlus/xml/InsertMappserXmlDtl.java
  10. 11
      src/main/java/com/lq/dao/WechatMessageDao.java
  11. 4
      src/main/java/com/lq/wechat/util/DecriptTest.java
  12. 3
      src/main/java/com/lq/wechat/util/IoUtil.java

@ -6,6 +6,7 @@ import com.lq.code.dao.BaseDao;
import com.lq.dao.SysLogDao; import com.lq.dao.SysLogDao;
import com.lq.entity.SysLog; import com.lq.entity.SysLog;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;

@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpSession;
import java.util.Date; import java.util.Date;
import java.util.Map; import java.util.Map;

@ -3,7 +3,8 @@ package com.lq.code.util;
import java.util.regex.Pattern; import java.util.regex.Pattern;
/** /**
* Created by qi_liang on 2018/1/25. * 数据验证
* @author qi
*/ */
public class DataValidatorUtil { public class DataValidatorUtil {
@ -127,8 +128,4 @@ public class DataValidatorUtil {
return Pattern.matches(REGEX_IP_ADDR, ipAddr); return Pattern.matches(REGEX_IP_ADDR, ipAddr);
} }
public static void main(String[] args) {
String phone="135";
System.out.println(isMobile(phone));
}
} }

@ -8,7 +8,8 @@ import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;
/** /**
* Created by qi on 2018-1-20. * 文件工具类
* @author qi
*/ */
public class FileUtil { public class FileUtil {

@ -8,7 +8,7 @@ import java.lang.reflect.Proxy;
/** /**
* 为接口提供动态代理方式可以尝试模拟 JPA * 为接口提供动态代理方式可以尝试模拟 JPA
* Created by qi_liang on 2018/4/23. * @author qi
*/ */
public class InterfaceProxyFactoryUtil implements InvocationHandler { public class InterfaceProxyFactoryUtil implements InvocationHandler {

@ -5,7 +5,8 @@ import java.util.Random;
import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.ThreadLocalRandom;
/** /**
* Created by qi on 2017/8/13. * string工具类
* @author qi
*/ */
public class StringUtil { public class StringUtil {

@ -2,7 +2,7 @@ package com.lq.code.util.jdbc.mode;
/** /**
* 数据库详情 * 数据库详情
* Created by qi_liang on 2018/6/10. * @author qi
*/ */
public class DbInfo { public class DbInfo {
/** /**

@ -4,7 +4,7 @@ import java.util.List;
/** /**
* 数据库表 * 数据库表
* Created by qi_liang on 2018/6/2. * @author qi
*/ */
public class Table { public class Table {

@ -2,6 +2,10 @@ package com.lq.code.util.mybatisPlus.xml;
import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
*
* @author qi
*/
@XStreamAlias("insert") @XStreamAlias("insert")
public class InsertMappserXmlDtl { public class InsertMappserXmlDtl {

@ -8,8 +8,17 @@ import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
public interface WechatMessageDao extends AdminBaseDao<WechatMessage,WechatMessageVo> { public interface WechatMessageDao extends AdminBaseDao<WechatMessage,WechatMessageVo> {
/**
*
* @param wechatMessageVo
* @return
*/
List<WechatMessage> findAllByWechatMessageVo(WechatMessageVo wechatMessageVo); List<WechatMessage> findAllByWechatMessageVo(WechatMessageVo wechatMessageVo);
/**
*
* @param ruleId
* @return
*/
WechatMessage findByRuleId(@Param("ruleId")Long ruleId); WechatMessage findByRuleId(@Param("ruleId")Long ruleId);
} }

@ -8,6 +8,10 @@ import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom; import java.security.SecureRandom;
/**
*
* @author qi
*/
public class DecriptTest { public class DecriptTest {
public static String SHA1(String decript) { public static String SHA1(String decript) {

@ -6,7 +6,8 @@ import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
/** /**
* Created by qi on 2017/8/3. * io工具类
* @author qi
*/ */
public class IoUtil { public class IoUtil {

Loading…
Cancel
Save