buzhanyi 2 years ago
parent
commit
62404eab05

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

@@ -33,7 +33,6 @@ import com.ozs.system.mapper.SysFileRefMapper;
 import com.ozs.system.service.ISysDeptService;
 import com.ozs.system.service.ISysDictTypeService;
 import com.ozs.system.service.SysFileService;
-import com.sun.xml.internal.bind.util.Which;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;

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

@@ -1080,7 +1080,7 @@ public class PlanYearsServiceImpl extends ServiceImpl<PlanYearsMapper, PlanYears
         SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
         Date thresholdTime = dateFormat.parse(thresholdMap.get("起止时间结束"));
 
-        double surplus = thresholdTime.getTime() - new Date().getTime();
+        double surplus = thresholdTime.getTime() - System.currentTimeMillis();
         //少于一周便提醒
         if (surplus < remindTine && surplus > 0) {
             //剩余天数(向上取整)

+ 1 - 1
purchase-system/src/main/java/com/ozs/pm/service/impl/PmDemandServiceImpl.java

@@ -1391,7 +1391,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
         //提示信息:定义距离结束时间一周内提示
         Integer remindTine = 1000 * 60 * 60 * 24 * 7;
         //少于一周便提醒
-        double surplus = planDeliverTime.getTime() - new Date().getTime();
+        double surplus = planDeliverTime.getTime() - System.currentTimeMillis();
         if (surplus < remindTine) {
             int i = new Double(Math.ceil(surplus / 1000 / 60 / 60 / 24)).intValue();
             //剩余天数(向上取整)