|
@@ -65,20 +65,22 @@ public class FillGatherTaskServiceImpl extends BaseServiceImpl<FillGatherTaskMap
|
|
|
public AbstractPageResultBean<FillGatherTaskVO> selectPageList(FillGatherTaskDTO record, int pageNum, int pageSize) {
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
UserInfo userInfo = SecurityUtils.getUserInfo();
|
|
|
- String userId = userInfo.getUserId();
|
|
|
- record.setCreatedUserId(userId);
|
|
|
- // 获取当前用户角色
|
|
|
- StringBuilder roleCodes = new StringBuilder();
|
|
|
- userInfo.getRoleCodes().forEach(item-> {
|
|
|
- roleCodes.append(item).append(",");
|
|
|
- });
|
|
|
- String roleArray = roleCodes.toString();
|
|
|
- if(roleArray.contains(SysRoleCodeEnum.FILL_CHECKER_LEADER.name())){
|
|
|
- record.setCreatedUserId(null);
|
|
|
- record.setCheckLeader(userId);
|
|
|
- }else if(roleArray.contains(SysRoleCodeEnum.FILL_CHECKER.name())){
|
|
|
- record.setCreatedUserId(null);
|
|
|
- record.setChecker(userId);
|
|
|
+ if(userInfo.getSuperAdmin() != 1){
|
|
|
+ String userId = userInfo.getUserId();
|
|
|
+ record.setCreatedUserId(userId);
|
|
|
+ // 获取当前用户角色
|
|
|
+ StringBuilder roleCodes = new StringBuilder();
|
|
|
+ userInfo.getRoleCodes().forEach(item-> {
|
|
|
+ roleCodes.append(item).append(",");
|
|
|
+ });
|
|
|
+ String roleArray = roleCodes.toString();
|
|
|
+ if(roleArray.contains(SysRoleCodeEnum.FILL_CHECKER_LEADER.name())){
|
|
|
+ record.setCreatedUserId(null);
|
|
|
+ record.setCheckLeader(userId);
|
|
|
+ }else if(roleArray.contains(SysRoleCodeEnum.FILL_CHECKER.name())){
|
|
|
+ record.setCreatedUserId(null);
|
|
|
+ record.setChecker(userId);
|
|
|
+ }
|
|
|
}
|
|
|
return new MyPage(mapper.selectList(record));
|
|
|
}
|