szx-1241 处理异常

This commit is contained in:
Caojr
2025-09-28 20:16:48 +08:00
parent 68fcde11fb
commit 80aaeb8d1d

View File

@@ -999,11 +999,17 @@ public class CourseServiceImpl implements ICourseService {
full.getCourse().setSysVersion(c.getSysVersion());
// 增加操作boe_course_teacher表记录
String body = JSONUtil.toJsonStr(full);
String location = "/xboe/m/course/manage/save";
List<CourseTeacher> teacherList = courseTeacherDao.findByCourseId(c.getId());
for (CourseTeacher teacher : teacherList) {
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
String body = null;
String location = null;
try {
body = JSONUtil.toJsonStr(full);
location = "/xboe/m/course/manage/save";
List<CourseTeacher> teacherList = courseTeacherDao.findByCourseId(c.getId());
for (CourseTeacher teacher : teacherList) {
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
}
} catch (Exception e) {
log.warn("增加操作boe_course_teacher表记录失败", e);
}
//先清空教师信息, 教师信息如果不一样了,也要加入到日志中
@@ -1064,11 +1070,17 @@ public class CourseServiceImpl implements ICourseService {
full.getCourse().setSysVersion(c.getSysVersion());
// 增加操作boe_course_teacher表记录
String body = JSONUtil.toJsonStr(full);
String location = "/xboe/m/course/manage/submit";
List<CourseTeacher> teacherList = courseTeacherDao.findByCourseId(c.getId());
for (CourseTeacher teacher : teacherList) {
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
String body = null;
String location = null;
try {
body = JSONUtil.toJsonStr(full);
location = "/xboe/m/course/manage/submit";
List<CourseTeacher> teacherList = courseTeacherDao.findByCourseId(c.getId());
for (CourseTeacher teacher : teacherList) {
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
}
} catch (Exception e) {
log.warn("增加操作boe_course_teacher表记录失败", e);
}
//先清空教师信息, 教师信息如果不一样了,也要加入到日志中
@@ -1110,11 +1122,17 @@ public class CourseServiceImpl implements ICourseService {
courseDao.update(c);
// 增加操作boe_course_teacher表记录
String body = "body=" + JSONUtil.toJsonStr(full) + " aid=[" + aid + "] aname=[" + aname + "] ";
String location = "/xboe/m/course/audit/submit-publish";
List<CourseTeacher> teacherList = courseTeacherDao.findByCourseId(c.getId());
for (CourseTeacher teacher : teacherList) {
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
String body = null;
String location = null;
try {
body = "body=" + JSONUtil.toJsonStr(full) + " aid=[" + aid + "] aname=[" + aname + "] ";
location = "/xboe/m/course/audit/submit-publish";
List<CourseTeacher> teacherList = courseTeacherDao.findByCourseId(c.getId());
for (CourseTeacher teacher : teacherList) {
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
}
} catch (Exception e) {
log.warn("增加操作boe_course_teacher表记录失败", e);
}
//先清空教师信息, 教师信息如果不一样了,也要加入到日志中