|
@@ -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)) {
|