Commit 33bc8333 by zhangxingmin

push

parent 31462c24
...@@ -246,6 +246,7 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService { ...@@ -246,6 +246,7 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
*/ */
@Override @Override
public Result save(ApiProductLaunchSaveRequest request) { public Result save(ApiProductLaunchSaveRequest request) {
String productLaunchBizId = "";
if (!Objects.isNull(request.getSource()) && request.getSource() == 1) { if (!Objects.isNull(request.getSource()) && request.getSource() == 1) {
//复制来源 //复制来源
//添加-产品上架类目信息 //添加-产品上架类目信息
...@@ -266,6 +267,7 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService { ...@@ -266,6 +267,7 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
productLaunch.setMainUrls(!CollectionUtils.isEmpty(apiProductLaunchDto.getMainUrlsList()) ? String.join(";",apiProductLaunchDto.getMainUrlsList()) : ""); productLaunch.setMainUrls(!CollectionUtils.isEmpty(apiProductLaunchDto.getMainUrlsList()) ? String.join(";",apiProductLaunchDto.getMainUrlsList()) : "");
productLaunch.setDetailUrls(!CollectionUtils.isEmpty(apiProductLaunchDto.getDetailUrlsList()) ? String.join(";",apiProductLaunchDto.getDetailUrlsList()) : ""); productLaunch.setDetailUrls(!CollectionUtils.isEmpty(apiProductLaunchDto.getDetailUrlsList()) ? String.join(";",apiProductLaunchDto.getDetailUrlsList()) : "");
productLaunch.setProjectBizIdList(!CollectionUtils.isEmpty(apiProductLaunchDto.getProjectBizIdList()) ? String.join(";",apiProductLaunchDto.getProjectBizIdList()) : ""); productLaunch.setProjectBizIdList(!CollectionUtils.isEmpty(apiProductLaunchDto.getProjectBizIdList()) ? String.join(";",apiProductLaunchDto.getProjectBizIdList()) : "");
productLaunch.setStatus(ProductCommonEnum.PRODUCT_LAUNCH_STATUS_DSH.getItemValue());
iProductLaunchService.saveOrUpdate(productLaunch); iProductLaunchService.saveOrUpdate(productLaunch);
//设置产品上架信息参数列表 //设置产品上架信息参数列表
...@@ -274,6 +276,8 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService { ...@@ -274,6 +276,8 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
apiSpeciesSettingService.save(request.getApiSpeciesSettingDtoList(),productLaunch.getProductLaunchBizId()); apiSpeciesSettingService.save(request.getApiSpeciesSettingDtoList(),productLaunch.getProductLaunchBizId());
//保存规格价格配置列表 //保存规格价格配置列表
apiSpeciesPriceService.save(request.getApiSpeciesPriceDtoList(),productLaunch.getProductLaunchBizId()); apiSpeciesPriceService.save(request.getApiSpeciesPriceDtoList(),productLaunch.getProductLaunchBizId());
productLaunchBizId = productLaunch.getProductLaunchBizId();
}else { }else {
//其他来源 //其他来源
ApiProductLaunchDto apiProductLaunchDto = request.getApiProductLaunchDto(); ApiProductLaunchDto apiProductLaunchDto = request.getApiProductLaunchDto();
...@@ -293,8 +297,10 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService { ...@@ -293,8 +297,10 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
apiSpeciesSettingService.save(request.getApiSpeciesSettingDtoList(),productLaunch.getProductLaunchBizId()); apiSpeciesSettingService.save(request.getApiSpeciesSettingDtoList(),productLaunch.getProductLaunchBizId());
//保存规格价格配置列表 //保存规格价格配置列表
apiSpeciesPriceService.save(request.getApiSpeciesPriceDtoList(),productLaunch.getProductLaunchBizId()); apiSpeciesPriceService.save(request.getApiSpeciesPriceDtoList(),productLaunch.getProductLaunchBizId());
productLaunchBizId = productLaunch.getProductLaunchBizId();
} }
return Result.success(); return Result.success(productLaunchBizId);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment