|
@@ -12,9 +12,13 @@ import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.common.utils.ip.IpUtils;
|
|
|
import com.zhongzheng.modules.bank.domain.ExamTemp;
|
|
|
import com.zhongzheng.modules.bank.service.IExamTempService;
|
|
|
+import com.zhongzheng.modules.course.bo.CourseBusinessQueryBo;
|
|
|
+import com.zhongzheng.modules.course.service.ICourseBusinessService;
|
|
|
import com.zhongzheng.modules.distribution.domain.DistributionCashWithdrawal;
|
|
|
import com.zhongzheng.modules.exam.domain.ExamPaper;
|
|
|
import com.zhongzheng.modules.exam.service.IExamPaperService;
|
|
|
+import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
+import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
import com.zhongzheng.modules.grade.domain.UserPeriod;
|
|
|
import com.zhongzheng.modules.grade.domain.UserPeriodStatus;
|
|
|
import com.zhongzheng.modules.grade.service.IUserPeriodService;
|
|
@@ -89,6 +93,13 @@ public class UserBankRecordServiceImpl extends ServiceImpl<UserBankRecordMapper,
|
|
|
@Autowired
|
|
|
private IOrderGoodsService iOrderGoodsService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IGoodsService iGoodsService;
|
|
|
+
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ICourseBusinessService iCourseBusinessService;
|
|
|
+
|
|
|
private static Logger log = LoggerFactory.getLogger(UserBankRecordServiceImpl.class);
|
|
|
|
|
|
|
|
@@ -223,7 +234,14 @@ public class UserBankRecordServiceImpl extends ServiceImpl<UserBankRecordMapper,
|
|
|
if (userStudyRecordMapper.selectStudyExamRecord(bakVo) < 1 && Validator.isNotEmpty(add.getReportStatus())&& add.getReportStatus().equals(1)){
|
|
|
UserStudyRecordPhoto recordPhoto = userStudyRecordPhotoService.getOne(new LambdaQueryWrapper<UserStudyRecordPhoto>().eq(UserStudyRecordPhoto::getRecordId, userBankRecordVo.getRecordId()).eq(UserStudyRecordPhoto::getStatus,2).last("limit 1"));
|
|
|
if(Validator.isEmpty(recordPhoto)){
|
|
|
- throw new CustomException("拍照次数不达标",559);
|
|
|
+ GoodsVo goodsVo = iGoodsService.queryById(add.getGoodsId());
|
|
|
+ String fullName;
|
|
|
+ CourseBusinessQueryBo queryBusinessBo = new CourseBusinessQueryBo();
|
|
|
+ queryBusinessBo.setId(goodsVo.getBusinessId());
|
|
|
+ fullName = iCourseBusinessService.queryFullName(queryBusinessBo);
|
|
|
+ if(fullName.equals("继续教育二级建造师")||fullName.equals("继续教育二级造价师")||(fullName.contains("继续教育")&&fullName.contains("施工现场专业人员"))){
|
|
|
+ throw new CustomException("拍照次数不达标",559);
|
|
|
+ }
|
|
|
}
|
|
|
//增加一条审核记录
|
|
|
UserPeriod userPeriod = new UserPeriod();
|