courses表新增字段status

master
Alan 5 months ago
parent 8483062aff
commit 47341da312
  1. 1
      src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java

@ -164,6 +164,7 @@ public class CoursesServiceImpl extends ServiceImpl<CoursesMapper, Courses> impl
coursesMapper.updateById(course);
BeanUtil.copyProperties(coursesDTO, course);
course.setStatus(0);
course.setUpdateTime(LocalDateTime.now());
coursesMapper.updateById(course);
}

Loading…
Cancel
Save