Bladeren bron

Merge branch 'feature-bieao' of lift-manager/lift-server into develop

bieao 5 jaren geleden
bovenliggende
commit
e1cc5b0d50

+ 3 - 3
lift-business-service/src/main/java/cn/com/ty/lift/business/maintenance/service/MaintenanceRecordService.java

@@ -258,13 +258,13 @@ public class MaintenanceRecordService extends ServiceImpl<MaintenanceRecordMappe
             return RestResponse.fail(MessageUtils.get("msg.add.fail"));
         }
         //若保养时间在计划时间之前,则需要修改维保计划
-        boolean compareResult = request.getCurrentTime().isBefore(plan.getPlanDate());
-        if (compareResult) {
+        //boolean compareResult = request.getCurrentTime().isBefore(plan.getPlanDate());
+        //if (compareResult) {
             boolean modifyPlan = modifyPlan(request);
             if (!modifyPlan) {
                 return RestResponse.fail(MessageUtils.get("msg.modify.fail"));
             }
-        }
+        //}
         Optional<Lift> lift = liftService.getOne(null, liftId);
         if (lift.isPresent()) {
             Lift l = lift.get();