Browse Source

add logger

xushengqiang 5 years ago
parent
commit
2275f59e2f

+ 1 - 1
src/main/java/cn/efunbox/audio/controller/hag/HagOrderController.java

@@ -34,7 +34,7 @@ public class HagOrderController {
     @PostMapping
     public HagSkillResp sync(@RequestBody HagSkillReq skillReq) {
 
-        log.info("HAG sync order param : {}", JSON.toJSONString(skillReq));
+        log.info("HAG sync param : {}", JSON.toJSONString(skillReq));
         HagSkillResp hagSkillResp = new HagSkillResp();
         HagSkillReq.HagHeader header = skillReq.getHeader();
         if (Objects.isNull(header)) {

+ 1 - 0
src/main/java/cn/efunbox/audio/impl/hag/HagContentServiceImpl.java

@@ -32,6 +32,7 @@ public class HagContentServiceImpl implements HagContentService {
     @Override
     public HagBaseResp list(HagContentReq hagContentReq) {
 
+        log.info("hag request content data param : {}",JSON.toJSONString(hagContentReq));
         Pagination paginationReq = hagContentReq.getPagination();
         Integer limit = paginationReq.getLimit();
         if (Objects.isNull(limit)) {

+ 4 - 5
src/main/java/cn/efunbox/audio/impl/hag/HagProductServiceImpl.java

@@ -1,11 +1,12 @@
 package cn.efunbox.audio.impl.hag;
 
 import cn.efunbox.audio.entity.hag.HagProduct;
-import cn.efunbox.audio.repository.hag.HagContentRepository;
 import cn.efunbox.audio.repository.hag.HagProductRepository;
 import cn.efunbox.audio.service.hag.HagProductService;
 import cn.efunbox.audio.utils.DateUtil;
 import cn.efunbox.audio.vo.hag.*;
+import com.alibaba.fastjson.JSON;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
@@ -19,18 +20,16 @@ import java.util.Objects;
  * HagProductServiceImpl
  * Created by xusq on 2019/12/25.
  */
+@Slf4j
 @Service
 public class HagProductServiceImpl implements HagProductService {
 
     @Autowired
     private HagProductRepository hagProductRepository;
 
-    @Autowired
-    private HagContentRepository hagContentRepository;
-
     @Override
     public HagProductResp list(HagProductReq productReq) {
-
+        log.info("hag request product data param : {}", JSON.toJSONString(productReq));
         Pagination paginationReq = productReq.getPagination();
         Integer limit = paginationReq.getLimit();
         if (Objects.isNull(limit)) {