功能完善

This commit is contained in:
bns_han 2024-03-18 14:04:28 +08:00
parent d5ebe3420b
commit 5b4914da1d
1 changed files with 5 additions and 4 deletions

View File

@ -120,14 +120,15 @@ public class BackApplyServiceImpl implements BackApplyService {
int num = 0;
Set<String> roles = SecurityUtils.getLoginUser().getRoles();
String username = SecurityUtils.getLoginUser().getUsername();
record.setCreateBy(username);
String userId = String.valueOf(SecurityUtils.getLoginUser().getUserid());
record.setCreateBy(userId);
if (roles.contains("jjfgs") || roles.contains("admin")) {
record.setStatus("1");
return backApplyMapper.audit(record);
backApplyMapper.audit(record);
}
if (roles.contains("tsfgs") || roles.contains("admin")) {
record.setStatus("3");
return backApplyMapper.audit(record);
backApplyMapper.audit(record);
}
List<Integer> taskIdById = backApplyMapper.getTaskIdById(record);
if (CollUtil.isNotEmpty(taskIdById)) {
@ -141,7 +142,7 @@ public class BackApplyServiceImpl implements BackApplyService {
record.setTaskStatus("38");
backApplyMapper.updateTmTask(record);
}
return 0;
return num;
}
@Override