Browse Source

no message

ly 1 năm trước cách đây
mục cha
commit
6c17cbe27c

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

@@ -550,7 +550,11 @@ public class BizArchiveInputServiceImpl extends ServiceImpl<BizArchiveInputMappe
                         DateTime endDate = startDate.offsetNew(DateField.MONTH, monthNun - 1);
                         // 已完成月小于结束月才会不停工单只修改完成时间。假设完成月大于剩余的结束月则直接停止。
                         // 一次都没完成的话,也要停止。
-                        if (records.stream().anyMatch(v -> (v.getYear() + v.getMonth()).compareTo(endDate.toString("yyyyMM")) >= 0) || records.isEmpty()) {
+//                        if (records.stream().anyMatch(v -> (v.getYear() + v.getMonth()).compareTo(endDate.toString("yyyyMM")) >= 0) || records.isEmpty()) {
+//                            // 停止工单
+//                            l.setIsStop(1);
+//                            l.setIsContinue(0);
+                        if (records.isEmpty()) {
                             // 停止工单
                             l.setIsStop(1);
                             l.setIsContinue(0);