ShyContentMapper.xml
2.41 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
<?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.ShyContentMapper">
<resultMap id="BaseResultMap" type="com.cnlive.shenhe.entity.ShyContent">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="content_id" jdbcType="VARCHAR" property="content_id"/>
<result column="sp_id" jdbcType="INTEGER" property="sp_id"/>
<result column="title_image" jdbcType="VARCHAR" property="title_image"/>
<result column="content_tag" jdbcType="VARCHAR" property="content_tag"/>
<result column="content_url" jdbcType="VARCHAR" property="content_url"/>
<result column="shenhe_type" jdbcType="INTEGER" property="shenhe_type"/>
<result column="content_status" jdbcType="INTEGER" property="content_status"/>
<result column="callback" jdbcType="VARCHAR" property="callback"/>
<result column="source" jdbcType="VARCHAR" property="source"/>
<result column="author" jdbcType="VARCHAR" property="author"/>
<result column="video_id" jdbcType="VARCHAR" property="video_id"/>
<result column="content_time" jdbcType="TIMESTAMP" property="content_time"/>
<result column="create_date" jdbcType="TIMESTAMP" property="create_date"/>
<result column="last_update" jdbcType="TIMESTAMP" property="last_update"/>
<result column="receive_status" jdbcType="INTEGER" property="receive_status"/>
<result column="auditor_id" jdbcType="VARCHAR" property="auditor_id"/>
<result column="updater" jdbcType="VARCHAR" property="updater"/>
<result column="shenhe_msg" jdbcType="VARCHAR" property="shenhe_msg"/>
<result column="title" jdbcType="LONGVARCHAR" property="title"/>
<result column="content_pc_url" jdbcType="LONGVARCHAR" property="content_pc_url"/>
<result column="content_text" jdbcType="LONGVARCHAR" property="content_text"/>
</resultMap>
<select id="selectBySpId" resultType="com.cnlive.shenhe.entity.ShyContent">
select *
from shy_content
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="spId != null and spId != 0">
and sp_id = #{spId}
</if>
</where>
</select>
</mapper>