1.代客下单 客位费
This commit is contained in:
parent
373fb2bdf0
commit
dc0f6eae1e
|
|
@ -996,7 +996,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||
|
||||
boolean mealCost = false;
|
||||
for (TbCashierCart cashierCart : cashierCarts) {
|
||||
if ("客位费".equals(cashierCart.getName())) {
|
||||
if ("-999".equals(cashierCart.getProductId())) {
|
||||
mealCost = true;
|
||||
}
|
||||
totalAmount = totalAmount.add(cashierCart.getTotalAmount());
|
||||
|
|
@ -1524,6 +1524,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||
tbCashierCart.setPlaceNum(1);
|
||||
tbCashierCart.setProductId("-999");
|
||||
tbCashierCart.setSkuId("-999");
|
||||
tbCashierCart.setPackFee(BigDecimal.ZERO);
|
||||
tbCashierCartMapper.insert(tbCashierCart);
|
||||
}else {
|
||||
tbCashierCart.setTotalAmount(new BigDecimal(choseCountDTO.getNum()).multiply(BigDecimal.ONE));
|
||||
|
|
|
|||
Loading…
Reference in New Issue