|
|
|
@ -79,7 +79,16 @@ public class TeacherOpenCourseQuestionSettingService extends CoreBaseService<Tea
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void deleteTeacherOpenCourseQuestionSetting(String ids){
|
|
|
|
|
public void deleteByIds(@NotEmpty String ids) {
|
|
|
|
|
teacherOpenCourseQuestionSettingDao.deleteByIds(ids);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void deleteWithQuestionSnapByIds(@NotEmpty String settingIds) {
|
|
|
|
|
teacherOpenCourseQuestionSettingDao.deleteByIds(settingIds);
|
|
|
|
|
resourcesQuestionSnapshotService.deleteByTeacherOpenCourseQuestionSettingIds(settingIds);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void logicDeleteTeacherOpenCourseQuestionSetting(String ids){
|
|
|
|
|
try {
|
|
|
|
|
teacherOpenCourseQuestionSettingDao.deleteTeacherOpenCourseQuestionSettingByIds(ids);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
@ -257,8 +266,7 @@ public class TeacherOpenCourseQuestionSettingService extends CoreBaseService<Tea
|
|
|
|
|
// 编辑操作
|
|
|
|
|
if(ObjectUtil.isNotEmpty(settingQuery.getTeacherOpenCourseQuestionSettingId())) {
|
|
|
|
|
String editSettingIds = settingQuery.getTeacherOpenCourseQuestionSettingId().toString();
|
|
|
|
|
teacherOpenCourseQuestionSettingDao.deleteByIds(editSettingIds);
|
|
|
|
|
resourcesQuestionSnapshotService.deleteByTeacherOpenCourseQuestionSettingIds(editSettingIds);
|
|
|
|
|
deleteWithQuestionSnapByIds(editSettingIds);
|
|
|
|
|
// 删除主键,用于下面的保存方法
|
|
|
|
|
settingQuery.setTeacherOpenCourseQuestionSettingId(null);
|
|
|
|
|
}
|
|
|
|
|