|
@@ -11,10 +11,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
@@ -11,10 +11,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
11
|
<result property="id" column="id" />
|
11
|
<result property="id" column="id" />
|
|
12
|
<result property="sort" column="sort" />
|
12
|
<result property="sort" column="sort" />
|
|
13
|
<result property="update_time" column="update_time" />
|
13
|
<result property="update_time" column="update_time" />
|
|
|
|
14
|
+ <result property="phone" column="phone" />
|
|
14
|
</resultMap>
|
15
|
</resultMap>
|
|
15
|
|
16
|
|
|
16
|
<sql id="selectContentGroupManagementVo">
|
17
|
<sql id="selectContentGroupManagementVo">
|
|
17
|
- select `content`, `create_time`, `group_name`, `id`, `sort`,`update_time` from content_group_management
|
18
|
+ select `content`, `create_time`, `group_name`, `id`, `sort`,`update_time`,`phone` from content_group_management
|
|
18
|
</sql>
|
19
|
</sql>
|
|
19
|
|
20
|
|
|
20
|
<select id="selectContentGroupManagementList" parameterType="ContentGroupManagement" resultMap="ContentGroupManagementResult">
|
21
|
<select id="selectContentGroupManagementList" parameterType="ContentGroupManagement" resultMap="ContentGroupManagementResult">
|
|
@@ -23,6 +24,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
@@ -23,6 +24,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
23
|
<if test="params.beginCreate_time != null and params.beginCreate_time != '' and params.endCreate_time != null and params.endCreate_time != ''"> and create_time between #{params.beginCreate_time} and #{params.endCreate_time}</if>
|
24
|
<if test="params.beginCreate_time != null and params.beginCreate_time != '' and params.endCreate_time != null and params.endCreate_time != ''"> and create_time between #{params.beginCreate_time} and #{params.endCreate_time}</if>
|
|
24
|
<if test="group_name != null and group_name != ''"> and group_name like concat('%', #{group_name}, '%')</if>
|
25
|
<if test="group_name != null and group_name != ''"> and group_name like concat('%', #{group_name}, '%')</if>
|
|
25
|
<if test="id != null "> and id = #{id}</if>
|
26
|
<if test="id != null "> and id = #{id}</if>
|
|
|
|
27
|
+ <if test="phone != null and phone != ''">
|
|
|
|
28
|
+ AND phone like concat('%', #{phone}, '%')
|
|
|
|
29
|
+ </if>
|
|
26
|
</where>
|
30
|
</where>
|
|
27
|
order by `sort` desc
|
31
|
order by `sort` desc
|
|
28
|
</select>
|
32
|
</select>
|
|
@@ -39,12 +43,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
@@ -39,12 +43,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
39
|
<if test="create_time != null">create_time,</if>
|
43
|
<if test="create_time != null">create_time,</if>
|
|
40
|
<if test="group_name != null and group_name != ''">group_name,</if>
|
44
|
<if test="group_name != null and group_name != ''">group_name,</if>
|
|
41
|
<if test="sort != null">sort,</if>
|
45
|
<if test="sort != null">sort,</if>
|
|
|
|
46
|
+ <if test="phone != null">phone,</if>
|
|
42
|
</trim>
|
47
|
</trim>
|
|
43
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
48
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
44
|
<if test="content != null and content != ''">#{content},</if>
|
49
|
<if test="content != null and content != ''">#{content},</if>
|
|
45
|
<if test="create_time != null">#{create_time},</if>
|
50
|
<if test="create_time != null">#{create_time},</if>
|
|
46
|
<if test="group_name != null and group_name != ''">#{group_name},</if>
|
51
|
<if test="group_name != null and group_name != ''">#{group_name},</if>
|
|
47
|
<if test="sort != null">#{sort},</if>
|
52
|
<if test="sort != null">#{sort},</if>
|
|
|
|
53
|
+ <if test="phone != null">#{phone},</if>
|
|
48
|
</trim>
|
54
|
</trim>
|
|
49
|
</insert>
|
55
|
</insert>
|
|
50
|
|
56
|
|
|
@@ -56,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
@@ -56,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
56
|
<if test="group_name != null and group_name != ''">group_name = #{group_name},</if>
|
62
|
<if test="group_name != null and group_name != ''">group_name = #{group_name},</if>
|
|
57
|
<if test="sort != null">sort = #{sort},</if>
|
63
|
<if test="sort != null">sort = #{sort},</if>
|
|
58
|
<if test="update_time != null">update_time = #{update_time},</if>
|
64
|
<if test="update_time != null">update_time = #{update_time},</if>
|
|
|
|
65
|
+ <if test="phone != null">phone = #{phone},</if>
|
|
59
|
</trim>
|
66
|
</trim>
|
|
60
|
where id = #{id}
|
67
|
where id = #{id}
|
|
61
|
</update>
|
68
|
</update>
|