Commit 78dfe59e by 吕明尚

订单结束15分钟后直接删除redis

parent d0e10c26
...@@ -321,16 +321,6 @@ public class RedisTask { ...@@ -321,16 +321,6 @@ public class RedisTask {
redisUtil.delete(key); redisUtil.delete(key);
} }
} else { } else {
SCleanRecords sCleanRecords = isCleanRecordsService.getOne(new LambdaQueryWrapper<SCleanRecords>().
eq(SCleanRecords::getRoomId, sOrder.getRoomId()).
eq(SCleanRecords::getStatus, CleaningStatusEnum.CLEANING.getCode()));
List<SOrder> orderList = orderService.list(new LambdaQueryWrapper<SOrder>()
.eq(SOrder::getRoomId, sOrder.getRoomId())
.eq(SOrder::getStatus, OrderStatusEnum.INUSE.getCode()));
if (ObjectUtils.isEmpty(sCleanRecords) && CollectionUtils.isEmpty(orderList)) {
deviceOpService.openOrCloseDevice(sOrder.getRoomId(), sOrder.getConsumerPhone(), OpTypeEnum.CUT_ELECTRIC.getCode(), false, 0L,
DeviceOpSourceEnum.DEVICE_SOURCE_20.getCode());
}
redisUtil.delete(key); redisUtil.delete(key);
} }
}); });
......
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