代客下单选择人数增加用餐类型

This commit is contained in:
SongZhang 2024-09-23 09:56:54 +08:00
parent f5d64cbb4a
commit 0fdae37924
1 changed files with 2 additions and 0 deletions

View File

@ -1603,11 +1603,13 @@ public class TbShopTableServiceImpl implements TbShopTableService {
tbCashierCart.setPackFee(BigDecimal.ZERO);
tbCashierCart.setNumber(choseCountDTO.getNum());
tbCashierCart.setTotalNumber(choseCountDTO.getNum());
tbCashierCart.setUseType(choseCountDTO.getUseType());
tbCashierCartMapper.insert(tbCashierCart);
} else {
tbCashierCart.setTotalAmount(new BigDecimal(choseCountDTO.getNum()).multiply(shopInfo.getTableFee()));
tbCashierCart.setNumber(choseCountDTO.getNum());
tbCashierCart.setTotalNumber(choseCountDTO.getNum());
tbCashierCart.setUseType(choseCountDTO.getUseType());
tbCashierCartMapper.updateById(tbCashierCart);
}