1 接口调度流程

image.png

2 接口清单

(1)查询支持的国家接口

  1. /**
  2. * 查询有权限的国家列表
  3. * @param request 请求参数
  4. * @return com.taobao.gpf.common.ResultDTO<com.taobao.gpf.common.response.CountriesRecordDTO>
  5. */
  6. ResultDTO<List<CountriesDTO>> getCountries(CountriesRequest request);

入参:

  1. //语言
  2. protected String lang;

出参:

  1. /**
  2. * 国家代码
  3. */
  4. protected String countryCode;
  5. /**
  6. * 国家名称
  7. */
  8. protected String countryName;
  9. /**
  10. * 是否使用
  11. */
  12. protected Integer usage;

(2)查询品牌接口

  1. /**
  2. * 查询品牌列表
  3. * @param request 请求参数
  4. * @return com.taobao.gpf.common.ResultDTO<com.taobao.gpf.common.response.BrandsDTO>
  5. */
  6. ResultDTO<List<BrandsDTO>> getAmBrands(BrandsQueryRequest request);

入参:

  1. //国家
  2. protected String articleCountry;
  3. //语言
  4. protected String lang;

出参:

  1. /**
  2. * 品牌id
  3. */
  4. protected Long brandId;
  5. /**
  6. * 品牌logoid
  7. */
  8. protected String brandLogoID;
  9. /**
  10. * 品牌名称
  11. */
  12. protected String brandName;

(3)根据OE号查询配件信息接口

  1. /**
  2. * 查询零件列表
  3. * @param request 请求参数
  4. * @return com.taobao.gpf.common.ResultDTO<com.taobao.gpf.common.response.ArticlesDTO>
  5. */
  6. ResultDTO<List<ArticleDTO>> getArticles(ArticlesQueryRequest request);

