From ef09658de7fd7fec83c10983beb2145d9b4f7992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Thu, 7 Nov 2024 10:23:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=A2=E5=BA=A7?= =?UTF-8?q?=E8=B4=B9=E6=B2=A1=E6=9C=89=E4=BC=9A=E5=91=98=E4=BB=B7=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cashier/service/impl/shopimpl/TbShopTableServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/shopimpl/TbShopTableServiceImpl.java b/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/shopimpl/TbShopTableServiceImpl.java index b1450c00..cb5043f4 100644 --- a/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/shopimpl/TbShopTableServiceImpl.java +++ b/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/shopimpl/TbShopTableServiceImpl.java @@ -2326,6 +2326,7 @@ public class TbShopTableServiceImpl implements TbShopTableService { tbCashierCart.setTableId(choseCountDTO.getTableId()); tbCashierCart.setName("客座费"); tbCashierCart.setSalePrice(shopInfo.getTableFee()); + tbCashierCart.setMemberPrice(shopInfo.getTableFee()); tbCashierCart.setMasterId(choseCountDTO.getMasterId()); tbCashierCart.setShopId(String.valueOf(choseCountDTO.getShopId())); tbCashierCart.setTradeDay(DateUtils.getDay()); @@ -2340,6 +2341,7 @@ public class TbShopTableServiceImpl implements TbShopTableService { tbCashierCart.setUseType(choseCountDTO.getUseType()); tbCashierCartMapper.insert(tbCashierCart); } else { + tbCashierCart.setMemberPrice(shopInfo.getTableFee()); tbCashierCart.setStatus(TableConstant.CashierCart.Status.CREATE.getValue()); tbCashierCart.setTotalAmount(new BigDecimal(choseCountDTO.getNum()).multiply(shopInfo.getTableFee())); tbCashierCart.setNumber(choseCountDTO.getNum());