|
|
|
@ -37,6 +37,7 @@ public class EntrustServiceOrderQueryServiceImpl implements EntrustServiceOrderQ |
|
|
|
if (entrustServiceOrderDao.selectCount(new LambdaQueryWrapper<EntrustServiceOrder>() |
|
|
|
.eq(EntrustServiceOrder::getInitiatorUserId, entrustServiceOrder.getInitiatorUserId()) |
|
|
|
.eq(EntrustServiceOrder::getTargetMiId, entrustServiceOrder.getTargetMiId()) |
|
|
|
.eq(EntrustServiceOrder::getType, entrustServiceOrder.getType()) |
|
|
|
.in(EntrustServiceOrder::getStatus, Arrays.asList(EntrustServiceStatusEnum.PENDING_ACCEPT, EntrustServiceStatusEnum.ACCEPTED))) > 0) { |
|
|
|
throw new BizException("已委托过服务"); |
|
|
|
} |
|
|
|
|