|
|
@@ -33,6 +33,7 @@ import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
import com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo;
|
|
|
import com.zhongzheng.modules.grade.bo.UserPeriodStatusAddBo;
|
|
|
import com.zhongzheng.modules.grade.domain.UserPeriodStatus;
|
|
|
+import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
|
import com.zhongzheng.modules.grade.service.IUserPeriodService;
|
|
|
import com.zhongzheng.modules.grade.service.IUserPeriodStatusService;
|
|
|
import com.zhongzheng.modules.grade.vo.ClassGradeVo;
|
|
|
@@ -94,6 +95,9 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
|
|
@Autowired
|
|
|
private IUserBankRecordService iUserBankRecordService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IClassGradeUserService iClassGradeUserService;
|
|
|
+
|
|
|
|
|
|
|
|
|
@Override
|
|
|
@@ -276,6 +280,9 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public boolean editRebuild(ClassGradeUserQueryBo bo) {
|
|
|
+ if(Validator.isEmpty(bo.getGradeId())||Validator.isEmpty(bo.getUserId())){
|
|
|
+ throw new CustomException("参数错误");
|
|
|
+ }
|
|
|
//将该班级下的学员作弊的节改成待重修
|
|
|
List<GoodsPeriodStatusVo> goodsPeriodStatusVos = baseMapper.listSection(bo);
|
|
|
for (GoodsPeriodStatusVo goodsPeriodStatusVo : goodsPeriodStatusVos) {
|
|
|
@@ -325,6 +332,8 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
|
|
objectLambdaUpdateWrapper2.set(UserBankRecord::getCurrentStatus,0); //做卷记录改为历史状态
|
|
|
iUserBankRecordService.update(null, objectLambdaUpdateWrapper2);
|
|
|
}
|
|
|
+ //更新班级学时状态
|
|
|
+ iClassGradeUserService.updateUserPeriodStatus(bo);
|
|
|
return true;
|
|
|
}
|
|
|
|