Browse Source

no message

FengChaoYu 2 tuần trước cách đây
mục cha
commit
22b31953bc

+ 1 - 1
mall-server-api/src/main/java/com/gree/mall/manager/logic/goods/GoodsLogic.java

@@ -210,7 +210,7 @@ public class GoodsLogic {
      */
     public GoodsSpecBean detail(String goodsId, Boolean allStorageSpec) throws RemoteServiceException {
         Goods goods = goodsService.getById(goodsId);
-        final GoodsDetail goodsDetail = goodsDetailService.getById(goodsId);
+        final GoodsDetail goodsDetail = !allStorageSpec ? goodsDetailService.getById(goodsId) : null;
         List<GoodsSpec> goodsSpecs = goodsSpecService.lambdaQuery()
                 .eq(GoodsSpec::getGoodsId, goodsId)
                 .eq(GoodsSpec::getDel, false)