|
|
@@ -65,8 +65,6 @@ public class CourseServiceImpl implements CourseService {
|
|
|
Course targetCourse = convertToPO(courseDTO);
|
|
|
targetCourse.setCreateTime(new Date());
|
|
|
|
|
|
- log.info("类型转换后的targetCourse"+targetCourse);
|
|
|
-
|
|
|
// 插入数据库
|
|
|
int status = courseMapper.insert(targetCourse);
|
|
|
if (status == 0) {
|
|
|
@@ -100,7 +98,6 @@ public class CourseServiceImpl implements CourseService {
|
|
|
wrapper.eq("course_id", courseQueryDTO.getCourseId());
|
|
|
}
|
|
|
if (courseQueryDTO.getTeacherPid() != null) { // courseId直接判断是否相等
|
|
|
- log.info("有pid:{}", courseQueryDTO.getTeacherPid());
|
|
|
wrapper.eq("teacher_portal_id", courseQueryDTO.getTeacherPid());
|
|
|
} else if (courseQueryDTO.getTeacherId() != null) { // 模糊匹配teacherIds中是否包含这个字段
|
|
|
wrapper.apply("FIND_IN_SET({0}, teacher_ids) > 0", courseQueryDTO.getTeacherId());
|
|
|
@@ -387,7 +384,6 @@ public class CourseServiceImpl implements CourseService {
|
|
|
BeanUtils.copyProperties(course, res);
|
|
|
if(course.getCourseImages() != null)
|
|
|
res.setCourseImages(ConvertUtil.stringToList(course.getCourseImages(), String::valueOf));
|
|
|
- log.info(res.toString());
|
|
|
// 组装教师名字
|
|
|
List<String> teacherNames = new ArrayList<>();
|
|
|
// 1.getTeacherIds
|