入参:

  1. //配件国家
  2. protected String articleCountry;
  3. //查询条件
  4. protected String searchQuery;
  5. /**
  6. * 0: Article Number (DEFAULT),
  7. * 1: OE Number, 原厂零件件号(OE号)查找
  8. * 2: Trade Number,
  9. * 3: Comparable Number,
  10. * 4: Replacement Number,
  11. * 5: Replaced Number,
  12. * 6: EAN Number,
  13. * 7: Criteria Number,
  14. * 10: 任意编号,
  15. * 99: 自定义文本
  16. */
  17. //查询编号类型
  18. protected Integer searchType;
  19. /**
  20. * exact: Exact Match (DEFAULT),
  21. * prefix: Prefix Match,
  22. * suffix: Suffix Match,
  23. * prefix_or_suffix: Prefix or Suffix Matching
  24. */
  25. //查询匹配类型
  26. protected String searchMatchType;
  27. //传统配件id
  28. protected List<Long> legacyArticleIds;
  29. //数据供应商/品牌id
  30. protected List<Integer> dataSupplierIds;
  31. /**
  32. * 663:制动助力器阀门
  33. * 339:压缩空气干燥器
  34. * 1914:外后视镜玻璃
  35. * 1319:多道阀
  36. * 107:大灯灯泡
  37. * 3255:弯道观察后视镜玻璃
  38. * 348:拖车控制阀
  39. * 1665:电子线圈接头
  40. * 1457:白炽灯泡
  41. * 369:空压机消声器
  42. * 1329:继动阀
  43. * 4017:继动阀修理组件
  44. * 106:聚光灯灯泡
  45. * 2:起动机
  46. * 2110:轴承
  47. * 370:铰链
  48. * 3698:驻车制动杆
  49. * 355:驻车制动阀
  50. */
  51. //产品组id
  52. protected List<Integer> genericArticleIds;
  53. //装配组id
  54. protected List<Long> assemblyGroupNodeIds;
  55. /**
  56. * Filter to parts that are linked to this target id (also requires the linkingTargetType)
  57. */
  58. //关联目标id
  59. protected Long linkageTargetId;
  60. /**
  61. * 'P': Vehicle Type (Passenger + Motorcycle + LCV),
  62. * 'V': Passenger Car,
  63. * 'L': LCV,
  64. * 'B': Motorcycle,
  65. * 'O': CV Type (Commercial Vehicle + Tractor),
  66. * 'C': Commercial Vehicle,
  67. * 'T': Tractor,
  68. * 'M': Engine,
  69. * 'A': Axle,
  70. * 'K': CV Body Type,
  71. * 'H': HMD Vehicle,
  72. * 'S': Vehicle Model Series
  73. */
  74. //关联目标类型
  75. protected String linkageTargetType;
  76. /**
  77. * Only include articles added since this date (YYYY-MM-DD).
  78. */
  79. protected String newArticlesDateFrom;
  80. /**
  81. * Only include articles added up until this date (YYYY-MM-DD).
  82. */
  83. protected String newArticlesDateTo;
  84. /**
  85. * Only include articles with linkages added since this date (YYYY-MM-DD). Note: This is only accurate with a limited number of other filters.
  86. */
  87. protected String newLinkagesDateFrom;
  88. /**
  89. * Only include articles with linkages added up until this date (YYYY-MM-DD). Note: This is only accurate with a limited number of other filters.
  90. */
  91. protected String newLinkagesDateTo;
  92. /**
  93. * Only include new linkages with this mfr id. Only valid if using the newLinkagesDateFrom or newLinkagesDateTo field.
  94. */
  95. protected Integer newLinkagesMfrId;
  96. //语言
  97. protected String lang;
  98. //每页个数
  99. protected Integer perPage;
  100. //当前页
  101. protected Integer page;
  102. /**
  103. * Include ALL Data in the response. Defaults to false.
  104. */
  105. protected Boolean includeAll;
  106. /**
  107. * Include Misc Article Data. Defaults to false.
  108. */
  109. protected Boolean includeMisc;
  110. /**
  111. * Include the Article Text in the response. Defaults to false.
  112. */
  113. protected Boolean includeArticleText;
  114. /**
  115. * Include Global Trade Identification Numbers (GTINs) associated with the part in the response. Note: This includes EANs. Defaults to false.
  116. */
  117. protected Boolean includeGTINs;
  118. /**
  119. * Include Trade Numbers in the response. Defaults to false.
  120. */
  121. protected Boolean includeTradeNumbers;
  122. /**
  123. * Include OEM Numbers in the response. Defaults to false.
  124. */
  125. protected Boolean includeOEMNumbers;
  126. /**
  127. * Include information about articles replaced by this part in the response. Defaults to false.
  128. */
  129. protected Boolean includeReplacesArticles;
  130. /**
  131. * Include information about articles that replace this part in the response. Defaults to false.
  132. */
  133. protected Boolean includeReplacedByArticles;
  134. /**
  135. * Include Article Criteria (TAF Table #210) in the response. Defaults to false.
  136. */
  137. protected Boolean includeArticleCriteria;
  138. /**
  139. * Include Linkage and Linkage Criteria information in the response (only valid if filtering by linkage id). Defaults to false.
  140. */
  141. protected Boolean includeLinkages;
  142. /**
  143. * Include PDFs in the response. Defaults to false.
  144. */
  145. protected Boolean includePDFs;
  146. /**
  147. * Include Images in the response. Defaults to false.
  148. */
  149. protected Boolean includeImages;
  150. /**
  151. * 是否返回所有品牌
  152. */
  153. protected Boolean includeDataSupplierFacets;
  154. /**
  155. * 是否返回所有产品组
  156. */
  157. protected Boolean includeGenericArticleFacets;
  158. /**
  159. * Include Generic Article Information in the response. Defaults to false.
  160. */
  161. protected Boolean includeGenericArticles;
  162. /**
  163. * Include the facet counts for article and linkage (only included if filtering by linkage id) criteria. Defaults to false
  164. */
  165. protected Boolean includeCriteriaFacets;
  166. protected Boolean includeArticleStatusFacets;
  167. /**
  168. * Include Comparable Numbers in the response (Note: Right now only comparable numbers that match the search query are included). Defaults to false.
  169. */
  170. protected Boolean includeComparableNumbers;
  171. /**
  172. * Include the Links in the response. Defaults to false.
  173. */
  174. protected Boolean includeLinks;
  175. /**
  176. * Include the Prices in the response. Defaults to false.
  177. */
  178. protected Boolean includePrices;
  179. /**
  180. * Only include prices active on this date (YYYY-MM-DD).
  181. */
  182. protected String priceDate;
  183. /**
  184. * Include Article Logistics Criteria (TAF 2.5 Table #213) in the response. Defaults to false.
  185. */
  186. protected Boolean includeArticleLogisticsCriteria;
  187. /**
  188. * Filter on Article Status (Key Table 73)
  189. */
  190. protected List<Integer> articleStatusIds;
  191. /**
  192. * Only include articles since this date (YYYY-MM-DD). Requires articleStatusIds field.
  193. */
  194. protected String articleStatusDateFrom;
  195. /**
  196. * Only include articles up until this date (YYYY-MM-DD). Requires articleStatusId field.
  197. */
  198. protected String articleStatusDateTo;

