| | |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | |
| | | <select id="pageListApp" 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> |