代客下单选择人数增加用餐类型
This commit is contained in:
@@ -1603,11 +1603,13 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
tbCashierCart.setPackFee(BigDecimal.ZERO);
|
tbCashierCart.setPackFee(BigDecimal.ZERO);
|
||||||
tbCashierCart.setNumber(choseCountDTO.getNum());
|
tbCashierCart.setNumber(choseCountDTO.getNum());
|
||||||
tbCashierCart.setTotalNumber(choseCountDTO.getNum());
|
tbCashierCart.setTotalNumber(choseCountDTO.getNum());
|
||||||
|
tbCashierCart.setUseType(choseCountDTO.getUseType());
|
||||||
tbCashierCartMapper.insert(tbCashierCart);
|
tbCashierCartMapper.insert(tbCashierCart);
|
||||||
} else {
|
} else {
|
||||||
tbCashierCart.setTotalAmount(new BigDecimal(choseCountDTO.getNum()).multiply(shopInfo.getTableFee()));
|
tbCashierCart.setTotalAmount(new BigDecimal(choseCountDTO.getNum()).multiply(shopInfo.getTableFee()));
|
||||||
tbCashierCart.setNumber(choseCountDTO.getNum());
|
tbCashierCart.setNumber(choseCountDTO.getNum());
|
||||||
tbCashierCart.setTotalNumber(choseCountDTO.getNum());
|
tbCashierCart.setTotalNumber(choseCountDTO.getNum());
|
||||||
|
tbCashierCart.setUseType(choseCountDTO.getUseType());
|
||||||
tbCashierCartMapper.updateById(tbCashierCart);
|
tbCashierCartMapper.updateById(tbCashierCart);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user