自动巡检注释
This commit is contained in:
parent
674d4ac41a
commit
8385b592f8
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user