|
@@ -500,16 +500,27 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
CourseEducationType educationType = iCourseEducationTypeService.getOne(new LambdaQueryWrapper<CourseEducationType>().eq(CourseEducationType::getStatus, 1).eq(CourseEducationType::getEducationName,"继续教育").last("limit 1"));
|
|
|
CourseProjectType projectType = iCourseProjectTypeService.getOne(new LambdaQueryWrapper<CourseProjectType>().eq(CourseProjectType::getStatus, 1).eq(CourseProjectType::getEducationId,educationType.getId()).eq(CourseProjectType::getProjectName,"建造师").last("limit 1"));
|
|
|
CourseBusiness business = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getStatus, 1).eq(CourseBusiness::getProjectId,projectType.getId()).eq(CourseBusiness::getBusinessName,"二级").last("limit 1"));
|
|
|
+ CourseBusiness business7 = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getStatus, 1).eq(CourseBusiness::getProjectId,projectType.getId()).eq(CourseBusiness::getBusinessName,"七大员新考").last("limit 1"));
|
|
|
+ GoodsVo goodsVo = iGoodsService.selectDetail(bo.getGoodsId());
|
|
|
|
|
|
- GoodsVo goodsVo = iGoodsService.queryById(bo.getGoodsId());
|
|
|
if(goodsVo.getBusinessId().longValue()!=business.getId().longValue()){
|
|
|
- return null;
|
|
|
+ if(Validator.isNotEmpty(business7.getId())&&goodsVo.getBusinessId().longValue()!=business7.getId().longValue()){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|
|
|
UserVo userVo = iUserService.queryById(bo.getUserId());
|
|
|
ClassGradeUser gradeUser = iClassGradeUserService.getOne(new LambdaQueryWrapper<ClassGradeUser>().eq(ClassGradeUser::getUserId,bo.getUserId()).eq(ClassGradeUser::getGradeId,bo.getGradeId()).last("limit 1"));
|
|
|
OrderGoods orderGoods = iOrderGoodsService.getOne(new LambdaQueryWrapper<OrderGoods>().eq(OrderGoods::getOrderGoodsId,gradeUser.getOrderGoodsId()).last("limit 1"));
|
|
|
ClassGrade classGrade = iClassGradeService.getOne(new LambdaQueryWrapper<ClassGrade>().eq(ClassGrade::getGradeId,gradeUser.getGradeId()).last("limit 1"));
|
|
|
SyncUserCourseStudyRec studyRec = new SyncUserCourseStudyRec();
|
|
|
+ if(goodsVo.getBusinessId().longValue()==business.getId().longValue()){
|
|
|
+ studyRec.setCourseType(5);
|
|
|
+ }
|
|
|
+ if(Validator.isNotEmpty(business7.getId())&&goodsVo.getBusinessId().longValue()==business.getId().longValue()){
|
|
|
+ studyRec.setCourseType(7);
|
|
|
+ }
|
|
|
+ studyRec.setCourseName(goodsVo.getGoodsName());
|
|
|
+ studyRec.setMajorName(goodsVo.getSubjectNames());
|
|
|
studyRec.setName(userVo.getRealname());
|
|
|
studyRec.setIdNum(userVo.getIdCard());
|
|
|
studyRec.setMobile(userVo.getTelphone());
|