From 5a2d6f49d49e0cb2e3d082eff17db2270b62e1d0 Mon Sep 17 00:00:00 2001 From: qi Date: Tue, 3 Mar 2020 12:23:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lq/cms/service/impl/SysLogServiceImpl.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/lq/cms/service/impl/SysLogServiceImpl.java b/src/main/java/com/lq/cms/service/impl/SysLogServiceImpl.java index c5a807a..6c84403 100755 --- a/src/main/java/com/lq/cms/service/impl/SysLogServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/SysLogServiceImpl.java @@ -3,7 +3,6 @@ package com.lq.cms.service.impl; import com.lq.cms.service.SysLogService; import com.lq.cms.vo.SysLogVo; import com.lq.code.dao.BaseDao; -import com.lq.code.service.impl.BaseServiceImpl; import com.lq.dao.SysLogDao; import com.lq.entity.SysLog; import org.springframework.beans.factory.annotation.Autowired; From 4759f73050c9d383fcebbdf2d7eaa4b0e6af04bd Mon Sep 17 00:00:00 2001 From: qi Date: Tue, 3 Mar 2020 12:25:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lq/cms/service/impl/SysPermissionServiceImpl.java | 3 --- .../service/impl/SysRoleResourcePermissionServiceImpl.java | 1 - src/main/java/com/lq/cms/service/impl/SysRoleServiceImpl.java | 1 - src/main/java/com/lq/cms/service/impl/SysUserServiceImpl.java | 1 - .../java/com/lq/cms/service/impl/WechatInfoServiceImpl.java | 2 +- .../processor/InstantiationTracingBeanPostProcessor.java | 4 ++++ src/main/java/com/lq/code/util/HttpUtil.java | 2 +- src/main/java/com/lq/code/util/HttpsClient.java | 2 +- src/main/java/com/lq/entity/SysFile.java | 1 + src/main/java/com/lq/entity/SysPermission.java | 1 + src/main/java/com/lq/entity/SysResource.java | 1 + src/main/java/com/lq/entity/SysRole.java | 1 + src/main/java/com/lq/entity/SysRoleResourcePermission.java | 1 + src/main/java/com/lq/entity/SysUser.java | 1 + src/main/java/com/lq/entity/SysUserRole.java | 1 + src/main/java/com/lq/entity/WechatAccessToken.java | 1 + src/main/java/com/lq/entity/WechatInfo.java | 1 + src/main/java/com/lq/entity/WechatInfoSetting.java | 1 + src/main/java/com/lq/entity/WechatKeyword.java | 1 + src/main/java/com/lq/entity/WechatMessage.java | 1 + src/main/java/com/lq/entity/WechatUser.java | 1 + 21 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/lq/cms/service/impl/SysPermissionServiceImpl.java b/src/main/java/com/lq/cms/service/impl/SysPermissionServiceImpl.java index 5e218e4..bf20ccf 100644 --- a/src/main/java/com/lq/cms/service/impl/SysPermissionServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/SysPermissionServiceImpl.java @@ -4,13 +4,11 @@ import com.lq.cms.emun.StatusTypeEnum; import com.lq.cms.service.SysPermissionService; import com.lq.cms.vo.SysPermissionVo; import com.lq.code.dao.BaseDao; -import com.lq.code.service.impl.BaseServiceImpl; import com.lq.code.util.BeanUtil; import com.lq.dao.SysPermissionDao; import com.lq.dao.SysResourceDao; import com.lq.dao.SysUserDao; import com.lq.entity.SysPermission; -import com.lq.entity.SysResource; import com.lq.entity.SysUser; import org.apache.shiro.SecurityUtils; import org.apache.shiro.subject.Subject; @@ -19,7 +17,6 @@ import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; -import java.util.Optional; /** * @Author: qi diff --git a/src/main/java/com/lq/cms/service/impl/SysRoleResourcePermissionServiceImpl.java b/src/main/java/com/lq/cms/service/impl/SysRoleResourcePermissionServiceImpl.java index 2d678d6..1165514 100755 --- a/src/main/java/com/lq/cms/service/impl/SysRoleResourcePermissionServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/SysRoleResourcePermissionServiceImpl.java @@ -10,7 +10,6 @@ import com.lq.cms.service.SysRoleResourcePermissionService; import com.lq.cms.vo.PermissionVo; import com.lq.cms.vo.SysRoleResourcePermissionVo; import com.lq.code.dao.BaseDao; -import com.lq.code.service.impl.BaseServiceImpl; import com.lq.dao.SysPermissionDao; import com.lq.dao.SysResourceDao; import com.lq.dao.SysRoleResourcePermissionDao; diff --git a/src/main/java/com/lq/cms/service/impl/SysRoleServiceImpl.java b/src/main/java/com/lq/cms/service/impl/SysRoleServiceImpl.java index 3a8ed0e..07e6373 100755 --- a/src/main/java/com/lq/cms/service/impl/SysRoleServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/SysRoleServiceImpl.java @@ -5,7 +5,6 @@ import com.lq.cms.service.SysRoleService; import com.lq.cms.vo.SysRoleVo; import com.lq.cms.vo.SysUserRoleVo; import com.lq.code.dao.BaseDao; -import com.lq.code.service.impl.BaseServiceImpl; import com.lq.dao.SysRoleDao; import com.lq.dao.SysRoleResourcePermissionDao; import com.lq.dao.SysUserRoleDao; diff --git a/src/main/java/com/lq/cms/service/impl/SysUserServiceImpl.java b/src/main/java/com/lq/cms/service/impl/SysUserServiceImpl.java index 872eade..d2f7528 100755 --- a/src/main/java/com/lq/cms/service/impl/SysUserServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/SysUserServiceImpl.java @@ -3,7 +3,6 @@ package com.lq.cms.service.impl; import com.lq.cms.service.SysUserService; import com.lq.cms.vo.SysUserVo; import com.lq.code.dao.BaseDao; -import com.lq.code.service.impl.BaseServiceImpl; import com.lq.code.util.Md5Util; import com.lq.dao.SysUserDao; import com.lq.dao.SysUserRoleDao; diff --git a/src/main/java/com/lq/cms/service/impl/WechatInfoServiceImpl.java b/src/main/java/com/lq/cms/service/impl/WechatInfoServiceImpl.java index ff1277b..898815e 100755 --- a/src/main/java/com/lq/cms/service/impl/WechatInfoServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/WechatInfoServiceImpl.java @@ -3,7 +3,6 @@ package com.lq.cms.service.impl; import com.lq.cms.service.WechatInfoService; import com.lq.cms.vo.WechatInfoVo; import com.lq.code.dao.BaseDao; -import com.lq.code.service.impl.BaseServiceImpl; import com.lq.dao.WechatInfoDao; import com.lq.entity.WechatInfo; import org.springframework.beans.factory.annotation.Autowired; @@ -13,6 +12,7 @@ import java.util.List; /** * Created by qi_liang on 2018/6/21. + * @author qi */ @Service public class WechatInfoServiceImpl implements WechatInfoService { diff --git a/src/main/java/com/lq/code/executor/processor/InstantiationTracingBeanPostProcessor.java b/src/main/java/com/lq/code/executor/processor/InstantiationTracingBeanPostProcessor.java index 613e41f..1c6ac3b 100755 --- a/src/main/java/com/lq/code/executor/processor/InstantiationTracingBeanPostProcessor.java +++ b/src/main/java/com/lq/code/executor/processor/InstantiationTracingBeanPostProcessor.java @@ -10,6 +10,8 @@ import com.lq.code.util.sql.factory.impl.DefaultDbBuilerFactory; import org.springframework.context.ApplicationListener; import org.springframework.context.event.ContextRefreshedEvent; +import java.util.Arrays; +import java.util.List; import java.util.Set; /** @@ -45,6 +47,8 @@ public class InstantiationTracingBeanPostProcessor implements ApplicationListene //需要执行的逻辑代码,当spring容器初始化完成后就会执行该方法。 //扫描实体类 if (isUpdateDB) { + List packageList = Arrays.asList(packagePath.split(",")); + Set set = BeanUtil.getClassSet(packagePath); // QueueDto queueDto = BeanUtil.getQueueDto(packagePath); DbBuilerFactory dbBuilerFactory = new DefaultDbBuilerFactory(); diff --git a/src/main/java/com/lq/code/util/HttpUtil.java b/src/main/java/com/lq/code/util/HttpUtil.java index 9f14ac0..e708e5e 100755 --- a/src/main/java/com/lq/code/util/HttpUtil.java +++ b/src/main/java/com/lq/code/util/HttpUtil.java @@ -17,7 +17,7 @@ public class HttpUtil { BufferedReader in=null; try { String urlNameString=url+"?"+param; - URL reaulUrl=new URL("http://www.baidu.com"); + URL reaulUrl=new URL(urlNameString); URLConnection connection=reaulUrl.openConnection(); // 设置通用的请求属性 diff --git a/src/main/java/com/lq/code/util/HttpsClient.java b/src/main/java/com/lq/code/util/HttpsClient.java index 03d3efe..0c2a874 100755 --- a/src/main/java/com/lq/code/util/HttpsClient.java +++ b/src/main/java/com/lq/code/util/HttpsClient.java @@ -128,7 +128,7 @@ public class HttpsClient { private static HttpPost getMultipartPost(String url,String boundarStr) { /* 这里设置一些post的头部信息,具体求百度吧 */ - HttpPost post = new HttpPost(url); + HttpPost post = new HttpPost(url); post.addHeader("Connection", "keep-alive"); post.addHeader("Accept", "*/*"); post.addHeader("Content-Type", "multipart/form-data;boundary=" diff --git a/src/main/java/com/lq/entity/SysFile.java b/src/main/java/com/lq/entity/SysFile.java index 768142f..ba91589 100755 --- a/src/main/java/com/lq/entity/SysFile.java +++ b/src/main/java/com/lq/entity/SysFile.java @@ -7,6 +7,7 @@ import java.util.Date; /** * 系统文件 * Created by qi_liang on 2018/3/25. + * @author qi */ public class SysFile extends IdEntity { /** diff --git a/src/main/java/com/lq/entity/SysPermission.java b/src/main/java/com/lq/entity/SysPermission.java index 4e475b9..8bbcc32 100755 --- a/src/main/java/com/lq/entity/SysPermission.java +++ b/src/main/java/com/lq/entity/SysPermission.java @@ -6,6 +6,7 @@ import java.util.Date; /** 权限表 * Created by qi on 2017-11-29. + * @author qi */ public class SysPermission extends IdEntity{ diff --git a/src/main/java/com/lq/entity/SysResource.java b/src/main/java/com/lq/entity/SysResource.java index e1fa37c..19b1b64 100755 --- a/src/main/java/com/lq/entity/SysResource.java +++ b/src/main/java/com/lq/entity/SysResource.java @@ -6,6 +6,7 @@ import java.util.Date; /** 资源表 * Created by qi on 2017-11-29. + * @author qi */ public class SysResource extends IdEntity { diff --git a/src/main/java/com/lq/entity/SysRole.java b/src/main/java/com/lq/entity/SysRole.java index b13e615..c350cf6 100755 --- a/src/main/java/com/lq/entity/SysRole.java +++ b/src/main/java/com/lq/entity/SysRole.java @@ -6,6 +6,7 @@ import java.util.Date; /** 角色表 * Created by qi on 2017-11-29. + * @author qi */ public class SysRole extends IdEntity { diff --git a/src/main/java/com/lq/entity/SysRoleResourcePermission.java b/src/main/java/com/lq/entity/SysRoleResourcePermission.java index be3683c..0eab996 100755 --- a/src/main/java/com/lq/entity/SysRoleResourcePermission.java +++ b/src/main/java/com/lq/entity/SysRoleResourcePermission.java @@ -6,6 +6,7 @@ import java.util.Date; /** 权限角色资源关联表 * Created by qi on 2017-11-29. + * @author qi */ public class SysRoleResourcePermission extends IdEntity { diff --git a/src/main/java/com/lq/entity/SysUser.java b/src/main/java/com/lq/entity/SysUser.java index 88f97f0..a5f6da9 100755 --- a/src/main/java/com/lq/entity/SysUser.java +++ b/src/main/java/com/lq/entity/SysUser.java @@ -6,6 +6,7 @@ import java.util.Date; /** 用户表 * Created by qi on 2017-11-29. + * @author qi */ public class SysUser extends IdEntity { diff --git a/src/main/java/com/lq/entity/SysUserRole.java b/src/main/java/com/lq/entity/SysUserRole.java index 7e2419c..e22a91e 100755 --- a/src/main/java/com/lq/entity/SysUserRole.java +++ b/src/main/java/com/lq/entity/SysUserRole.java @@ -6,6 +6,7 @@ import java.util.Date; /** 用户角色表 * Created by qi on 2017-11-29. + * @author qi */ public class SysUserRole extends IdEntity { diff --git a/src/main/java/com/lq/entity/WechatAccessToken.java b/src/main/java/com/lq/entity/WechatAccessToken.java index 3bb89ad..57cb1d8 100755 --- a/src/main/java/com/lq/entity/WechatAccessToken.java +++ b/src/main/java/com/lq/entity/WechatAccessToken.java @@ -7,6 +7,7 @@ import java.util.Date; /** * 微信公众号-获取accessToken * Created by qi_liang on 2018/5/24. + * @author qi */ public class WechatAccessToken extends IdEntity{ /** diff --git a/src/main/java/com/lq/entity/WechatInfo.java b/src/main/java/com/lq/entity/WechatInfo.java index 7b53f02..ba366f9 100755 --- a/src/main/java/com/lq/entity/WechatInfo.java +++ b/src/main/java/com/lq/entity/WechatInfo.java @@ -7,6 +7,7 @@ import java.util.Date; /** * 微信公众号配置 * Created by qi_liang on 2018/5/24. + * @author qi */ public class WechatInfo extends IdEntity { diff --git a/src/main/java/com/lq/entity/WechatInfoSetting.java b/src/main/java/com/lq/entity/WechatInfoSetting.java index f0bca6d..f6d9371 100644 --- a/src/main/java/com/lq/entity/WechatInfoSetting.java +++ b/src/main/java/com/lq/entity/WechatInfoSetting.java @@ -4,6 +4,7 @@ import com.lq.code.entity.IdEntity; /** * 微信公众号设置表 + * @author qi */ public class WechatInfoSetting extends IdEntity { diff --git a/src/main/java/com/lq/entity/WechatKeyword.java b/src/main/java/com/lq/entity/WechatKeyword.java index fd898fe..5b57e88 100755 --- a/src/main/java/com/lq/entity/WechatKeyword.java +++ b/src/main/java/com/lq/entity/WechatKeyword.java @@ -7,6 +7,7 @@ import java.util.Date; /** * 微信公众号-规则-关键字 * 设计理念:微信公众号规则表与关键字表是一对多的关系。这张表等同于规则表的扩展字段,因此该表会直接和规则表发生关联(@Link wechatRuleId) + * @author qi */ public class WechatKeyword extends IdEntity { /** diff --git a/src/main/java/com/lq/entity/WechatMessage.java b/src/main/java/com/lq/entity/WechatMessage.java index a514d8e..aeb15da 100755 --- a/src/main/java/com/lq/entity/WechatMessage.java +++ b/src/main/java/com/lq/entity/WechatMessage.java @@ -12,6 +12,7 @@ import java.util.Date; * 坏处: * 1.在此可能衍生的问题可能是无意的修改导致其他公众号的消息也改变。 * 有牵一发而动全身的风险。 + * @author qi */ public class WechatMessage extends IdEntity{ /** diff --git a/src/main/java/com/lq/entity/WechatUser.java b/src/main/java/com/lq/entity/WechatUser.java index e5597ca..4d8f9d2 100755 --- a/src/main/java/com/lq/entity/WechatUser.java +++ b/src/main/java/com/lq/entity/WechatUser.java @@ -7,6 +7,7 @@ import java.util.Date; /** * 微信公众号用户 * Created by qi_liang on 2018/5/24. + * @author qi */ public class WechatUser extends IdEntity{ /**