| | |
| | | <select id="queryCoursePackageSchedulingList" resultType="map"> |
| | | SELECT |
| | | CAST(id AS CHAR(20)) AS id, |
| | | CONCAT(DATE_FORMAT(classDate, '%Y-%m-%d %H:%i'), '-20:00') AS classDate, |
| | | CONCAT(DATE_FORMAT(classDate, '%Y-%m-%d %H:%i'),'-',DATE_FORMAT(endDate, '%H:%i')) AS classDate, |
| | | courseId, |
| | | `status`, |
| | | cancelClasses, |
| | |
| | | </select> |
| | | <select id="queryAll" resultType="com.dsh.course.model.vo.response.AppUserVideoResponse"> |
| | | |
| | | SELECT cs.courseId as videoId,cs.coursePackageId as coursePackageId,tc.coverDrawing,tc.name as videoName,tc.introduce as synopsis,cs.integral,tc.courseVideo as courseVideo |
| | | SELECT cs.courseId as videoId,cs.coursePackageId as coursePackageId,tc.coverDrawing as coverImage,tc.name as videoName,tc.introduce as synopsis,cs.integral,tc.courseVideo as courseVideo,cp.name as packageName,cs.id as scId |
| | | FROM t_course_package_scheduling cs |
| | | LEFT JOIN t_course tc ON cs.courseId = tc.id |
| | | WHERE cs.courseId IS NOT NULL and cs.id in |
| | | <foreach collection="longs" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | left join t_course_package cp on cs.coursePackageId = cp.id |
| | | WHERE cs.courseId IS NOT NULL |
| | | <if test="longs != null"> |
| | | AND cs.id IN |
| | | <foreach collection="longs" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | </select> |
| | | <select id="isHave" resultType="int"> |