diff --git a/src/main/java/com/glxp/api/controller/auth/SysUserController.java b/src/main/java/com/glxp/api/controller/auth/SysUserController.java index ac1e44f7..39bc4950 100644 --- a/src/main/java/com/glxp/api/controller/auth/SysUserController.java +++ b/src/main/java/com/glxp/api/controller/auth/SysUserController.java @@ -297,7 +297,7 @@ public class SysUserController extends BaseController { //默认插入第一部门 - List deptCodeList = null; + ArrayList deptCodeList = new ArrayList<>(); FilterDeptUserReqeust filterDeptUserReqeust = new FilterDeptUserReqeust(); filterDeptUserReqeust.setUserId(authUserSaveRequest.getId()); List deptUserEntities = deptUserService.selectDeptUser(filterDeptUserReqeust); diff --git a/src/main/resources/mybatis/mapper/auth/WarehouseUserDao.xml b/src/main/resources/mybatis/mapper/auth/WarehouseUserDao.xml index 0edf07bb..f09a3fac 100644 --- a/src/main/resources/mybatis/mapper/auth/WarehouseUserDao.xml +++ b/src/main/resources/mybatis/mapper/auth/WarehouseUserDao.xml @@ -286,6 +286,7 @@ AND (auth_user.employeeName = #{key} or auth_warehouse_user.userName = #{key}) + GROUP BY auth_warehouse_user.userId @@ -340,4 +341,4 @@ set isDirector = #{isDirector} where id = #{id} - \ No newline at end of file + diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrInvWarehouseDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrInvWarehouseDao.xml index a525ce38..d7cfbbdc 100644 --- a/src/main/resources/mybatis/mapper/thrsys/ThrInvWarehouseDao.xml +++ b/src/main/resources/mybatis/mapper/thrsys/ThrInvWarehouseDao.xml @@ -41,8 +41,14 @@ @@ -138,4 +144,4 @@ updateTime = #{updateTime,jdbcType=DATE} - \ No newline at end of file +