自动巡检注释

This commit is contained in:
PC 2026-03-03 14:14:05 +08:00
parent 674d4ac41a
commit 8385b592f8

View File

@ -311,6 +311,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
.where(EBIKE_BIKE_INFO.BIKE_CODE.in(launchVo.getBikeCodes())) .where(EBIKE_BIKE_INFO.BIKE_CODE.in(launchVo.getBikeCodes()))
.update(); .update();
List<String> bikeCodes = launchVo.getBikeCodes(); List<String> bikeCodes = launchVo.getBikeCodes();
//自动巡检
for (String bikeCode : bikeCodes) { for (String bikeCode : bikeCodes) {
EbikeCarrierConfiguration configuration = orderConfigurationService.getConfigurationByOperationId(region.getOperatorId()); EbikeCarrierConfiguration configuration = orderConfigurationService.getConfigurationByOperationId(region.getOperatorId());
redisUtil.saveInspectionOrder(bikeCode, null, configuration != null ? configuration.getInspectionIntervalDuration() : 30L, TimeUnit.DAYS); redisUtil.saveInspectionOrder(bikeCode, null, configuration != null ? configuration.getInspectionIntervalDuration() : 30L, TimeUnit.DAYS);
@ -324,6 +325,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
.where(EBIKE_BIKE_INFO.BIKE_CODE.in(launchVo.getBikeCodes())) .where(EBIKE_BIKE_INFO.BIKE_CODE.in(launchVo.getBikeCodes()))
.update(); .update();
List<String> bikeCodes = launchVo.getBikeCodes(); List<String> bikeCodes = launchVo.getBikeCodes();
//移除自动巡检
for (String bikeCode : bikeCodes) { for (String bikeCode : bikeCodes) {
redisUtil.deleteInspectionOrder(bikeCode); redisUtil.deleteInspectionOrder(bikeCode);
} }