|
@@ -5,12 +5,13 @@
|
5
|
5
|
<id column="id" property="id" jdbcType="INTEGER" />
|
6
|
6
|
<result column="community_id" property="communityId" jdbcType="INTEGER" />
|
7
|
7
|
<result column="ticket_id" property="ticketId" jdbcType="INTEGER" />
|
|
8
|
+ <result column="content" property="content" jdbcType="VARCHAR" />
|
8
|
9
|
<result column="status" property="status" jdbcType="CHAR" />
|
9
|
10
|
<result column="create_user" property="createUser" jdbcType="INTEGER" />
|
10
|
11
|
<result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
|
11
|
12
|
</resultMap>
|
12
|
13
|
<sql id="Base_Column_List" >
|
13
|
|
- id, community_id, ticket_id, status, create_user, create_date
|
|
14
|
+ id, community_id, ticket_id, content, status, create_user, create_date
|
14
|
15
|
</sql>
|
15
|
16
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
16
|
17
|
select
|
|
@@ -23,11 +24,11 @@
|
23
|
24
|
where id = #{id,jdbcType=INTEGER}
|
24
|
25
|
</delete>
|
25
|
26
|
<insert id="insert" parameterType="com.community.huiju.model.TpTicketRecord" >
|
26
|
|
- insert into tp_ticket_record (id, community_id, ticket_id,
|
|
27
|
+ insert into tp_ticket_record (id, community_id, ticket_id, content,
|
27
|
28
|
status, create_user, create_date
|
28
|
29
|
)
|
29
|
30
|
values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{ticketId,jdbcType=INTEGER},
|
30
|
|
- #{status,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}
|
|
31
|
+ #{content,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}
|
31
|
32
|
)
|
32
|
33
|
</insert>
|
33
|
34
|
<insert id="insertSelective" parameterType="com.community.huiju.model.TpTicketRecord" >
|
|
@@ -42,6 +43,9 @@
|
42
|
43
|
<if test="ticketId != null" >
|
43
|
44
|
ticket_id,
|
44
|
45
|
</if>
|
|
46
|
+ <if test="content != null">
|
|
47
|
+ content,
|
|
48
|
+ </if>
|
45
|
49
|
<if test="status != null" >
|
46
|
50
|
status,
|
47
|
51
|
</if>
|
|
@@ -62,6 +66,9 @@
|
62
|
66
|
<if test="ticketId != null" >
|
63
|
67
|
#{ticketId,jdbcType=INTEGER},
|
64
|
68
|
</if>
|
|
69
|
+ <if test="content != null">
|
|
70
|
+ #{content,jdbcType=VARCHAR},
|
|
71
|
+ </if>
|
65
|
72
|
<if test="status != null" >
|
66
|
73
|
#{status,jdbcType=CHAR},
|
67
|
74
|
</if>
|
|
@@ -82,6 +89,9 @@
|
82
|
89
|
<if test="ticketId != null" >
|
83
|
90
|
ticket_id = #{ticketId,jdbcType=INTEGER},
|
84
|
91
|
</if>
|
|
92
|
+ <if test="content != null">
|
|
93
|
+ content = #{content,jdbcType=VARCHAR},
|
|
94
|
+ </if>
|
85
|
95
|
<if test="status != null" >
|
86
|
96
|
status = #{status,jdbcType=CHAR},
|
87
|
97
|
</if>
|
|
@@ -98,6 +108,7 @@
|
98
|
108
|
update tp_ticket_record
|
99
|
109
|
set community_id = #{communityId,jdbcType=INTEGER},
|
100
|
110
|
ticket_id = #{ticketId,jdbcType=INTEGER},
|
|
111
|
+ content = #{content,jdbcType=VARCHAR},
|
101
|
112
|
status = #{status,jdbcType=CHAR},
|
102
|
113
|
create_user = #{createUser,jdbcType=INTEGER},
|
103
|
114
|
create_date = #{createDate,jdbcType=TIMESTAMP}
|