|
@@ -90,6 +90,16 @@ public class GoodsSpecTemplateServiceImpl extends ServiceImpl<GoodsSpecTemplateM
|
|
|
Goods goods = goodsService.getById(x.getGoodsId());
|
|
|
SpecAttrPriceVo priceVo = BeanUtil.toBean(goods,SpecAttrPriceVo.class);
|
|
|
priceVo.setSpecAttrIds(x.getSpecAttributeIds());
|
|
|
+ priceVo.setSpecialGoods(0);
|
|
|
+ //商品业务类型
|
|
|
+ CourseEducationType type = courseEducationTypeService.getById(goods.getEducationTypeId());
|
|
|
+ CourseBusiness business = courseBusinessService.getById(goods.getBusinessId());
|
|
|
+ if (ObjectUtils.isNotNull(type) && ObjectUtils.isNotNull(business)){
|
|
|
+ String name = type.getEducationName() + business.getAliasName();
|
|
|
+ if ("继续教育二级建造师".equals(name) || "继续教育二级造价师".equals(name)){
|
|
|
+ priceVo.setSpecialGoods(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
return priceVo;
|
|
|
}).collect(Collectors.toList());
|
|
|
voList.addAll(collect);
|