From 83bafd091561ebe0c54387caa1ba88eb6119ae02 Mon Sep 17 00:00:00 2001 From: qi Date: Fri, 17 Apr 2020 17:56:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lq/cms/emun/AjaxResultEnum.java | 10 +++++++++- .../com/lq/cms/service/impl/AdminBaseServiceImpl.java | 4 ++++ .../lq/cms/service/impl/SysPermissionServiceImpl.java | 4 ---- .../lq/cms/service/impl/SysResourceServiceImpl.java | 3 --- .../impl/SysRoleResourcePermissionServiceImpl.java | 3 --- src/main/profile/dev/email.properties | 4 ++-- src/main/profile/test/email.properties | 4 ++-- 7 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/lq/cms/emun/AjaxResultEnum.java b/src/main/java/com/lq/cms/emun/AjaxResultEnum.java index db29edf..57b459a 100644 --- a/src/main/java/com/lq/cms/emun/AjaxResultEnum.java +++ b/src/main/java/com/lq/cms/emun/AjaxResultEnum.java @@ -5,9 +5,17 @@ package com.lq.cms.emun; * 结果返回结果枚举 **/ public enum AjaxResultEnum { - + /** + * 成功返回值 + */ SUCCESS(200,"操作成功!"), + /** + * 警告返回值 + */ WARN(400,"参数不合法!"), + /** + * 异常返回值 + */ ERROR(500,"系统异常!") ; diff --git a/src/main/java/com/lq/cms/service/impl/AdminBaseServiceImpl.java b/src/main/java/com/lq/cms/service/impl/AdminBaseServiceImpl.java index bc2db78..97b6151 100755 --- a/src/main/java/com/lq/cms/service/impl/AdminBaseServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/AdminBaseServiceImpl.java @@ -18,6 +18,10 @@ import java.util.List; */ public abstract class AdminBaseServiceImpl implements AdminBaseService{ + /** + * 返回dao + * @return + */ abstract AdminBaseDao getAdminBaseDao(); @Override 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 bf20ccf..a902264 100644 --- a/src/main/java/com/lq/cms/service/impl/SysPermissionServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/SysPermissionServiceImpl.java @@ -28,10 +28,6 @@ public class SysPermissionServiceImpl implements SysPermissionService{ @Autowired private SysPermissionDao sysPermissionDao; - @Autowired - private SysResourceDao sysResourceDao; - @Autowired - private SysUserDao sysUserDao; @Override public List findListPage(SysPermissionVo vo) { diff --git a/src/main/java/com/lq/cms/service/impl/SysResourceServiceImpl.java b/src/main/java/com/lq/cms/service/impl/SysResourceServiceImpl.java index 260b67f..01276fe 100755 --- a/src/main/java/com/lq/cms/service/impl/SysResourceServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/SysResourceServiceImpl.java @@ -73,9 +73,7 @@ public class SysResourceServiceImpl implements SysResourceService { menusItem.add(menus); } list.add(menusItem); - }); - return list; } @@ -103,7 +101,6 @@ public class SysResourceServiceImpl implements SysResourceService { } list.add(menusItem); } - return list; } } 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 001b7bc..d19aa8d 100755 --- a/src/main/java/com/lq/cms/service/impl/SysRoleResourcePermissionServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/SysRoleResourcePermissionServiceImpl.java @@ -81,7 +81,6 @@ public class SysRoleResourcePermissionServiceImpl implements SysRoleResourcePer } ztreeItem.add(ztreeItme1); } - ztreeList.add(ztreeItem); } return ztreeList; @@ -110,9 +109,7 @@ public class SysRoleResourcePermissionServiceImpl implements SysRoleResourcePer sysRoleResourcePermission.setStatus(StatusTypeEnum.STATUS_ACTIVITY_YES.getValue()); sysRoleResourcePermissionDao.update(sysRoleResourcePermission); } - } - return true; } diff --git a/src/main/profile/dev/email.properties b/src/main/profile/dev/email.properties index 6e1c704..2b5251d 100644 --- a/src/main/profile/dev/email.properties +++ b/src/main/profile/dev/email.properties @@ -1,4 +1,4 @@ email.host=smtp.163.com email.port=25 -email.username=qi_liang_gz@163.com -email.password=a970209468 \ No newline at end of file +email.username= +email.password= \ No newline at end of file diff --git a/src/main/profile/test/email.properties b/src/main/profile/test/email.properties index 6e1c704..2b5251d 100644 --- a/src/main/profile/test/email.properties +++ b/src/main/profile/test/email.properties @@ -1,4 +1,4 @@ email.host=smtp.163.com email.port=25 -email.username=qi_liang_gz@163.com -email.password=a970209468 \ No newline at end of file +email.username= +email.password= \ No newline at end of file