吉安感知网项目-后端
linwei
yesterday 08ddfad4530a014094c06fe68b8c2d9a0753403a
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/service/impl/FwDeviceMaintainRecordServiceImpl.java
@@ -65,7 +65,7 @@
      // 维护时间
      Date maintainTime = entity.getMaintainTime();
      // 查询计划的规则
      // 关联查询维护计划,缺失则不允许保存记录
      FwDeviceMaintainPlanEntity fwDeviceMaintainPlan = fwDeviceMaintainPlanService.getById(entity.getPlanId());
      if (null == fwDeviceMaintainPlan) {
         return false;
@@ -74,7 +74,7 @@
      // 验证维护时间是否符合计划周期
      boolean isInCycle = validateMaintainTimeInCycle(maintainTime, fwDeviceMaintainPlan);
      // 在当前周期内修改计划维修状态
      // 在计划周期内才更新计划的维护状态
      if (isInCycle) {
         updatePlanMaintainStatus(fwDeviceMaintainPlan, maintainTime);
      }