|
@@ -572,7 +572,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
menuListAddBo.setMenuList(bo.getMenuList());
|
|
|
iCourseMenuService.insertByGoodsAddBo(menuListAddBo);
|
|
|
}
|
|
|
-
|
|
|
+ Long goodsId = add.getGoodsId();
|
|
|
//七大员商品,默认绑定七大员学员资料模板
|
|
|
CourseEducationType educationType = iCourseEducationTypeService.getById(add.getEducationTypeId());
|
|
|
CourseBusiness business = iCourseBusinessService.getById(add.getBusinessId());
|
|
@@ -588,9 +588,8 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
.eq(ProfileTp::getStatus,1));
|
|
|
profileTpList.forEach(item -> {
|
|
|
if (StringUtils.isNotBlank(item.getGoodsIds())){
|
|
|
- List<String> goodsIds = Arrays.asList(item.getGoodsIds().split(","));
|
|
|
- goodsIds.add(add.getGoodsId().toString());
|
|
|
- item.setGoodsIds(goodsIds.stream().collect(Collectors.joining(",")));
|
|
|
+ String ids = item.getGoodsIds();
|
|
|
+ item.setGoodsIds(ids+","+goodsId);
|
|
|
}
|
|
|
});
|
|
|
iProfileTpService.updateBatchById(profileTpList);
|