mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-16 14:26:49 +08:00
szx-1241 处理异常
This commit is contained in:
@@ -819,8 +819,15 @@ public class CourseServiceImpl implements ICourseService {
|
||||
String location = "/xboe/m/course/manage/delete";
|
||||
List<CourseTeacher> teacherList = courseTeacherDao.findByCourseId(id);
|
||||
log.info("teacherList:{}", JSONUtil.toJsonStr(teacherList));
|
||||
for (CourseTeacher teacher : teacherList) {
|
||||
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
|
||||
try {
|
||||
List<List<CourseTeacher>> list = JSONUtil.toBean(JSONUtil.toJsonStr(teacherList), List.class);
|
||||
list.forEach(item -> {
|
||||
for (CourseTeacher teacher : item) {
|
||||
courseTeacherModifyRecordDao.insertRecord("DELETE", location, teacher, body);
|
||||
}
|
||||
});
|
||||
} catch (Exception e) {
|
||||
log.warn("增加操作boe_course_teacher表记录失败", e);
|
||||
}
|
||||
|
||||
if (!erasable) {
|
||||
|
||||
Reference in New Issue
Block a user