浏览代码

no message

FengChaoYu 1 月之前
父节点
当前提交
1e3d9d5046
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      mall-server-api/src/main/java/com/gree/mall/manager/logic/goods/GoodsLogic.java

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

@@ -75,7 +75,6 @@ public class GoodsLogic {
     public IPage<GoodsSpecBean> page(String flag, String keyword, BigDecimal startPrice, BigDecimal endPrice,
                                      String goodsSortJson, String categoryId, Boolean status,
                                      Integer pageNum, Integer pageSize, HttpServletRequest request) {
-        System.out.println("开始" + DateUtil.formatDateTime(DateUtil.date()));
         //获取当前登录微信企业微信id
         AdminUserCom adminUser = commonLogic.getAdminUser(request);
         List<String> companyWechatIds = adminUser.getCompanyWechatIds();
@@ -210,6 +209,7 @@ public class GoodsLogic {
      * @return
      */
     public GoodsSpecBean detail(String goodsId, Boolean allStorageSpec) throws RemoteServiceException {
+        System.out.println("开始" + DateUtil.formatDateTime(DateUtil.date()));
         Goods goods = goodsService.getById(goodsId);
         final GoodsDetail goodsDetail = !allStorageSpec ? goodsDetailService.getById(goodsId) : null;
         List<GoodsSpec> goodsSpecs = goodsSpecService.lambdaQuery()
@@ -234,6 +234,7 @@ public class GoodsLogic {
 
         List<GoodsSpecVO> goodsSpecVOS = BeanUtil.copyToList(goodsSpecs, GoodsSpecVO.class);
         List<GoodsSpecVO> groupGoodsSpecVOS = new ArrayList<>();
+        System.out.println("商品规格开始" + DateUtil.formatDateTime(DateUtil.date()));
         for (GoodsSpecVO goodsSpecVO : goodsSpecVOS) {
             GoodsMaterial goodsMaterial = goodsMaterialService.getById(goodsSpecVO.getGoodsCode());
 
@@ -277,6 +278,7 @@ public class GoodsLogic {
             goodsBean.setTemplateId(goodsTemplates.get(0).getTemplateId());
         }
         //查询商品标签
+        System.out.println("商品标签开始" + DateUtil.formatDateTime(DateUtil.date()));
         List<GoodsTagRela> goodsTagRela = goodsTagRelaService.lambdaQuery().eq(GoodsTagRela::getGoodsId, goodsId)
                 .eq(GoodsTagRela::getType, 1).list();
         if (goodsTagRela.size() > 0) {
@@ -292,6 +294,7 @@ public class GoodsLogic {
         }
 
         // 文档列表
+        System.out.println("文档列表开始" + DateUtil.formatDateTime(DateUtil.date()));
         final List<GoodsDocumentsRela> relaList = goodsDocumentsRelaService.lambdaQuery()
                 .eq(GoodsDocumentsRela::getGoodsId, goodsId)
                 .list();
@@ -314,7 +317,7 @@ public class GoodsLogic {
             }
             goodsBean.setGoodsDocumentsRelaList(relaBeanList);
         }
-
+        System.out.println("结束" + DateUtil.formatDateTime(DateUtil.date()));
         return goodsBean;
     }