|
@@ -176,6 +176,9 @@ public class BasicCourseServiceImpl extends ServiceImpl<BasicCourseMapper, Basic
|
|
|
BasicCourse editBasicCourse = this.editEntityHelp(basicCourseParamsList, sysUser).get(0);
|
|
|
try {
|
|
|
this.saveOrUpdate(editBasicCourse);
|
|
|
+
|
|
|
+ // 同步更新命题任务中的课程名称
|
|
|
+ this.baseMapper.updateCourseNameFormExamTask(sysUser.getSchoolId(), editBasicCourse.getCode(), editBasicCourse.getName());
|
|
|
} catch (Exception e) {
|
|
|
if (e instanceof DataIntegrityViolationException) {
|
|
|
String error = e.getCause().toString();
|
|
@@ -416,6 +419,11 @@ public class BasicCourseServiceImpl extends ServiceImpl<BasicCourseMapper, Basic
|
|
|
List<BasicCourse> editBasicCourse = this.editEntityHelp(addBasicCourseParamsList, sysUser);
|
|
|
try {
|
|
|
this.saveOrUpdateBatch(editBasicCourse);
|
|
|
+
|
|
|
+ // 同步更新命题任务中的课程名称
|
|
|
+ for (BasicCourse basicCourse : editBasicCourse) {
|
|
|
+ this.baseMapper.updateCourseNameFormExamTask(sysUser.getSchoolId(), basicCourse.getCode(), basicCourse.getName());
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
if (e instanceof DataIntegrityViolationException) {
|
|
|
String error = e.getCause().toString();
|