| | |
| | | <result column="live_cover" property="liveCover" /> |
| | | <result column="live_introduction" property="liveIntroduction" /> |
| | | <result column="start_time" property="startTime" /> |
| | | <result column="end_time" property="endTime" /> |
| | | <result column="expected_duration" property="expectedDuration" /> |
| | | <result column="live_way" property="liveWay" /> |
| | | <result column="live_mode" property="liveMode" /> |
| | |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, live_title, live_cover, live_introduction, start_time, expected_duration, live_way, live_mode, live_lecturer, live_type, password, live_detail, push_type, create_time, update_time, create_by, update_by, disabled |
| | | id, live_title, live_cover, live_introduction, start_time,end_time, expected_duration, live_way, live_mode, |
| | | live_lecturer, live_type, password, live_detail, push_type, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TSysLiveVO"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM t_sys_live |
| | | <where> |
| | | <if test="query.liveTitle != null and query.liveTitle != ''"> |
| | | AND live_title LIKE concat('%',#{query.liveTitle},'%') |
| | | </if> |
| | | <if test="query.liveStatus != null and query.liveStatus == 1"> |
| | | AND date_format(start_time,'%y%m%d %H%i%s') > date_format(NOW(),'%y%m%d %H%i%s') |
| | | </if> |
| | | <if test="query.liveStatus != null and query.liveStatus == 2"> |
| | | AND date_format(start_time,'%y%m%d %H%i%s') <= date_format(NOW(),'%y%m%d %H%i%s') |
| | | AND date_format(end_time,'%y%m%d %H%i%s') >= date_format(NOW(),'%y%m%d %H%i%s') |
| | | </if> |
| | | <if test="query.liveStatus != null and query.liveStatus == 3"> |
| | | AND date_format(end_time,'%y%m%d %H%i%s') < date_format(NOW(),'%y%m%d %H%i%s') |
| | | </if> |
| | | AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |