mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
szx-1241 处理异常
This commit is contained in:
@@ -999,11 +999,17 @@ public class CourseServiceImpl implements ICourseService {
|
|||||||
full.getCourse().setSysVersion(c.getSysVersion());
|
full.getCourse().setSysVersion(c.getSysVersion());
|
||||||
|
|
||||||
// 增加操作boe_course_teacher表记录
|
// 增加操作boe_course_teacher表记录
|
||||||
String body = JSONUtil.toJsonStr(full);
|
String body = null;
|
||||||
String location = "/xboe/m/course/manage/save";
|
String location = null;
|
||||||
List<CourseTeacher> teacherList = courseTeacherDao.findByCourseId(c.getId());
|
try {
|
||||||
for (CourseTeacher teacher : teacherList) {
|
body = JSONUtil.toJsonStr(full);
|
||||||
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
|
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());
|
full.getCourse().setSysVersion(c.getSysVersion());
|
||||||
|
|
||||||
// 增加操作boe_course_teacher表记录
|
// 增加操作boe_course_teacher表记录
|
||||||
String body = JSONUtil.toJsonStr(full);
|
String body = null;
|
||||||
String location = "/xboe/m/course/manage/submit";
|
String location = null;
|
||||||
List<CourseTeacher> teacherList = courseTeacherDao.findByCourseId(c.getId());
|
try {
|
||||||
for (CourseTeacher teacher : teacherList) {
|
body = JSONUtil.toJsonStr(full);
|
||||||
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
|
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);
|
courseDao.update(c);
|
||||||
|
|
||||||
// 增加操作boe_course_teacher表记录
|
// 增加操作boe_course_teacher表记录
|
||||||
String body = "body=" + JSONUtil.toJsonStr(full) + " aid=[" + aid + "] aname=[" + aname + "] ";
|
String body = null;
|
||||||
String location = "/xboe/m/course/audit/submit-publish";
|
String location = null;
|
||||||
List<CourseTeacher> teacherList = courseTeacherDao.findByCourseId(c.getId());
|
try {
|
||||||
for (CourseTeacher teacher : teacherList) {
|
body = "body=" + JSONUtil.toJsonStr(full) + " aid=[" + aid + "] aname=[" + aname + "] ";
|
||||||
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
|
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