fix: 清空购物车修改
This commit is contained in:
parent
0a89b6d67c
commit
b13db23b90
|
|
@ -1533,9 +1533,13 @@ public class OrderService {
|
||||||
mpCashierCartMapper.deleteBatchIds(ids);
|
mpCashierCartMapper.deleteBatchIds(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Long count = mpCashierCartService.countByShopEatType(shopEatTypeInfoDTO, cartVo.getMasterId(), orderId, false, TableConstant.OrderInfo.Status.CREATE, TableConstant.OrderInfo.Status.RETURN);
|
||||||
|
if (count == 0) {
|
||||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||||
.eq(TbShopTable::getQrcode, cartVo.getTableId())
|
.eq(TbShopTable::getQrcode, cartVo.getTableId())
|
||||||
.set(TbShopTable::getStatus, TableStateEnum.IDLE.getState()));
|
.set(TbShopTable::getStatus, TableStateEnum.IDLE.getState()));
|
||||||
|
}
|
||||||
|
|
||||||
// 打印退款票据
|
// 打印退款票据
|
||||||
int finalOrderId = orderId;
|
int finalOrderId = orderId;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue