|
@@ -20,6 +20,7 @@ import com.zhongzheng.modules.bank.domain.QuestionChapterExam;
|
|
import com.zhongzheng.modules.base.bo.ConsoleQueryBo;
|
|
import com.zhongzheng.modules.base.bo.ConsoleQueryBo;
|
|
import com.zhongzheng.modules.base.service.IProfileTpService;
|
|
import com.zhongzheng.modules.base.service.IProfileTpService;
|
|
import com.zhongzheng.modules.base.service.IShoppingCartService;
|
|
import com.zhongzheng.modules.base.service.IShoppingCartService;
|
|
|
|
+import com.zhongzheng.modules.course.bo.CourseBusinessQueryBo;
|
|
import com.zhongzheng.modules.course.bo.CourseMenuQueryBo;
|
|
import com.zhongzheng.modules.course.bo.CourseMenuQueryBo;
|
|
import com.zhongzheng.modules.course.domain.CourseBusiness;
|
|
import com.zhongzheng.modules.course.domain.CourseBusiness;
|
|
import com.zhongzheng.modules.course.domain.CourseEducationType;
|
|
import com.zhongzheng.modules.course.domain.CourseEducationType;
|
|
@@ -1742,8 +1743,14 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
classGrade.setClassStatus(0);
|
|
classGrade.setClassStatus(0);
|
|
classGrade.setLearningStatus(2);//待定
|
|
classGrade.setLearningStatus(2);//待定
|
|
classGrade.setStudentUpper(ClassGrade.INIT_UPPER); //上限300
|
|
classGrade.setStudentUpper(ClassGrade.INIT_UPPER); //上限300
|
|
- //生成预开班编号
|
|
|
|
- classGrade.setOfficialName( createGradeCode(goodsId,businessVo));
|
|
|
|
|
|
+
|
|
|
|
+ CourseBusinessQueryBo businessQueryBo = new CourseBusinessQueryBo();
|
|
|
|
+ businessQueryBo.setId(businessId);
|
|
|
|
+ String fullName = iCourseBusinessService.queryFullName(businessQueryBo);
|
|
|
|
+ if (("继续教育二级建造师".equals(fullName)) || ("继续教育二级造价师".equals(fullName))) {
|
|
|
|
+ //生成预开班编号
|
|
|
|
+ classGrade.setOfficialName(createGradeCode(goodsId, businessVo));
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
classGrade.setLearningStatus(1);//即刻
|
|
classGrade.setLearningStatus(1);//即刻
|
|
classGrade.setStudentUpper(ClassGrade.INIT_UPPER2); //上限1000000
|
|
classGrade.setStudentUpper(ClassGrade.INIT_UPPER2); //上限1000000
|
|
@@ -1802,6 +1809,8 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
List<Goods> goodsList = iGoodsService.list(new LambdaQueryWrapper<Goods>()
|
|
List<Goods> goodsList = iGoodsService.list(new LambdaQueryWrapper<Goods>()
|
|
.eq(Goods::getEducationTypeId, goods.getEducationTypeId())
|
|
.eq(Goods::getEducationTypeId, goods.getEducationTypeId())
|
|
.eq(Goods::getBusinessId, goods.getBusinessId())
|
|
.eq(Goods::getBusinessId, goods.getBusinessId())
|
|
|
|
+ .eq(Goods::getStatus,1)
|
|
|
|
+ .eq(Goods::getGoodsStatus,1)
|
|
.eq(Goods::getProjectId, goods.getProjectId())
|
|
.eq(Goods::getProjectId, goods.getProjectId())
|
|
.eq(Goods::getSubjectIds, goods.getSubjectIds()));
|
|
.eq(Goods::getSubjectIds, goods.getSubjectIds()));
|
|
if (goodsList.size() > 1){
|
|
if (goodsList.size() > 1){
|