This commit is contained in:
2023-06-13 11:57:41 +08:00
parent c8ff0462fe
commit 1a1dbf2f68

View File

@@ -1519,9 +1519,9 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
@Override
public void updateOrderStatusAsAbnormal(String pileSn) {
// 先从redis判断是否有订单再进行查询
if (Objects.isNull(redisCache.getCacheObject(CacheConstants.PILE_IS_CHARGING + pileSn))) {
return;
}
// if (Objects.isNull(redisCache.getCacheObject(CacheConstants.PILE_IS_CHARGING + pileSn))) {
// return;
// }
// 将此桩正在进行充电的订单状态改为 异常
List<OrderListVO> orderListVOS = selectChargingOrder(pileSn);
if (CollectionUtils.isEmpty(orderListVOS)) {