|
|
@@ -46,6 +46,10 @@ public class AppCoursesVerificationRecordServiceImpl extends ServiceImpl<AppCour
|
|
|
private AppOrderProInfoMapper appOrderProInfoMapper;
|
|
|
@Autowired
|
|
|
private AppCoursesMapper appCoursesMapper;
|
|
|
+ @Resource
|
|
|
+ private AppSiteMapper appSiteMapper;
|
|
|
+ @Resource
|
|
|
+ private AppIsinMapper appIsinMapper;
|
|
|
|
|
|
@Override
|
|
|
public Boolean courseUploadImage(VerifyForm verifyForm) {
|
|
|
@@ -66,6 +70,30 @@ public class AppCoursesVerificationRecordServiceImpl extends ServiceImpl<AppCour
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ AppSite appSite = appSiteMapper.selectOne(Wrappers.lambdaQuery(AppSite.class).eq(AppSite::getId, appCourses.getAddressSiteId()));
|
|
|
+ if(ObjectUtil.isNotEmpty(appSite)){
|
|
|
+ if (Objects.equals(appSite.getType(), CommonConstant.STATUS_0_INT)){
|
|
|
+ for (CoursesVerificationRecordForm coursesVerificationRecordForm : verifyForm.getFormList()) {
|
|
|
+ List<AppIsin> appIsins = appIsinMapper.selectList(Wrappers.<AppIsin>lambdaQuery()
|
|
|
+ .eq(AppIsin::getCoursePriceRuleId, verifyForm.getCoursePriceRulesId())
|
|
|
+ .eq(AppIsin::getFamilyId, coursesVerificationRecordForm.getId())
|
|
|
+ .eq(AppIsin::getIsinStatus, CommonConstant.STATUS_NORMAL)
|
|
|
+ );
|
|
|
+ if (CollUtil.isNotEmpty(appIsins)) {
|
|
|
+ appIsins.forEach(appIsin -> {
|
|
|
+ appIsin.setIsinStatus(CommonConstant.STATUS_1_INT);
|
|
|
+ appIsin.setUseAddress(appSite.getAddress());
|
|
|
+ appIsin.setUseTime(DateUtils.getDate());
|
|
|
+ appIsin.setUseImage(coursesVerificationRecordForm.getVerifyImage());
|
|
|
+ appIsin.setVerifyUserId(sysUser.getId());
|
|
|
+ appIsin.setVerifyUserName(sysUser.getRealname());
|
|
|
+ appIsinMapper.updateById(appIsin);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
for (CoursesVerificationRecordForm coursesVerificationRecordForm : verifyForm.getFormList()) {
|
|
|
List<AppCoursesVerificationRecord> verificationRecordList = baseMapper.selectList(Wrappers.<AppCoursesVerificationRecord>lambdaQuery()
|
|
|
.eq(AppCoursesVerificationRecord::getCoursesPriceRuleId, verifyForm.getCoursePriceRulesId())
|