|
@@ -3,6 +3,7 @@
|
3
|
3
|
<mapper namespace="com.community.huiju.dao.TpMessageMapper" >
|
4
|
4
|
<resultMap id="BaseResultMap" type="com.community.huiju.model.TpMessage" >
|
5
|
5
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
6
|
+ <id column="ticket_id" property="ticketId" jdbcType="INTEGER" />
|
6
|
7
|
<result column="community_id" property="communityId" jdbcType="INTEGER" />
|
7
|
8
|
<result column="message_type" property="messageType" jdbcType="CHAR" />
|
8
|
9
|
<result column="advice_type" property="adviceType" jdbcType="CHAR" />
|
|
@@ -21,7 +22,7 @@
|
21
|
22
|
<result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
|
22
|
23
|
</resultMap>
|
23
|
24
|
<sql id="Base_Column_List" >
|
24
|
|
- id, community_id, message_type, advice_type, model_type, uuid, uuid_type, source,
|
|
25
|
+ id, ticket_id,community_id, message_type, advice_type, model_type, uuid, uuid_type, source,
|
25
|
26
|
message_content, status, result, meaasge_type_id, read_status, create_user, create_date,
|
26
|
27
|
update_user, update_date
|
27
|
28
|
</sql>
|
|
@@ -36,25 +37,28 @@
|
36
|
37
|
where id = #{id,jdbcType=INTEGER}
|
37
|
38
|
</delete>
|
38
|
39
|
<insert id="insert" parameterType="com.community.huiju.model.TpMessage" >
|
39
|
|
- insert into tp_message (id, community_id, message_type,
|
|
40
|
+ insert into tp_message (id, ticket_id, community_id, message_type,
|
40
|
41
|
advice_type, model_type, uuid,
|
41
|
42
|
uuid_type, source, message_content,
|
42
|
43
|
status, result, meaasge_type_id,
|
43
|
44
|
read_status, create_user, create_date,
|
44
|
45
|
update_user, update_date)
|
45
|
|
- values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{messageType,jdbcType=CHAR},
|
|
46
|
+ values (#{id,jdbcType=INTEGER}, #{ticketId,jdbcType=INTEGER},#{communityId,jdbcType=INTEGER}, #{messageType,jdbcType=CHAR},
|
46
|
47
|
#{adviceType,jdbcType=CHAR}, #{modelType,jdbcType=CHAR}, #{uuid,jdbcType=INTEGER},
|
47
|
48
|
#{uuidType,jdbcType=CHAR}, #{source,jdbcType=CHAR}, #{messageContent,jdbcType=VARCHAR},
|
48
|
49
|
#{status,jdbcType=CHAR}, #{result,jdbcType=VARCHAR}, #{meaasgeTypeId,jdbcType=VARCHAR},
|
49
|
50
|
#{readStatus,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP},
|
50
|
51
|
#{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
|
51
|
52
|
</insert>
|
52
|
|
- <insert id="insertSelective" parameterType="com.community.huiju.model.TpMessage" >
|
|
53
|
+ <insert id="insertSelective" parameterType="com.community.huiju.model.TpMessage" useGeneratedKeys="true" keyProperty="id" >
|
53
|
54
|
insert into tp_message
|
54
|
55
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
55
|
56
|
<if test="id != null" >
|
56
|
57
|
id,
|
57
|
58
|
</if>
|
|
59
|
+ <if test="ticketId != null">
|
|
60
|
+ ticket_id,
|
|
61
|
+ </if>
|
58
|
62
|
<if test="communityId != null" >
|
59
|
63
|
community_id,
|
60
|
64
|
</if>
|
|
@@ -108,6 +112,9 @@
|
108
|
112
|
<if test="id != null" >
|
109
|
113
|
#{id,jdbcType=INTEGER},
|
110
|
114
|
</if>
|
|
115
|
+ <if test="ticketId != null">
|
|
116
|
+ #{ticketId,jdbcType=INTEGER},
|
|
117
|
+ </if>
|
111
|
118
|
<if test="communityId != null" >
|
112
|
119
|
#{communityId,jdbcType=INTEGER},
|
113
|
120
|
</if>
|
|
@@ -161,6 +168,9 @@
|
161
|
168
|
<update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpMessage" >
|
162
|
169
|
update tp_message
|
163
|
170
|
<set >
|
|
171
|
+ <if test="ticketId != null">
|
|
172
|
+ ticket_id = #{ticketId,jdbcType=INTEGER},
|
|
173
|
+ </if>
|
164
|
174
|
<if test="communityId != null" >
|
165
|
175
|
community_id = #{communityId,jdbcType=INTEGER},
|
166
|
176
|
</if>
|
|
@@ -214,7 +224,8 @@
|
214
|
224
|
</update>
|
215
|
225
|
<update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpMessage" >
|
216
|
226
|
update tp_message
|
217
|
|
- set community_id = #{communityId,jdbcType=INTEGER},
|
|
227
|
+ set ticket_id = #{ticketId,jdbcType=INTEGER},
|
|
228
|
+ community_id = #{communityId,jdbcType=INTEGER},
|
218
|
229
|
message_type = #{messageType,jdbcType=CHAR},
|
219
|
230
|
advice_type = #{adviceType,jdbcType=CHAR},
|
220
|
231
|
model_type = #{modelType,jdbcType=CHAR},
|