功能完善
This commit is contained in:
parent
d5ebe3420b
commit
5b4914da1d
|
|
@ -120,14 +120,15 @@ public class BackApplyServiceImpl implements BackApplyService {
|
||||||
int num = 0;
|
int num = 0;
|
||||||
Set<String> roles = SecurityUtils.getLoginUser().getRoles();
|
Set<String> roles = SecurityUtils.getLoginUser().getRoles();
|
||||||
String username = SecurityUtils.getLoginUser().getUsername();
|
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")) {
|
if (roles.contains("jjfgs") || roles.contains("admin")) {
|
||||||
record.setStatus("1");
|
record.setStatus("1");
|
||||||
return backApplyMapper.audit(record);
|
backApplyMapper.audit(record);
|
||||||
}
|
}
|
||||||
if (roles.contains("tsfgs") || roles.contains("admin")) {
|
if (roles.contains("tsfgs") || roles.contains("admin")) {
|
||||||
record.setStatus("3");
|
record.setStatus("3");
|
||||||
return backApplyMapper.audit(record);
|
backApplyMapper.audit(record);
|
||||||
}
|
}
|
||||||
List<Integer> taskIdById = backApplyMapper.getTaskIdById(record);
|
List<Integer> taskIdById = backApplyMapper.getTaskIdById(record);
|
||||||
if (CollUtil.isNotEmpty(taskIdById)) {
|
if (CollUtil.isNotEmpty(taskIdById)) {
|
||||||
|
|
@ -141,7 +142,7 @@ public class BackApplyServiceImpl implements BackApplyService {
|
||||||
record.setTaskStatus("38");
|
record.setTaskStatus("38");
|
||||||
backApplyMapper.updateTmTask(record);
|
backApplyMapper.updateTmTask(record);
|
||||||
}
|
}
|
||||||
return 0;
|
return num;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue