Эх сурвалжийг харах

fix:修改服务月增加的地方

ly 10 сар өмнө
parent
commit
d2467b8e30

+ 2 - 2
src/main/java/cn/ezhizao/project/business/order/service/impl/BizArchiveInputServiceImpl.java

@@ -632,7 +632,7 @@ public class BizArchiveInputServiceImpl extends ServiceImpl<BizArchiveInputMappe
                                                     && v.getContractDetailId().equals(inputDetail.getId())
                                                     && v.getTaskTypeId().equals(inputDetail.getTaskTypeId())
                                             ).forEach(v->{
-                                                v.setServiceNum(i+1);
+                                                v.setServiceNum(i);
                                                 v.setFreeNum(0);
                                             });
                                 }
@@ -723,7 +723,7 @@ public class BizArchiveInputServiceImpl extends ServiceImpl<BizArchiveInputMappe
         int monthDiff = endCalendar.get(Calendar.MONTH) - startCalendar.get(Calendar.MONTH);
 
         // 总的月份差异
-        return yearDiff * 12 + monthDiff;
+        return yearDiff * 12 + monthDiff+1;
     }
     public static int getMonthNum(int i, List<BizWorkOrderDetail> list) {
         int total = 0;