Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
974b00ecbb
|
|
@ -616,10 +616,9 @@ public class CallTableServiceImpl extends ServiceImpl<CallTableMapper, CallTable
|
|||
|
||||
@Override
|
||||
public Boolean cancel(Long shopId, Long queueId) {
|
||||
return callQueueService.updateChain()
|
||||
.eq(CallQueue::getShopId, shopId)
|
||||
.eq(CallQueue::getId, queueId)
|
||||
.set(CallQueue::getCallTime, DateUtil.date())
|
||||
.set(CallQueue::getState, -1).update();
|
||||
CallQueue queue = new CallQueue();
|
||||
queue.setCancelTime(DateUtil.date().toLocalDateTime());
|
||||
queue.setState(-1);
|
||||
return callQueueService.update(queue, new QueryWrapper().eq(CallQueue::getShopId, shopId).eq(CallQueue::getId, queueId));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue