anderx 2 vuotta sitten
vanhempi
commit
09c0da2c6f

+ 4 - 2
ruoyi-system/src/main/java/com/ruoyi/project/service/impl/ProjectStaffRecordServiceImpl.java

@@ -319,8 +319,10 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
             if (use.getProcessStatus()!=1){
                 AjaxResult.error("项目流程无需审核!");
             }
-            sysUserMapper.userAddDuration(use.getAid(),use.getDuration());
-            projectTaskMapper.projectAddDuration(use.getPid(),use.getDuration());
+            if(in.getProcessStatus()==2){
+                sysUserMapper.userAddDuration(use.getAid(),use.getDuration());
+                projectTaskMapper.projectAddDuration(use.getPid(),use.getDuration());
+            }
             newP.setExamineName(username);
             newP.setExamineId(SecurityUtils.getUserId());
             newP.setExamineTime(new Date());