Parcourir la source

添加测试log

杨展威 il y a 1 an
Parent
commit
26243e2ef0

+ 1 - 0
feifan-module-mall/feifan-module-trade-biz/src/main/java/cn/newfeifan/mall/module/trade/controller/admin/delivery/DeliveryExpressTemplateController.java

@@ -85,6 +85,7 @@ public class DeliveryExpressTemplateController {
     @Operation(summary = "获得快递运费模板分页")
     @Operation(summary = "获得快递运费模板分页")
     @PreAuthorize("@ss.hasPermission('trade:delivery:express-template:query')")
     @PreAuthorize("@ss.hasPermission('trade:delivery:express-template:query')")
     public CommonResult<PageResult<DeliveryExpressTemplateRespVO>> getDeliveryExpressTemplatePage(@Valid DeliveryExpressTemplatePageReqVO pageVO) {
     public CommonResult<PageResult<DeliveryExpressTemplateRespVO>> getDeliveryExpressTemplatePage(@Valid DeliveryExpressTemplatePageReqVO pageVO) {
+        System.out.println("执行分类查询");
         PageResult<DeliveryExpressTemplateDO> pageResult = deliveryExpressTemplateService.getDeliveryExpressTemplatePage(pageVO);
         PageResult<DeliveryExpressTemplateDO> pageResult = deliveryExpressTemplateService.getDeliveryExpressTemplatePage(pageVO);
         return success(DeliveryExpressTemplateConvert.INSTANCE.convertPage(pageResult));
         return success(DeliveryExpressTemplateConvert.INSTANCE.convertPage(pageResult));
     }
     }

+ 4 - 0
feifan-module-mall/feifan-module-trade-biz/src/main/java/cn/newfeifan/mall/module/trade/service/delivery/DeliveryExpressTemplateServiceImpl.java

@@ -17,6 +17,7 @@ import cn.newfeifan.mall.module.trade.dal.mysql.delivery.DeliveryExpressTemplate
 import cn.newfeifan.mall.module.trade.service.delivery.bo.DeliveryExpressTemplateRespBO;
 import cn.newfeifan.mall.module.trade.service.delivery.bo.DeliveryExpressTemplateRespBO;
 import com.alibaba.fastjson.JSONObject;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.data.redis.core.StringRedisTemplate;
 import org.springframework.data.redis.core.StringRedisTemplate;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -40,6 +41,7 @@ import static cn.newfeifan.mall.module.trade.enums.ErrorCodeConstants.EXPRESS_TE
  */
  */
 @Service
 @Service
 @Validated
 @Validated
+@Slf4j
 public class DeliveryExpressTemplateServiceImpl implements DeliveryExpressTemplateService {
 public class DeliveryExpressTemplateServiceImpl implements DeliveryExpressTemplateService {
 
 
     @Resource
     @Resource
@@ -247,8 +249,10 @@ public class DeliveryExpressTemplateServiceImpl implements DeliveryExpressTempla
             ShopBO shop = new ShopBO();
             ShopBO shop = new ShopBO();
             shop.setShopId(adminUserDO.getShopId());
             shop.setShopId(adminUserDO.getShopId());
             shop.setMerId(adminUserDO.getMerchantId());
             shop.setMerId(adminUserDO.getMerchantId());
+            log.info("====shop:{}",shop);
             return shop;
             return shop;
         } else {
         } else {
+            log.info("====shop:{}",s);
            return JSONObject.parseObject(s, ShopBO.class);
            return JSONObject.parseObject(s, ShopBO.class);
         }
         }
     }
     }