fax():回显活动补全
parent
3081f6df9e
commit
cc82c99880
|
@ -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"
|
||||||
}
|
}
|
|
@ -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();
|
||||||
|
|
|
@ -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())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue