Parcourir la source

工序去掉了准备时间

yaoyq il y a 3 ans
Parent
commit
698cc321a6

+ 3 - 2
imcs-admin-boot/imcs-business-biz/src/main/java/com/github/zuihou/business/operationManagementCenter/service/impl/TaskServiceImpl.java

@@ -288,8 +288,9 @@ public class TaskServiceImpl extends SuperServiceImpl<TTaskMapper, TTask> implem
                                     candidateProcess.setRunTime(bomProcedureProgram.getRunTime());
                                 }else{
                                     candidateProcess.setProcedureId(bomProcedure.getId());
-                                    candidateProcess.setDuration(bomProcedure.getPrepareWorkhours().intValue() + bomProcedure.getRatedWorkhours().intValue());
-                                    candidateProcess.setRunTime(bomProcedure.getPrepareWorkhours() + bomProcedure.getRatedWorkhours());
+                                    //candidateProcess.setDuration(bomProcedure.getPrepareWorkhours().intValue() + bomProcedure.getRatedWorkhours().intValue());
+                                    candidateProcess.setDuration(bomProcedure.getRatedWorkhours().intValue());
+                                    candidateProcess.setRunTime( bomProcedure.getRatedWorkhours());
                                 }
                                 if(!candidateProcesses.contains(candidateProcess)){
                                     candidateProcesses.add(candidateProcess);