Browse Source

首道工序是小卷成退的bug修改

fangpy 17 hours ago
parent
commit
31f65de89a

+ 3 - 0
cx-aps/cx-aps-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ApsServiceImpl.java

@@ -408,7 +408,10 @@ public class ApsServiceImpl implements ApsService {
                 apsPlanStartDate = DateUtil.date().offset(DateField.HOUR, a);
             }
         }
+        String formatdate = DateUtil.format(apsPlanStartDate, "yyyy-MM-dd HH:mm");
+        apsPlanStartDate = DateUtil.parse(formatdate,"yyyy-MM-dd HH:mm");
         Date finalApsPlanStartDate = apsPlanStartDate;
+
         /*Date finalApsPlanStartDate = Date.from(
                 LocalDateTime.now().plusDays(1).withHour(12).withMinute(0).withSecond(0).atZone(ZoneId.systemDefault()).toInstant());*/
         if (cdorders != null && cdorders.size() > 0) {