From 282ad15b44658386d42b8b3cc2dae2b814057f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E5=AE=87=E5=A5=87?= Date: Mon, 15 Sep 2025 14:28:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xkt/service/impl/StoreOrderServiceImpl.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreOrderServiceImpl.java b/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreOrderServiceImpl.java index 7c70bd162..4a598d7f1 100644 --- a/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreOrderServiceImpl.java +++ b/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreOrderServiceImpl.java @@ -67,8 +67,6 @@ public class StoreOrderServiceImpl implements IStoreOrderService { @Autowired private StoreProductColorSizeMapper storeProductColorSizeMapper; @Autowired - private StoreProductColorPriceMapper storeProductColorPriceMapper; - @Autowired private StoreColorMapper storeColorMapper; @Autowired private StoreProductColorMapper storeProductColorMapper; @@ -127,7 +125,6 @@ public class StoreOrderServiceImpl implements IStoreOrderService { StoreProduct sp = spMap.get(spcs.getStoreProdId()); StoreColor sc = scMap.get(spcs.getStoreColorId()); orderDetail.setStoreProdId(sp.getId()); -// orderDetail.setProdName(sp.getProdName()); orderDetail.setProdArtNum(sp.getProdArtNum()); orderDetail.setProdTitle(sp.getProdTitle()); orderDetail.setStoreColorId(sc.getId()); @@ -1836,14 +1833,8 @@ public class StoreOrderServiceImpl implements IStoreOrderService { * @return */ private BigDecimal calcPrice(Long orderUserId, StoreProductColorSize storeProductColorSize) { - - StoreProductColorPrice productColorPrice = storeProductColorPriceMapper.selectOne(Wrappers - .lambdaQuery(StoreProductColorPrice.class) - .eq(StoreProductColorPrice::getStoreProdId, storeProductColorSize.getStoreProdId()) - .eq(StoreProductColorPrice::getStoreColorId, storeProductColorSize.getStoreColorId()) - .eq(XktBaseEntity::getDelFlag, Constants.UNDELETED)); - Assert.notNull(productColorPrice, "无法获取商品定价"); - BigDecimal price = productColorPrice.getPrice(); + Assert.notNull(storeProductColorSize.getPrice(), "无法获取商品定价"); + BigDecimal price = storeProductColorSize.getPrice(); if (ProductSizeStatus.UN_STANDARD.getValue().equals(storeProductColorSize.getStandard())) { //非标准尺码 throw new ServiceException("商品尺码异常");