| | |
| | | import com.yeshi.fanli.dto.pdd.PDDSearchFilter;
|
| | | import com.yeshi.fanli.service.inter.goods.PDDCommonTemplateContentService;
|
| | | import com.yeshi.fanli.util.pinduoduo.PinDuoDuoApiUtil;
|
| | | import com.yeshi.fanli.util.pinduoduo.PinDuoDuoUtil;
|
| | |
|
| | | @Service
|
| | | public class PDDCommonTemplateContentServiceImpl implements PDDCommonTemplateContentService {
|
| | |
| | | pddfilter.setPage(page);
|
| | | pddfilter.setPageSize(pageSize);
|
| | | pddfilter.setSortType(22);
|
| | | pddfilter.setHasCoupon(false);
|
| | | if ("-1".equalsIgnoreCase(cid)) {
|
| | | pddfilter.setOptId(-1L);
|
| | | } else {
|
| | |
| | | pddfilter.setCatId(catId);
|
| | | pddfilter.setOptId(catId);
|
| | | }
|
| | | return PinDuoDuoApiUtil.searchGoods(pddfilter);
|
| | | return PinDuoDuoUtil.getBrandGoods(pddfilter);
|
| | | }
|
| | | return null;
|
| | | }
|