Browse Source

bug--季度计划提报时间提醒

buzhanyi 2 years ago
parent
commit
bcf57c64df

+ 7 - 1
purchase-system/src/main/java/com/ozs/plan/service/impl/PlanQuarterServiceImpl.java

@@ -999,7 +999,13 @@ public class PlanQuarterServiceImpl extends ServiceImpl<PlanQuarterMapper, PlanQ
                 }
             }
             if (!ObjectUtils.isEmpty(thresholdTimeStart) && !ObjectUtils.isEmpty(thresholdTimeEnd)) {
-                if (instance.before(thresholdTimeStart) || instance.after(thresholdTimeEnd)) {
+                System.err.println("instance=" + new Date(instance.getTime().getTime()));
+                System.err.println("thresholdTimeStart=" + thresholdTimeStart);
+                System.err.println("thresholdTimeEnd=" + thresholdTimeEnd);
+                System.err.println("instance.before(thresholdTimeStart)=" + instance.before(thresholdTimeStart));
+                System.err.println("instance.after(thresholdTimeEnd)=" + instance.after(thresholdTimeEnd));
+                Date date = new Date(instance.getTime().getTime());
+                if (date.before(thresholdTimeStart) || date.after(thresholdTimeEnd)) {
                     return false;
                 }
             }