餐位费支持删除
This commit is contained in:
@@ -512,6 +512,15 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||
.eq(TbOrderDetail::getOrderId, cashierCart.getOrderId()));
|
||||
}
|
||||
|
||||
// 修改订单餐位费信息
|
||||
if (cashierCart.getOrderId() != null && cashierCart.getId() == -999) {
|
||||
orderInfoMapper.update(null, new LambdaUpdateWrapper<TbOrderInfo>()
|
||||
.eq(TbOrderInfo::getId, cashierCart.getOrderId())
|
||||
.eq(TbOrderInfo::getShopId, removeCartDTO.getShopId())
|
||||
.set(TbOrderInfo::getSeatCount, null)
|
||||
.set(TbOrderInfo::getSeatAmount, null));
|
||||
}
|
||||
|
||||
cashierCartMapper.deleteById(cashierCart.getId());
|
||||
|
||||
if (removeCartDTO.getTableId() != null) {
|
||||
|
||||
Reference in New Issue
Block a user