mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-08 02:16:49 +08:00
szx-1241 处理异常
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
//先清空教师信息, 教师信息如果不一样了,也要加入到日志中
|
||||
|
||||
Reference in New Issue
Block a user