Commit 1e741efd by YG8999

保洁记录

parent de9f9c98
......@@ -200,6 +200,7 @@ public class SCleanRecordsServiceImpl implements ISCleanRecordsService
LambdaQueryWrapper<SCleanRecords> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SCleanRecords::getStatus,1);
queryWrapper.eq(SCleanRecords::getConsumerId,sCleanRecords.getConsumerId());
queryWrapper.ne(SCleanRecords::getId,sCleanRecords.getId());
List<SCleanRecords> list = sCleanRecordsMapper.selectList(queryWrapper);
if (list.size() > 0) {
throw new RuntimeException("当前用户有未结束的保洁任务");
......
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