This commit is contained in:
mash 2024-01-11 11:01:43 +08:00
parent 25c1988e30
commit f5cd646053
2 changed files with 1 additions and 4 deletions

View File

@ -152,9 +152,6 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
wrapper.lambda().eq(StrUtil.isNotBlank(deptId), Personnel::getPresentDept, deptId); wrapper.lambda().eq(StrUtil.isNotBlank(deptId), Personnel::getPresentDept, deptId);
} else if ("dept".equals(user.getPermissions())) { } else if ("dept".equals(user.getPermissions())) {
wrapper.lambda().eq(Personnel::getPresentDept, user.getDept()); wrapper.lambda().eq(Personnel::getPresentDept, user.getDept());
} else if ("my".equals(user.getPermissions())) {
// todo 查看自己的
} else { } else {
return AjaxResult.fail("无权限"); return AjaxResult.fail("无权限");
} }

View File

@ -16,7 +16,7 @@ spring:
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/lc_oa?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true url: jdbc:mysql://192.168.2.57:3306/lc_oa?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root username: root
password: Wang09211108 password: Wang09211108
druid: druid: