From f78396a4bae27df944d8dc3850b275654592d2d1 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, 19 Dec 2024 17:24:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E6=9B=B4=E6=94=B9=E4=B8=BAdecimal=E9=80=80=E6=AC=BE?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=88=A4=E6=96=AD=E5=A4=B1=E6=95=88=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= 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, 1 insertion(+), 1 deletion(-) 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 4b5c804a..e61a2cb0 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 @@ -876,7 +876,7 @@ public class TbShopTableServiceImpl implements TbShopTableService { if (tbOrderDetail == null) { throw new BadRequestException("购物车商品不存在或已退单"); } - if (cashierCart.getNumber().equals(removeCartDTO.getNum())) { + if (cashierCart.getNumber().compareTo(removeCartDTO.getNum()) == 0) { cashierCartMapper.update(null, new LambdaUpdateWrapper() .eq(TbCashierCart::getId, cashierCart.getId()) .set(TbCashierCart::getStatus, "return"));