Min 9 bulan lalu
induk
melakukan
9b1fd3f0e0

+ 5 - 0
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/ProjectServiceImpl.java

@@ -14408,6 +14408,11 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
         }else {
             resultList=projectMapper.groupExpendProcessListForChart(null,companyId,startDate,endDate,null,regularDeptIds,projectIdList,groupNameList);
         }
+        resultList.forEach(i->{
+            BigDecimal planHour = new BigDecimal(String.valueOf(i.get("planHour")));
+            planHour=planHour.subtract(new BigDecimal(String.valueOf(i.get("afterSetPlanHour"))));
+            i.put("planHour",planHour.intValue());
+        });
         msg.setData(resultList);
         return msg;
     }