出参:

  1. /**
  2. * 数据供应商/品牌id
  3. */
  4. protected long dataSupplierId;
  5. /**
  6. * 零件编号
  7. */
  8. protected String articleNumber;
  9. /**
  10. * 制造商id
  11. */
  12. protected long mfrId;
  13. /**
  14. * 制造商名称
  15. */
  16. protected String mfrName;
  17. /**
  18. * 基本信息
  19. */
  20. protected MiscArticleDataRecordDTO misc;
  21. /**
  22. * 产品组信息
  23. */
  24. protected List<GenericArticleRecordDTO> genericArticles;
  25. /**
  26. * 描述信息
  27. */
  28. protected List<ArticleTextRecordDTO> articleText;
  29. /**
  30. * GTIN/EAN 编号
  31. */
  32. protected List<String> gtins;
  33. /**
  34. * 贸易号码
  35. */
  36. protected List<String> tradeNumbers;
  37. /**
  38. * 原厂零件号(OE 号)信息
  39. */
  40. protected List<ArticleRefRecordDTO> oemNumbers;
  41. /**
  42. * 可代替零件信息,一般无
  43. */
  44. protected List<ArticleRefRecordDTO> replacesArticles;
  45. /**
  46. * 可被代替零件信息,一般无
  47. */
  48. protected List<ArticleRefRecordDTO> replacedByArticles;
  49. /**
  50. * 零件标准信息
  51. */
  52. protected List<CriteriaRecordDTO> articleCriteria;
  53. /**
  54. * pdf信息
  55. */
  56. protected List<PDFRecordDTO> pdfs;
  57. /**
  58. * 图片信息
  59. */
  60. protected List<ImageRecordDTO> images;
  61. /**
  62. * 搜索匹配的信息(是通过什么搜索出来的)
  63. */
  64. protected List<SearchQueryMatchDTO> searchQueryMatches;
  65. /**
  66. * 链接信息
  67. */
  68. protected List<LinkRecordDTO> links;
  69. protected Integer totalLinkages;
  1. /**
  2. * 附加说明
  3. */
  4. protected String additionalDescription;
  5. /**
  6. * 状态id
  7. */
  8. protected Integer articleStatusId;
  9. /**
  10. * 状态描述
  11. */
  12. protected String articleStatusDescription;
  13. /**
  14. * 状态有效起始时间
  15. */
  16. protected Integer articleStatusValidFromDate;
  17. /**
  18. * 每个包装单位的数量
  19. */
  20. protected Integer quantityPerPackage;
  21. /**
  22. * 包装单位
  23. */
  24. protected Integer quantityPerPartPerPackage;
  25. /**
  26. * 是否自助包装
  27. */
  28. protected Boolean isSelfServicePacking;
  29. /**
  30. * 是否有强制性材料认证
  31. */
  32. protected Boolean hasMandatoryMaterialCertification;
  33. /**
  34. * 是否是二次零件
  35. */
  36. protected Boolean isRemanufacturedPart;
  37. /**
  38. * 是否是附件
  39. */
  40. protected Boolean isAccessory;
  41. /**
  42. * 批大小1
  43. */
  44. protected Integer batchSize1;
  45. /**
  46. * 批大小2
  47. */
  48. protected Integer batchSize2;
  1. /**
  2. * 产品组id
  3. */
  4. protected int genericArticleId;
  5. /**
  6. * 产品组名称
  7. */
  8. protected String genericArticleDescription;
  9. /**
  10. * 旧产品id
  11. */
  12. protected int legacyArticleId;
  1. /**
  2. * 原厂零件号(OE 号)
  3. */
  4. protected String articleNumber;
  5. /**
  6. * 供应商/品牌id
  7. */
  8. protected Integer dataSupplierId;
  9. /**
  10. * 制造商id
  11. */
  12. protected int mfrId;
  13. /**
  14. * 制造商名称
  15. */
  16. protected String mfrName;
  17. /**
  18. * 是否匹配搜索查询
  19. */
  20. protected Boolean matchesSearchQuery;
  21. /**
  22. * 参考信息类型
  23. */
  24. protected String referenceTypeKey;
  25. /**
  26. * 参考信息
  27. */
  28. protected String referenceTypeDescription;

(4)根据泰安联零件id查询车型id接口

  1. /**
  2. * 查询配件关联车型列表
  3. * @param request 请求参数
  4. * @return com.taobao.gpf.common.ResultDTO<com.taobao.gpf.common.response.LinkingTargetDTO>
  5. */
  6. ResultDTO<List<LinkingTargetDetailDTO>> getLinkingTargets(LinkingTargetQueryRequest request);

入参:

  1. //国家
  2. protected String articleCountry;
  3. //零配件id
  4. protected long articleId;
  5. //国家
  6. protected String country;
  7. //语言
  8. protected String lang;
  9. //关联目标id
  10. protected Long linkingTargetId;
  11. /**
  12. * V:乘用车
  13. * O:商用车
  14. * L:运输车
  15. * B:摩托车
  16. * VOLB:全部
  17. */
  18. //关联目标类型
  19. protected String linkingTargetType;

出参:

  1. /**
  2. * 零件关联id
  3. */
  4. protected Long articleLinkId;
  5. /**
  6. * 关联目标id
  7. */
  8. protected Long linkingTargetId;
  9. /**
  10. * 是佛关联
  11. */
  12. protected boolean linked;
  13. /**
  14. * 关联目标类型
  15. */
  16. protected String linkingTargetType;

(5)根据泰安联id查询车型库信息

  1. /**
  2. * 根据泰安联id查询车型库信息
  3. * @param tecId
  4. * @return
  5. */
  6. ResultDTO<List<CarInfoDTO>> findByTecId(String tecId);

入参:

名称 类型 备注
tecId String 泰安联车型id

出参:

  1. private String afid; //车型库afid,唯一值
  2. //车型库pv对信息
  3. private Long countryPid;
  4. private Long countryVid;
  5. private Long makePid;
  6. private Long makeVid;
  7. private Long modelPid;
  8. private Long modelVid;
  9. private Long yearPid;
  10. private Long yearVid;
  11. private Long trimPid;
  12. private Long trimVid;
  13. private Long enginePid;
  14. private Long engineVid;
  15. //车型库pv对信息
  16. private boolean hotSale; //是否是热销
  17. private Byte carType; //车型
  18. private String tecId; //泰安联车型id

(6)根据泰安联id批量查询车型库信息

  1. /**
  2. * 根据泰安联id批量查询车型库信息
  3. * @param tecIds
  4. * @return
  5. */
  6. ResultDTO<List<CarInfoDTO>> findListByTecIds(List<String> tecIds);

入参:

名称 类型 备注
tecIds List 泰安联车型id集合

出参同上

(7)查询商品绑定的车型库信息

  1. /**
  2. * 查询商品绑定的车型库信息
  3. * @param productId
  4. * @param sellerId
  5. * @return
  6. */
  7. ResultDTO<List<CarInfoDTO>> findListByProductId(Long productId, Long sellerId);

入参:

名称 类型 备注
productId Long 商品id
sellerId Long 卖家id

出参同上

(8)批量增量更新商品的车型库信息

  1. /**
  2. * 批量增量更新商品的车型库信息(先增量删除,再增量添加)
  3. * @param addAfids 添加的车型库afid
  4. * @param removeAfids 移除的车型库afid
  5. * @return
  6. */
  7. ResultDTO<Boolean> updateProductCarInfo(Long productId, Long sellerId, List<String> addAfids, List<String> removeAfids);

入参:

名称 类型 备注
productId Long 商品id
sellerId Long 卖家id
addAfids List 添加的车型库afid集合
removeAfids List 删除的车型库afid集合

出参:true成功,false失败