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