|
|
@@ -16,6 +16,7 @@ import com.ruoyi.system.mapper.SysUserMapper;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Service
|
|
|
@@ -91,11 +92,14 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
|
|
|
newP.setProcessStatus(in.getProcessStatus());
|
|
|
if (in.getProcessStatus()==2){
|
|
|
ProjectStaffRecord use = projectStaffRecordMapper.selectByPrimaryKey(in.getId());
|
|
|
- if (use.getProcessStatus()==1){
|
|
|
+ if (use.getProcessStatus()!=1){
|
|
|
AjaxResult.error("项目流程无需审核!");
|
|
|
}
|
|
|
sysUserMapper.userAddDuration(use.getAid(),use.getDuration());
|
|
|
projectTaskMapper.projectAddDuration(use.getPid(),use.getDuration());
|
|
|
+ newP.setExamineName(SecurityUtils.getLoginUser().getUser().getNickName());
|
|
|
+ newP.setExamineId(SecurityUtils.getUserId());
|
|
|
+ newP.setExamineTime(new Date());
|
|
|
}
|
|
|
projectStaffRecordMapper.updateByPrimaryKeySelective(newP);
|
|
|
addRecordLog(in);
|