fix: 就餐人数选择修改

This commit is contained in:
2024-10-31 10:39:15 +08:00
parent eaa08bd877
commit d944a9cc82

View File

@@ -1905,6 +1905,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
tbCashierCart.setUseType(choseCountDTO.getUseType());
tbCashierCartMapper.insert(tbCashierCart);
} else {
tbCashierCart.setStatus(TableConstant.CashierCart.Status.CREATE.getValue());
tbCashierCart.setTotalAmount(new BigDecimal(choseCountDTO.getNum()).multiply(shopInfo.getTableFee()));
tbCashierCart.setNumber(choseCountDTO.getNum());
tbCashierCart.setTotalNumber(choseCountDTO.getNum());