| | |
| | | import com.tcm.training.admin.live.vo.LiveCourseListRow; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | @Mapper |
| | | public interface LiveCourseMapper extends BaseMapper<LiveCourse> { |
| | | |
| | | /** 按课程 ID 更新直播间密码,允许将密码设置为 NULL 以清除密码。 */ |
| | | @Update("UPDATE tcm_live_course SET password = #{password,jdbcType=VARCHAR}, updated_at = NOW() WHERE id = #{id} AND deleted = 0") |
| | | int updatePasswordById(@Param("id") Long id, @Param("password") String password); |
| | | |
| | | /** 课程分页列表(动态筛选) */ |
| | | IPage<LiveCourseListRow> selectCoursePage(IPage<LiveCourseListRow> page, |
| | | @Param("keyword") String keyword, |