Commit 9da0911a authored by lcl's avatar lcl

Merge branch 'zuhuduan' of http://192.168.60.201/root/dsk-operate-sys into zuhuduan

parents 5b499777 9e6c4c2a
...@@ -49,9 +49,9 @@ spring: ...@@ -49,9 +49,9 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562 # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题) # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://139.9.157.49:3306/dsk_operate?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://47.104.91.229:3306/dsk_operate?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: dev username: dev
password: 8AXjjCHZ666! password: zfTFIJjaN#6xB83r
# 从库数据源 # 从库数据源
# slave: # slave:
# lazy: true # lazy: true
......
...@@ -17,12 +17,12 @@ public enum UserType { ...@@ -17,12 +17,12 @@ public enum UserType {
/** /**
* pc端 * pc端
*/ */
SYS_USER("sys_user"), SYS_USER("00"),
/** /**
* app端 * app端
*/ */
APP_USER("app_user"); APP_USER("01");
private final String userType; private final String userType;
......
...@@ -88,7 +88,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService { ...@@ -88,7 +88,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
List<Long> ids = StreamUtils.toList(deptList, SysDept::getDeptId); List<Long> ids = StreamUtils.toList(deptList, SysDept::getDeptId);
ids.add(user.getDeptId()); ids.add(user.getDeptId());
w.in("u.dept_id", ids); w.in("u.dept_id", ids);
}); }).orderByDesc("u.create_time");
return wrapper; return wrapper;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment