|
@@ -29,10 +29,8 @@ import com.zhongzheng.modules.alioss.service.OssService;
|
|
|
import com.zhongzheng.modules.base.service.IUserProfileService;
|
|
|
import com.zhongzheng.modules.course.bo.CourseBusinessQueryBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseProjectTypeQueryBo;
|
|
|
-import com.zhongzheng.modules.course.service.ICourseBusinessService;
|
|
|
-import com.zhongzheng.modules.course.service.ICourseEducationTypeService;
|
|
|
-import com.zhongzheng.modules.course.service.ICourseModuleService;
|
|
|
-import com.zhongzheng.modules.course.service.ICourseProjectTypeService;
|
|
|
+import com.zhongzheng.modules.course.domain.Major;
|
|
|
+import com.zhongzheng.modules.course.service.*;
|
|
|
import com.zhongzheng.modules.course.vo.CourseBusinessVo;
|
|
|
import com.zhongzheng.modules.course.vo.CourseChapterVo;
|
|
|
import com.zhongzheng.modules.course.vo.CourseModuleVo;
|
|
@@ -191,6 +189,9 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
@Autowired
|
|
|
private ISysOldOrgService sysOldOrgService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IMajorService iMajorService;
|
|
|
+
|
|
|
|
|
|
private String SEVEN_OFFICIALPUSH_INFOACCOUNT;
|
|
|
private String SEVEN_OFFICIALPUSH_TOKEN;
|
|
@@ -619,7 +620,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
queryBo.setId(goods.getBusinessId());
|
|
|
String fullName = iCourseBusinessService.queryFullName(queryBo);
|
|
|
if(fullName.contains("继续教育")&&fullName.contains("施工现场专业人员")){
|
|
|
- return pushSevenOfficialInfo(bo,userVo,orderGoods);
|
|
|
+ return pushSevenOfficialInfo(bo,userVo,orderGoods,goods);
|
|
|
}
|
|
|
Long bmrq = 0L;
|
|
|
if (Validator.isEmpty(userVo.getClassStartTime())) {
|
|
@@ -689,7 +690,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
}
|
|
|
|
|
|
|
|
|
- public String pushSevenOfficialInfo(ClassGradeUserQueryBo bo,ClassGradeUserVo userVo,OrderGoodsVo orderGoods) {
|
|
|
+ public String pushSevenOfficialInfo(ClassGradeUserQueryBo bo,ClassGradeUserVo userVo,OrderGoodsVo orderGoods,Goods goods) {
|
|
|
SEVEN_OFFICIALPUSH_INFOACCOUNT=null;
|
|
|
SEVEN_OFFICIALPUSH_TOKEN=null;
|
|
|
log.info("报名信息推送" + JSON.toJSONString(bo));
|
|
@@ -747,6 +748,20 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
if (Validator.isEmpty(userVo.getEduLevel()) || Validator.isEmpty(userVo.getCompanyName()) || Validator.isEmpty(userVo.getSex())) {
|
|
|
return "用户详细信息缺失";
|
|
|
}
|
|
|
+ if(Validator.isEmpty(goods.getMajorId())){
|
|
|
+ throw new CustomException("商品专业不存在");
|
|
|
+ }
|
|
|
+ Major major = iMajorService.getOne(new LambdaQueryWrapper<Major>()
|
|
|
+ .eq(Major::getId, goods.getMajorId()));
|
|
|
+ if("材料员".equals(major.getCategoryName())||"劳务员".equals(major.getCategoryName())||"资料员".equals(major.getCategoryName())){
|
|
|
+ if(userVo.getEduLevel().equals("小学")||userVo.getEduLevel().equals("中学")){
|
|
|
+ userVo.setEduLevel("高中");
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(userVo.getEduLevel().equals("小学")||userVo.getEduLevel().equals("中学")||userVo.getEduLevel().equals("职高")||userVo.getEduLevel().equals("高中")){
|
|
|
+ userVo.setEduLevel("专科");
|
|
|
+ }
|
|
|
+ }
|
|
|
if (Validator.isEmpty(orderGoods.getSevenYear())) {
|
|
|
return "商品年份缺失";
|
|
|
}
|