1
|
-<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
2
|
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
3
|
-<mapper namespace="com.yoho.search.dal.CsRecallConfigCommonMapper">
|
|
|
4
|
- <resultMap id="BaseResultMap" type="com.yoho.search.dal.model.CsRecallConfigCommon">
|
|
|
5
|
- <id column="id" property="id" jdbcType="INTEGER"/>
|
|
|
6
|
- <result column="config_type" property="configType" jdbcType="VARCHAR"/>
|
|
|
7
|
- <result column="config_page" property="configPage" jdbcType="INTEGER"/>
|
|
|
8
|
- <result column="size" property="size" jdbcType="INTEGER"/>
|
|
|
9
|
- <result column="size_limit" property="sizeLimit" jdbcType="VARCHAR"/>
|
|
|
10
|
- <result column="interval" property="interval" jdbcType="INTEGER"/>
|
|
|
11
|
- <result column="interval_limit" property="intervalLimit" jdbcType="VARCHAR"/>
|
|
|
12
|
- <result column="description" property="description" jdbcType="VARCHAR"/>
|
|
|
13
|
- <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
|
|
|
14
|
- </resultMap>
|
|
|
15
|
-
|
|
|
16
|
- <sql id="Base_Column_List">
|
|
|
17
|
- id, config_type, config_page,`size`, size_limit, `interval`, interval_limit, description, update_time
|
|
|
18
|
- </sql>
|
|
|
19
|
-
|
|
|
20
|
- <insert id="insert" parameterType="com.yoho.search.dal.model.CsRecallConfigCommon" timeout="20000">
|
|
|
21
|
- insert ignore into cs_recall_config_common (id,config_type, config_page, `size`, size_limit, `interval`, interval_limit, description)
|
|
|
22
|
- values (#{id,jdbcType=INTEGER},#{configType,jdbcType=VARCHAR}, #{configPage,jdbcType=INTEGER}, #{size,jdbcType=INTEGER},#{sizeLimit,jdbcType=VARCHAR}, #{interval,jdbcType=INTEGER}, #{intervalLimit,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR})
|
|
|
23
|
- </insert>
|
|
|
24
|
-
|
|
|
25
|
- <update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.CsRecallConfigCommon" timeout="20000">
|
|
|
26
|
- update cs_recall_config_common
|
|
|
27
|
- <set>
|
|
|
28
|
- <if test="configType != null">
|
|
|
29
|
- config_type = #{configType,jdbcType=VARCHAR},
|
|
|
30
|
- </if>
|
|
|
31
|
- <if test="configPage != null">
|
|
|
32
|
- config_page = #{configPage,jdbcType=INTEGER},
|
|
|
33
|
- </if>
|
|
|
34
|
- <if test="size != null">
|
|
|
35
|
- `size` = #{size,jdbcType=INTEGER},
|
|
|
36
|
- </if>
|
|
|
37
|
- <if test="sizeLimit != null">
|
|
|
38
|
- size_limit = #{sizeLimit,jdbcType=VARCHAR},
|
|
|
39
|
- </if>
|
|
|
40
|
- <if test="interval != null">
|
|
|
41
|
- `interval` = #{interval,jdbcType=INTEGER},
|
|
|
42
|
- </if>
|
|
|
43
|
- <if test="intervalLimit != null">
|
|
|
44
|
- interval_limit = #{intervalLimit,jdbcType=VARCHAR},
|
|
|
45
|
- </if>
|
|
|
46
|
- <if test="description != null">
|
|
|
47
|
- description = #{description,jdbcType=VARCHAR},
|
|
|
48
|
- </if>
|
|
|
49
|
- </set>
|
|
|
50
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
51
|
- </update>
|
|
|
52
|
-
|
|
|
53
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" timeout="20000">
|
|
|
54
|
- delete from cs_recall_config_common
|
|
|
55
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
56
|
- </delete>
|
|
|
57
|
-
|
|
|
58
|
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" timeout="20000">
|
|
|
59
|
- select
|
|
|
60
|
- <include refid="Base_Column_List"/>
|
|
|
61
|
- from cs_recall_config_common
|
|
|
62
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
63
|
- LIMIT 1
|
|
|
64
|
- </select>
|
|
|
65
|
-
|
|
|
66
|
- <select id="selectCount" resultType="int">
|
|
|
67
|
- select count(0) from cs_recall_config_common
|
|
|
68
|
- </select>
|
|
|
69
|
-
|
|
|
70
|
- <select id="selectPageLists" resultMap="BaseResultMap" timeout="20000">
|
|
|
71
|
- select <include refid="Base_Column_List" /> from cs_recall_config_common limit #{start}, #{limit}
|
|
|
72
|
- </select>
|
|
|
73
|
-
|
1
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
2
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
3
|
+<mapper namespace="com.yoho.search.dal.CsRecallConfigCommonMapper">
|
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.yoho.search.dal.model.CsRecallConfigCommon">
|
|
|
5
|
+ <id column="id" property="id" jdbcType="INTEGER"/>
|
|
|
6
|
+ <result column="config_type" property="configType" jdbcType="VARCHAR"/>
|
|
|
7
|
+ <result column="config_page" property="configPage" jdbcType="INTEGER"/>
|
|
|
8
|
+ <result column="size" property="size" jdbcType="INTEGER"/>
|
|
|
9
|
+ <result column="size_limit" property="sizeLimit" jdbcType="VARCHAR"/>
|
|
|
10
|
+ <result column="interval" property="interval" jdbcType="INTEGER"/>
|
|
|
11
|
+ <result column="interval_limit" property="intervalLimit" jdbcType="VARCHAR"/>
|
|
|
12
|
+ <result column="description" property="description" jdbcType="VARCHAR"/>
|
|
|
13
|
+ <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
|
|
|
14
|
+ </resultMap>
|
|
|
15
|
+
|
|
|
16
|
+ <sql id="Base_Column_List">
|
|
|
17
|
+ id, config_type, config_page,`size`, size_limit, `interval`, interval_limit, description, insert_order, update_time
|
|
|
18
|
+ </sql>
|
|
|
19
|
+
|
|
|
20
|
+ <insert id="insert" parameterType="com.yoho.search.dal.model.CsRecallConfigCommon" timeout="20000">
|
|
|
21
|
+ insert ignore into cs_recall_config_common (
|
|
|
22
|
+ id,config_type, config_page,
|
|
|
23
|
+ `size`, size_limit, `interval`, interval_limit,
|
|
|
24
|
+ insert_order, description)
|
|
|
25
|
+ values (
|
|
|
26
|
+ #{id,jdbcType=INTEGER},#{configType,jdbcType=VARCHAR}, #{configPage,jdbcType=INTEGER},
|
|
|
27
|
+ #{size,jdbcType=INTEGER},#{sizeLimit,jdbcType=VARCHAR},
|
|
|
28
|
+ #{interval,jdbcType=INTEGER}, #{intervalLimit,jdbcType=VARCHAR},
|
|
|
29
|
+ #{insertOrder,jdbcType=INTEGER},#{description,jdbcType=VARCHAR})
|
|
|
30
|
+ </insert>
|
|
|
31
|
+
|
|
|
32
|
+ <update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.CsRecallConfigCommon" timeout="20000">
|
|
|
33
|
+ update cs_recall_config_common
|
|
|
34
|
+ <set>
|
|
|
35
|
+ <if test="configType != null">
|
|
|
36
|
+ config_type = #{configType,jdbcType=VARCHAR},
|
|
|
37
|
+ </if>
|
|
|
38
|
+ <if test="configPage != null">
|
|
|
39
|
+ config_page = #{configPage,jdbcType=INTEGER},
|
|
|
40
|
+ </if>
|
|
|
41
|
+ <if test="size != null">
|
|
|
42
|
+ `size` = #{size,jdbcType=INTEGER},
|
|
|
43
|
+ </if>
|
|
|
44
|
+ <if test="sizeLimit != null">
|
|
|
45
|
+ size_limit = #{sizeLimit,jdbcType=VARCHAR},
|
|
|
46
|
+ </if>
|
|
|
47
|
+ <if test="interval != null">
|
|
|
48
|
+ `interval` = #{interval,jdbcType=INTEGER},
|
|
|
49
|
+ </if>
|
|
|
50
|
+ <if test="intervalLimit != null">
|
|
|
51
|
+ interval_limit = #{intervalLimit,jdbcType=VARCHAR},
|
|
|
52
|
+ </if>
|
|
|
53
|
+ <if test="insertOrder != null">
|
|
|
54
|
+ insert_order = #{insertOrder,jdbcType=VARCHAR},
|
|
|
55
|
+ </if>
|
|
|
56
|
+ <if test="description != null">
|
|
|
57
|
+ description = #{description,jdbcType=VARCHAR},
|
|
|
58
|
+ </if>
|
|
|
59
|
+ </set>
|
|
|
60
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
61
|
+ </update>
|
|
|
62
|
+
|
|
|
63
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" timeout="20000">
|
|
|
64
|
+ delete from cs_recall_config_common
|
|
|
65
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
66
|
+ </delete>
|
|
|
67
|
+
|
|
|
68
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" timeout="20000">
|
|
|
69
|
+ select
|
|
|
70
|
+ <include refid="Base_Column_List"/>
|
|
|
71
|
+ from cs_recall_config_common
|
|
|
72
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
73
|
+ LIMIT 1
|
|
|
74
|
+ </select>
|
|
|
75
|
+
|
|
|
76
|
+ <select id="selectCount" resultType="int">
|
|
|
77
|
+ select count(0) from cs_recall_config_common
|
|
|
78
|
+ </select>
|
|
|
79
|
+
|
|
|
80
|
+ <select id="selectPageLists" resultMap="BaseResultMap" timeout="20000">
|
|
|
81
|
+ select
|
|
|
82
|
+ <include refid="Base_Column_List"/>
|
|
|
83
|
+ from cs_recall_config_common limit #{start}, #{limit}
|
|
|
84
|
+ </select>
|
|
|
85
|
+
|
74
|
</mapper> |
86
|
</mapper> |