ShyLiveMapper.xml
3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cnlive.shenhe.mapper.ShyLiveMapper">
<resultMap id="BaseResultMap" type="com.cnlive.shenhe.entity.ShyLive">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="sp_id" jdbcType="INTEGER" property="sp_id"/>
<result column="channel_id" jdbcType="VARCHAR" property="channel_id"/>
<result column="activity_id" jdbcType="VARCHAR" property="activity_id"/>
<result column="activity_name" jdbcType="VARCHAR" property="activity_name"/>
<result column="activity_status" jdbcType="INTEGER" property="activity_status"/>
<result column="pre_start_time" jdbcType="TIMESTAMP" property="pre_start_time"/>
<result column="pre_end_time" jdbcType="TIMESTAMP" property="pre_end_time"/>
<result column="activity_start_time" jdbcType="TIMESTAMP" property="activity_start_time"/>
<result column="activity_end_time" jdbcType="TIMESTAMP" property="activity_end_time"/>
<result column="live_type" jdbcType="VARCHAR" property="live_type"/>
<result column="activity_intro" jdbcType="VARCHAR" property="activity_intro"/>
<result column="m3u8_url" jdbcType="VARCHAR" property="m3u8_url"/>
<result column="rtmp_url" jdbcType="VARCHAR" property="rtmp_url"/>
<result column="callback" jdbcType="VARCHAR" property="callback"/>
<result column="cover_img_url" jdbcType="VARCHAR" property="cover_img_url"/>
<result column="playback_url" jdbcType="VARCHAR" property="playback_url"/>
<result column="is_hot" jdbcType="INTEGER" property="is_hot"/>
<result column="shenhe_type" jdbcType="INTEGER" property="shenhe_type"/>
<result column="shenhe_state" jdbcType="INTEGER" property="shenhe_state"/>
<result column="updater" jdbcType="VARCHAR" property="updater"/>
<result column="auditor" jdbcType="VARCHAR" property="auditor"/>
<result column="shenhe_msg" jdbcType="VARCHAR" property="shenhe_msg"/>
<result column="avsample_state" jdbcType="INTEGER" property="avsample_state"/>
<result column="avsample_start_time" jdbcType="TIMESTAMP" property="avsample_start_time"/>
<result column="avsample_end_time" jdbcType="TIMESTAMP" property="avsample_end_time"/>
<result column="is_show" jdbcType="INTEGER" property="is_show"/>
<result column="created_at" jdbcType="TIMESTAMP" property="created_at"/>
<result column="updated_at" jdbcType="TIMESTAMP" property="updated_at"/>
<result column="avsample_imgs" jdbcType="LONGVARCHAR" property="avsample_imgs"/>
<result column="avsample_msg" jdbcType="LONGVARCHAR" property="avsample_msg"/>
</resultMap>
<select id="selectBySpId" resultType="com.cnlive.shenhe.entity.ShyLive">
select *
from shy_live
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="spId != null and spId != 0">
and sp_id = #{spId}
</if>
</where>
</select>
</mapper>