Commit 08e1d8ce by 吕明尚

修改续单查询为不等于已保洁

parent f7d476d0
......@@ -877,7 +877,9 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
}
//支付金额为0的
if (request.getPayFee().compareTo(BigDecimal.ZERO) <= 0) {
SCleanRecords sCleanRecords = isCleanRecordsService.getOne(new LambdaQueryWrapper<SCleanRecords>().eq(SCleanRecords::getRoomId, sOrder.getRoomId()));
SCleanRecords sCleanRecords = isCleanRecordsService.getOne(new LambdaQueryWrapper<SCleanRecords>()
.eq(SCleanRecords::getRoomId, sOrder.getRoomId())
.ne(SCleanRecords::getStatus, CleaningStatusEnum.CLEANED.getCode()));
if (ObjectUtil.isNotEmpty(sCleanRecords)) {
isCleanRecordsService.removeById(sCleanRecords.getId());
}
......
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