fax():回显活动补全

1126/cuifubo
崔福波 2024-11-27 14:24:53 +08:00
parent 3081f6df9e
commit cc82c99880
3 changed files with 19 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{ {
"拼团活动Id": "Long", "拼团活动Id": "Long",
"商品ID": "Long", //activity_team_info.product_id "商品ID": "Long",
"商品图片": "String", "商品图片": "String",
"活动名称": "String", "活动名称": "String",
"活动简介": "String", "活动简介": "String",
@ -11,14 +11,19 @@
"活动时间": "date", "活动时间": "date",
"策略类型": "String", "策略类型": "String",
"策略ID": "Long", "策略ID": "Long",
"商品规格List": [ // activity_team_product_sku_info "商品规格List": [{
{ "规格SKUid": "Long",
"规格SKUId": "Long", "拼团价格": "BigDecimal",
"规格SKU": "String", // activity_team_product_sku_info.product_sku "拼团库存": "Long"
}],
"商品规格List": [{
"规格SKUid": "Long"
}],
"商品规格List": [{
"拼团价格": "BigDecimal", "拼团价格": "BigDecimal",
"拼团库存": "Long" "拼团库存": "Long"
} }],
],
"排序": "Integer", "排序": "Integer",
"详情": "String" "详情": "String",
"活动状态":"Long"
} }

View File

@ -53,7 +53,7 @@ public class ActivityTeamController {
* @param activityTeamInfoSaveReq * @param activityTeamInfoSaveReq
* @return * @return
*/ */
@PostMapping @PostMapping("/addTeam")
public Result<String> save(@RequestBody ActivityTeamInfoSaveReq activityTeamInfoSaveReq) { public Result<String> save(@RequestBody ActivityTeamInfoSaveReq activityTeamInfoSaveReq) {
activityTeamInfoService.save(ActivityTeamInfoAddModel.addReqBuild(activityTeamInfoSaveReq)); activityTeamInfoService.save(ActivityTeamInfoAddModel.addReqBuild(activityTeamInfoSaveReq));
return Result.success(); return Result.success();

View File

@ -98,8 +98,10 @@ public class ActivityTeamInfoServiceImpl extends ServiceImpl<ActivityTeamInfoMap
return ActivityTeamFindByIdModel.findByIdModel(activityTeamInfo, return ActivityTeamFindByIdModel.findByIdModel(activityTeamInfo,
activityTeamProductSkuInfoModels.stream().map( activityTeamProductSkuInfoModels
activityTeamProductSkuIdModel -> TeamInfoProductSkuIdByIdResp.buildModel(activityTeamProductSkuIdModel) .stream()
.map(activityTeamProductSkuIdModel ->
TeamInfoProductSkuIdByIdResp.buildModel(activityTeamProductSkuIdModel)
).collect(Collectors.toList()) ).collect(Collectors.toList())
); );