|
@@ -96,17 +96,11 @@ public class GoodsSpecTemplateServiceImpl extends ServiceImpl<GoodsSpecTemplateM
|
|
SpecAttrPriceVo priceVo = BeanUtil.toBean(goods,SpecAttrPriceVo.class);
|
|
SpecAttrPriceVo priceVo = BeanUtil.toBean(goods,SpecAttrPriceVo.class);
|
|
priceVo.setSpecAttrIds(x.getSpecAttributeIds());
|
|
priceVo.setSpecAttrIds(x.getSpecAttributeIds());
|
|
priceVo.setSpecialGoods(0);
|
|
priceVo.setSpecialGoods(0);
|
|
|
|
+ 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);
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
- if (ObjectUtils.isNotNull(business) && ObjectUtils.isNotNull(business.getTemplateStatus())){
|
|
|
|
- priceVo.setSpecialGoods(business.getTemplateStatus() == 1? 1:0);
|
|
|
|
|
|
+ String businessName = goodsService.getGoodsBusinessName(x.getGoodsId());
|
|
|
|
+ if (businessName.contains("继续教育二级建造师")){
|
|
|
|
+ priceVo.setSpecialGoods(1);
|
|
}
|
|
}
|
|
return priceVo;
|
|
return priceVo;
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|