|
@@ -200,6 +200,9 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
@Autowired
|
|
@Autowired
|
|
private ICourseChapterService iCourseChapterService;
|
|
private ICourseChapterService iCourseChapterService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ICourseModuleService iCourseModuleService;
|
|
|
|
+
|
|
@Value("${oldStudySys.syncPath}")
|
|
@Value("${oldStudySys.syncPath}")
|
|
private String SYNC_PATH;
|
|
private String SYNC_PATH;
|
|
|
|
|
|
@@ -422,6 +425,16 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
userPeriods.eq(UserPeriodStatus::getStatus, 2);
|
|
userPeriods.eq(UserPeriodStatus::getStatus, 2);
|
|
userPeriodStatusService.update(userPeriodStatus, userPeriods);
|
|
userPeriodStatusService.update(userPeriodStatus, userPeriods);
|
|
|
|
|
|
|
|
+ CourseModuleVo moduleVo = iCourseModuleService.queryById(period.getModuleId());
|
|
|
|
+ if(Validator.isNotEmpty(moduleVo)&&Validator.isNotEmpty(moduleVo.getCommonSign())&&moduleVo.getCommonSign()==1){
|
|
|
|
+ if(bo.getStatus()==0){
|
|
|
|
+ LambdaUpdateWrapper<OrderGoods> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
|
|
+ objectLambdaUpdateWrapper.eq(OrderGoods::getOrderGoodsId, period.getOrderGoodsId());
|
|
|
|
+ objectLambdaUpdateWrapper.set(OrderGoods::getSevenClassStatus, 4);
|
|
|
|
+ iOrderGoodsService.update(null, objectLambdaUpdateWrapper);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
CourseChapterVo chapterVo = iCourseChapterService.queryById(period.getChapterId());
|
|
CourseChapterVo chapterVo = iCourseChapterService.queryById(period.getChapterId());
|
|
if(Validator.isNotEmpty(chapterVo)&&Validator.isNotEmpty(chapterVo.getCommonSign())&&chapterVo.getCommonSign()==1){
|
|
if(Validator.isNotEmpty(chapterVo)&&Validator.isNotEmpty(chapterVo.getCommonSign())&&chapterVo.getCommonSign()==1){
|
|
if(bo.getStatus()==0){
|
|
if(bo.getStatus()==0){
|