袁野 2 months ago
parent 50272e4e06
commit 53981f89e0
  1. 10
      service/src/main/java/com/hfkj/model/PublishInfoModel.java
  2. 2
      service/src/main/java/com/hfkj/service/goods/GoodsDataService.java
  3. 34
      service/src/main/java/com/hfkj/service/goods/impl/GoodsDataServiceImpl.java

@ -18,6 +18,16 @@ public class PublishInfoModel {
*/ */
String couponShareUrl; String couponShareUrl;
/**
* 搜索id建议生成推广链接时候填写提高收
*/
String searchId;
/**
* 商品goodsSign支持通过goodsSign查询商品
*/
String goodsSign;
/** /**
* 商品佣金信息 * 商品佣金信息
*/ */

@ -22,4 +22,6 @@ public interface GoodsDataService {
* @Date: 2024/9/13 下午2:41 * @Date: 2024/9/13 下午2:41
*/ */
List<GoodsModel> goodsModelTaoBaoList(JSONObject jsonObject); List<GoodsModel> goodsModelTaoBaoList(JSONObject jsonObject);
List<GoodsModel> goodsModelPddList(JSONObject jsonObject);
} }

@ -11,6 +11,7 @@ import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections;
import java.util.List; import java.util.List;
@Service("goodsDataService") @Service("goodsDataService")
@ -118,4 +119,37 @@ public class GoodsDataServiceImpl implements GoodsDataService {
return goodsModelList; return goodsModelList;
} }
@Override
public List<GoodsModel> goodsModelPddList(JSONObject jsonObject) {
// 定义数据列表
List<GoodsModel> goodsModelList = new ArrayList<>();
GoodsModel goodsModel;
// 淘客推广信息
PublishInfoModel publishInfoModel;
// 价格促销信息
PricePromotionInfoModel pricePromotionInfoModel;
// 基础信息
GoodsInfoModel goodsInfoModel;
// 商品佣金信息
IncomeInfoModel incomeInfoModel;
// 更多活动优惠
MorePromotionModel morePromotionModel;
List<MorePromotionModel> morePromotionModels;
JSONArray array = jsonObject.getJSONObject("goodsSearchResponse").getJSONArray("goodsSearchResponse");
for (Object object : array) {
JSONObject goods = (JSONObject) object;
goodsModel = new GoodsModel();
// 淘客推广信息
// 商品佣金信息
incomeInfoModel = new IncomeInfoModel();
publishInfoModel = new PublishInfoModel();
}
return Collections.emptyList();
}
} }

Loading…
Cancel
Save