|
@@ -90,7 +90,11 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
|
|
|
if(in.getProcessStatus()>1)in.setProcessStatus(1);
|
|
if(in.getProcessStatus()>1)in.setProcessStatus(1);
|
|
|
|
|
|
|
|
boolean flag=false;
|
|
boolean flag=false;
|
|
|
- if (SecurityUtils.hashRoles(UserRolesType.INSPECTORS.getCode())){
|
|
|
|
|
|
|
+ if (user.getUserId().equals(user.getSuperiorId())){
|
|
|
|
|
+ in.setProcessStatus(2);
|
|
|
|
|
+ sysUserMapper.userAddDuration(in.getAid(),in.getDuration());
|
|
|
|
|
+ projectTaskMapper.projectAddDuration(in.getPid(),in.getDuration());
|
|
|
|
|
+ }else if (SecurityUtils.hashRoles(UserRolesType.INSPECTORS.getCode())){
|
|
|
in.setProcessStatus(2);
|
|
in.setProcessStatus(2);
|
|
|
sysUserMapper.userAddDuration(in.getAid(),in.getDuration());
|
|
sysUserMapper.userAddDuration(in.getAid(),in.getDuration());
|
|
|
projectTaskMapper.projectAddDuration(in.getPid(),in.getDuration());
|
|
projectTaskMapper.projectAddDuration(in.getPid(),in.getDuration());
|