空单
This commit is contained in:
@@ -549,6 +549,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public CzgResult<Object> mergeOrder(MergeOrderDTO param) {
|
public CzgResult<Object> mergeOrder(MergeOrderDTO param) {
|
||||||
if (param.getTargetOrderId() == null && StrUtil.isBlank(param.getTargetTableCode())) {
|
if (param.getTargetOrderId() == null && StrUtil.isBlank(param.getTargetTableCode())) {
|
||||||
throw new CzgException("转台失败,请选择目标台桌后转台");
|
throw new CzgException("转台失败,请选择目标台桌后转台");
|
||||||
@@ -601,6 +602,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
|
|||||||
}
|
}
|
||||||
if(param.getAllMerge()==1){
|
if(param.getAllMerge()==1){
|
||||||
shopTableService.updateStatus(sourceOrder.getShopId(), null, sourceOrder.getTableCode(), ShopTableStatusEnum.IDLE.getValue());
|
shopTableService.updateStatus(sourceOrder.getShopId(), null, sourceOrder.getTableCode(), ShopTableStatusEnum.IDLE.getValue());
|
||||||
|
orderInfoService.remove(new QueryWrapper().eq(OrderInfo::getId, sourceOrder.getId()));
|
||||||
}
|
}
|
||||||
shopTableService.updateStatus(sourceOrder.getShopId(), null, targetOrder.getTableCode(), ShopTableStatusEnum.UNSETTLED.getValue());
|
shopTableService.updateStatus(sourceOrder.getShopId(), null, targetOrder.getTableCode(), ShopTableStatusEnum.UNSETTLED.getValue());
|
||||||
return CzgResult.success();
|
return CzgResult.success();
|
||||||
|
|||||||
Reference in New Issue
Block a user