From 529d8e179403e6bbb10884ee9f66a37c146e000b Mon Sep 17 00:00:00 2001 From: tamguo Date: Wed, 1 Aug 2018 16:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/sys/model/condition/SysUserCondition.java | 7 +++++++ .../tamguo/modules/sys/service/ISysUserService.java | 4 ++++ .../modules/sys/service/impl/SysUserServiceImpl.java | 10 ++++++++++ .../com/tamguo/modules/sys/web/SecAdminController.java | 5 +++-- .../src/main/resources/mappers/sys/SysUserMapper.xml | 4 ++++ .../templates/modules/sys/corpAdmin/index.html | 7 ++----- .../resources/templates/modules/sys/secAdmin/add.html | 10 ++++++++-- .../templates/modules/sys/secAdmin/index.html | 1 + .../templates/modules/sys/user/dataScope.html | 2 +- 9 files changed, 40 insertions(+), 10 deletions(-) diff --git a/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/condition/SysUserCondition.java b/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/condition/SysUserCondition.java index 4299d6b..a87e171 100644 --- a/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/condition/SysUserCondition.java +++ b/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/condition/SysUserCondition.java @@ -18,6 +18,7 @@ public class SysUserCondition { private String postCode; private String status; private String userType; + private String mgrType; private String orderBy; @@ -117,5 +118,11 @@ public class SysUserCondition { public void setOrderBy(String orderBy) { this.orderBy = orderBy; } + public String getMgrType() { + return mgrType; + } + public void setMgrType(String mgrType) { + this.mgrType = mgrType; + } } diff --git a/tamguo-oms/src/main/java/com/tamguo/modules/sys/service/ISysUserService.java b/tamguo-oms/src/main/java/com/tamguo/modules/sys/service/ISysUserService.java index 7df970f..abf47ee 100644 --- a/tamguo-oms/src/main/java/com/tamguo/modules/sys/service/ISysUserService.java +++ b/tamguo-oms/src/main/java/com/tamguo/modules/sys/service/ISysUserService.java @@ -8,6 +8,7 @@ import com.tamguo.modules.sys.model.SysUserDataScopeEntity; import com.tamguo.modules.sys.model.SysUserEntity; import com.tamguo.modules.sys.model.SysUserRoleEntity; import com.tamguo.modules.sys.model.condition.SysUserCondition; +import com.tamguo.modules.sys.model.enums.SysUserMgrTypeEnum; import com.tamguo.modules.sys.utils.Result; public interface ISysUserService extends IService{ @@ -39,6 +40,9 @@ public interface ISysUserService extends IService{ /** 保存用户数据权限*/ public void saveUserDataScope(SysUserEntity user); + + /** 保存用户数据权限*/ + public void saveUserDataScope(SysUserEntity user , SysUserMgrTypeEnum mgrType); /** 停用账号*/ public Result disable(String userCode); diff --git a/tamguo-oms/src/main/java/com/tamguo/modules/sys/service/impl/SysUserServiceImpl.java b/tamguo-oms/src/main/java/com/tamguo/modules/sys/service/impl/SysUserServiceImpl.java index 2b9bb12..4a4f07e 100644 --- a/tamguo-oms/src/main/java/com/tamguo/modules/sys/service/impl/SysUserServiceImpl.java +++ b/tamguo-oms/src/main/java/com/tamguo/modules/sys/service/impl/SysUserServiceImpl.java @@ -233,4 +233,14 @@ public class SysUserServiceImpl extends ServiceImpl and u.user_type = #{userType} + + and u.mgr_Type = #{mgrType} + + order by ${orderBy} diff --git a/tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html b/tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html index 13655ab..b9d4459 100644 --- a/tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html +++ b/tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html @@ -25,11 +25,12 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
+
@@ -94,10 +95,6 @@ $('#dataGrid').dataGrid({ return ''+(val||row.id)+''; }}, {header:'用户昵称', name:'userName', index:'a.user_name', width:200, align:"center"}, - {header:'租户代码', name:'corpCode_', index:'a.corp_code', width:200, align:"center", formatter: function(val, obj, row, act){ - return ''+val+''; - }}, - {header:'租户名称', name:'corpName_', index:'a.corp_name', width:200, align:"center"}, {header:'电子邮箱', name:'email', index:'a.email', width:200, align:"center"}, {header:'手机号码', name:'mobile', index:'a.mobile', width:200, align:"center"}, {header:'办公电话', name:'phone', index:'a.phone', width:200, align:"center"}, diff --git a/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/add.html b/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/add.html index 1f6c433..93163b0 100644 --- a/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/add.html +++ b/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/add.html @@ -28,7 +28,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
- +

@@ -101,7 +101,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/> - \ No newline at end of file diff --git a/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html b/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html index 1db5b98..da35707 100644 --- a/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html +++ b/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html @@ -30,6 +30,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
+
diff --git a/tamguo-oms/src/main/resources/templates/modules/sys/user/dataScope.html b/tamguo-oms/src/main/resources/templates/modules/sys/user/dataScope.html index a185b6e..dd3c9b1 100644 --- a/tamguo-oms/src/main/resources/templates/modules/sys/user/dataScope.html +++ b/tamguo-oms/src/main/resources/templates/modules/sys/user/dataScope.html @@ -101,7 +101,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/> -