|
|
@@ -241,8 +241,8 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
(ObjectUtils.isNull(bo.getClassStatus()) || 0 == bo.getClassStatus())) {
|
|
|
Long goodsId = bo.getClassGradeGoodsAddBos()[0];
|
|
|
Goods goods = iGoodsService.getById(goodsId);
|
|
|
- CourseBusiness business = iCourseBusinessService.getById(goods.getBusinessId());
|
|
|
- if (ObjectUtils.isNotNull(business) && ObjectUtils.isNotNull(business.getTemplateStatus()) && business.getTemplateStatus() == 1){
|
|
|
+ CourseBusinessVo business = iCourseBusinessService.queryById(goods.getBusinessId());
|
|
|
+ if (Validator.isNotEmpty(business) && Validator.isNotEmpty(business.getTemplateName()) && business.getTemplateName().equals("班级")) {
|
|
|
if (net.polyv.common.v1.util.StringUtils.isNotBlank(business.getAliasName()) &&
|
|
|
(business.getAliasName().equals("二级建造师") || business.getAliasName().equals("二级造价工程师"))){
|
|
|
List<Goods> goodsList = iGoodsService.list(new LambdaQueryWrapper<Goods>()
|
|
|
@@ -1337,7 +1337,7 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
Goods goods = iGoodsService.getGoodsByIdTenant(goodsId,tenantId);
|
|
|
CourseBusiness businessVo = iCourseBusinessService.getBusinessByIdTenant(goods.getBusinessId(),tenantId);
|
|
|
boolean isConfigTp = false; //商品是否有配置选班模板
|
|
|
- if (Validator.isNotEmpty(businessVo) && Validator.isNotEmpty(businessVo.getTemplateStatus()) && businessVo.getTemplateStatus() == 1) {
|
|
|
+ if (Validator.isNotEmpty(businessVo) && Validator.isNotEmpty(businessVo.getTemplateName()) && businessVo.getTemplateName().equals("班级")) {
|
|
|
isConfigTp = true;
|
|
|
}
|
|
|
ClassGrade classGrade = new ClassGrade();
|