Commit 8734ea03 by 吕明尚

修改人工退款断电逻辑

parent 8d57a696
...@@ -445,16 +445,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -445,16 +445,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
if (oldSOrder.getStatus().equals(OrderStatusEnum.INUSE.getCode())) { if (oldSOrder.getStatus().equals(OrderStatusEnum.INUSE.getCode())) {
// 使用中订单断电, 延时3分钟断电 // 使用中订单断电, 延时3分钟断电
deviceOpService.openOrCloseDevice(oldSOrder.getRoomId(), oldSOrder.getConsumerPhone(), deviceOpService.openOrCloseDevice(oldSOrder.getRoomId(), oldSOrder.getConsumerPhone(),
OpTypeEnum.CUT_ELECTRIC.getCode(), true, 10); OpTypeEnum.CUT_ELECTRIC.getCode(), false, 0);
// } else if (oldSOrder.getStatus().equals(OrderStatusEnum.UNUSED.getCode())) {
// LambdaQueryWrapper<SOrder> queryWrapper = new LambdaQueryWrapper<>();
// queryWrapper.eq(SOrder::getRoomId, oldSOrder.getRoomId());
// queryWrapper.eq(SOrder::getStatus, OrderStatusEnum.INUSE.getCode());
// List<SOrder> list = list(queryWrapper);
// if (CollectionUtils.isEmpty(list)) {
// deviceOpService.openOrCloseDevice(oldSOrder.getRoomId(), oldSOrder.getConsumerPhone(),
// OpTypeEnum.CUT_ELECTRIC.getCode(), true, 10);
// }
} }
} else if (oldSOrder.getOrderType().equals(OrderTypeEnum.RENEW.getCode())) { } else if (oldSOrder.getOrderType().equals(OrderTypeEnum.RENEW.getCode())) {
...@@ -475,7 +466,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -475,7 +466,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
} else { } else {
// 使用中订单断电, 延时3分钟断电 // 使用中订单断电, 延时3分钟断电
deviceOpService.openOrCloseDevice(sOrder.getRoomId(), sOrder.getConsumerPhone(), deviceOpService.openOrCloseDevice(sOrder.getRoomId(), sOrder.getConsumerPhone(),
OpTypeEnum.CUT_ELECTRIC.getCode(), true, 10); OpTypeEnum.CUT_ELECTRIC.getCode(), false, 0);
} }
} else if (one.getStatus().equals(OrderStatusEnum.INUSE.getCode())) { } else if (one.getStatus().equals(OrderStatusEnum.INUSE.getCode())) {
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment