预览展示

时序图 - 图1

代码展示

  1. @startuml
  2. autonumber
  3. actor "用户" as User
  4. box "crm" #LightBlue
  5. participant WxAdaptionSpuController
  6. participant AdaptionSpuConsumerManager
  7. participant AdaptionSpuConsumerService
  8. end box
  9. box "beetle" #LightGrey
  10. participant AdaptionInfoReadFacade
  11. participant AdaptionSpuConvert
  12. end box
  13. box "prado" #LightSalmon
  14. participant GoodsAdaptionService
  15. participant GoodsInfoConsumerApi
  16. end box
  17. box "goods" #LightGreen
  18. participant SpuCategoryApi
  19. participant SpuApi
  20. end box
  21. User -> WxAdaptionSpuController ++: /carowner/mall/spu/adaption/list\n/carowner/mall/spu/adaption/replace
  22. activate User
  23. WxAdaptionSpuController -> AdaptionSpuConsumerManager ++: getSpuList
  24. AdaptionSpuConsumerManager -> AdaptionSpuConsumerService ++: getSpuList
  25. AdaptionSpuConsumerService -> AdaptionInfoReadFacade ++: queryAdaptionPartInfo
  26. note left of AdaptionInfoReadFacade : 根据车型、车辆分类、门店和保养项目明细\n查询具体材料InfoID
  27. AdaptionInfoReadFacade -> AdaptionSpuConsumerService --: List<AdaptionPartInfo>
  28. AdaptionSpuConsumerService -> AdaptionSpuConvert ++: convert
  29. group foreach [CarCategoryPirceList]
  30. group if [AdaptionCarCategoryPriceInfo.carCategoryId.equals(carCatrgoryId)]
  31. AdaptionSpuConvert -> AdaptionSpuConvert : convert
  32. else !AdaptionCarCategoryPriceInfo.carCategoryId.equals(carCatrgoryId)
  33. AdaptionSpuConvert -> AdaptionSpuConvert : removeItem
  34. end
  35. end
  36. AdaptionSpuConvert -> AdaptionSpuConsumerService --: List<AdaptionPartInfo>
  37. AdaptionSpuConsumerService -> SpuCategoryApi ++: querySpuCategoryByNameBatch
  38. note left of SpuCategoryApi : 根据导购适配名称查询商品分类ID
  39. SpuCategoryApi -> AdaptionSpuConsumerService --: categoryId
  40. AdaptionSpuConsumerService -> AdaptionSpuConsumerService : queryServiceSpuInfo
  41. group if [CollectionUtils.isNotEmpty(ServiceInfoIdList)]
  42. AdaptionSpuConsumerService -> AdaptionSpuConsumerService : queryAdaptionSpuInfo
  43. else CollectionUtils.isEmpty(ServiceInfoIdList)
  44. AdaptionSpuConsumerService -> AdaptionSpuConsumerService : return null;
  45. end
  46. AdaptionSpuConsumerService -> GoodsAdaptionService ++: queryAdaptionSpuInfo
  47. GoodsAdaptionService -> SpuApi ++: getSpuInfoRelationByInfoIds 现有接口, 等商品新接口 , 分别查询项目和材料信息
  48. note left of SpuApi : 根据 InfoIDList 等查询对应 spuId, spuName, spuType, img
  49. SpuApi -> GoodsAdaptionService --:List<TmSpuInfoRelationVo>
  50. GoodsAdaptionService -> GoodsInfoConsumerApi ++: queryAvailableGoodsInfoListSortBySellCount
  51. note left of GoodsInfoConsumerApi : 根据 spuId 查询销量
  52. GoodsInfoConsumerApi -> GoodsAdaptionService --: PageInfo<GoodsInfoSimpleResponse>
  53. GoodsAdaptionService -> AdaptionSpuConsumerService --: PageInfo<GoodsInfoSimpleResponse>
  54. AdaptionSpuConsumerService -> AdaptionSpuConsumerManager --: List<SpuInfo>
  55. AdaptionSpuConsumerManager -> WxAdaptionSpuController --: List<SpuInfo>
  56. WxAdaptionSpuController -> User --: ApiResultVO<List<SpuInfo>>
  57. deactivate User
  58. @enduml