diff --git a/ebike-operations/src/main/java/com/cdzy/operations/service/impl/EbikeBikeInfoServiceImpl.java b/ebike-operations/src/main/java/com/cdzy/operations/service/impl/EbikeBikeInfoServiceImpl.java index 90d4ee3..3eb1007 100644 --- a/ebike-operations/src/main/java/com/cdzy/operations/service/impl/EbikeBikeInfoServiceImpl.java +++ b/ebike-operations/src/main/java/com/cdzy/operations/service/impl/EbikeBikeInfoServiceImpl.java @@ -311,6 +311,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl bikeCodes = launchVo.getBikeCodes(); + //自动巡检 for (String bikeCode : bikeCodes) { EbikeCarrierConfiguration configuration = orderConfigurationService.getConfigurationByOperationId(region.getOperatorId()); redisUtil.saveInspectionOrder(bikeCode, null, configuration != null ? configuration.getInspectionIntervalDuration() : 30L, TimeUnit.DAYS); @@ -324,6 +325,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl bikeCodes = launchVo.getBikeCodes(); + //移除自动巡检 for (String bikeCode : bikeCodes) { redisUtil.deleteInspectionOrder(bikeCode); }