|
|
|
|
26
|
<result column="unread_message_icon" property="unreadMessageIcon" jdbcType="VARCHAR" />
|
26
|
<result column="unread_message_icon" property="unreadMessageIcon" jdbcType="VARCHAR" />
|
27
|
<result column="message_detail_url" property="messageDetailUrl" jdbcType="VARCHAR" />
|
27
|
<result column="message_detail_url" property="messageDetailUrl" jdbcType="VARCHAR" />
|
28
|
<result column="message_icon_title" property="messageIconTitle" jdbcType="VARCHAR" />
|
28
|
<result column="message_icon_title" property="messageIconTitle" jdbcType="VARCHAR" />
|
29
|
- <result column="bill_id" property="billId" jdbcType="INTEGER" />
|
|
|
|
|
29
|
+ <result column="common_id" property="commonId" jdbcType="INTEGER" />
|
30
|
</resultMap>
|
30
|
</resultMap>
|
31
|
<sql id="Base_Column_List" >
|
31
|
<sql id="Base_Column_List" >
|
32
|
id, ticket_id,community_id, message_type, advice_type, model_type, uuid, uuid_type, source,
|
32
|
id, ticket_id,community_id, message_type, advice_type, model_type, uuid, uuid_type, source,
|
33
|
message_content, status, result, meaasge_type_id, read_status, create_user, create_date,
|
33
|
message_content, status, result, meaasge_type_id, read_status, create_user, create_date,
|
34
|
- update_user, update_date, bill_id
|
|
|
|
|
34
|
+ update_user, update_date, common_id
|
35
|
</sql>
|
35
|
</sql>
|
36
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
36
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
37
|
select
|
37
|
select
|
|
|
|
|
49
|
uuid_type, source, message_content,
|
49
|
uuid_type, source, message_content,
|
50
|
status, result, meaasge_type_id,
|
50
|
status, result, meaasge_type_id,
|
51
|
read_status, create_user, create_date,
|
51
|
read_status, create_user, create_date,
|
52
|
- update_user, update_date, bill_id)
|
|
|
|
|
52
|
+ update_user, update_date, common_id)
|
53
|
values (#{id,jdbcType=INTEGER}, #{ticketId,jdbcType=INTEGER},#{communityId,jdbcType=INTEGER}, #{messageType,jdbcType=CHAR},
|
53
|
values (#{id,jdbcType=INTEGER}, #{ticketId,jdbcType=INTEGER},#{communityId,jdbcType=INTEGER}, #{messageType,jdbcType=CHAR},
|
54
|
#{adviceType,jdbcType=CHAR}, #{modelType,jdbcType=CHAR}, #{uuid,jdbcType=INTEGER},
|
54
|
#{adviceType,jdbcType=CHAR}, #{modelType,jdbcType=CHAR}, #{uuid,jdbcType=INTEGER},
|
55
|
#{uuidType,jdbcType=CHAR}, #{source,jdbcType=CHAR}, #{messageContent,jdbcType=VARCHAR},
|
55
|
#{uuidType,jdbcType=CHAR}, #{source,jdbcType=CHAR}, #{messageContent,jdbcType=VARCHAR},
|
56
|
#{status,jdbcType=CHAR}, #{result,jdbcType=VARCHAR}, #{meaasgeTypeId,jdbcType=VARCHAR},
|
56
|
#{status,jdbcType=CHAR}, #{result,jdbcType=VARCHAR}, #{meaasgeTypeId,jdbcType=VARCHAR},
|
57
|
#{readStatus,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP},
|
57
|
#{readStatus,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP},
|
58
|
- #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP}, #{billId,jdbcType=INTEGER})
|
|
|
|
|
58
|
+ #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP}, #{commonId,jdbcType=INTEGER})
|
59
|
</insert>
|
59
|
</insert>
|
60
|
<insert id="insertSelective" parameterType="com.community.huiju.model.TpMessage" useGeneratedKeys="true" keyProperty="id" >
|
60
|
<insert id="insertSelective" parameterType="com.community.huiju.model.TpMessage" useGeneratedKeys="true" keyProperty="id" >
|
61
|
insert into tp_message
|
61
|
insert into tp_message
|
|
|
|
|
114
|
<if test="updateDate != null" >
|
114
|
<if test="updateDate != null" >
|
115
|
update_date,
|
115
|
update_date,
|
116
|
</if>
|
116
|
</if>
|
117
|
- <if test="billId != null">
|
|
|
118
|
- bill_id,
|
|
|
|
|
117
|
+ <if test="commonId != null">
|
|
|
118
|
+ common_id,
|
119
|
</if>
|
119
|
</if>
|
120
|
</trim>
|
120
|
</trim>
|
121
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
121
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
|
|
173
|
<if test="updateDate != null" >
|
173
|
<if test="updateDate != null" >
|
174
|
#{updateDate,jdbcType=TIMESTAMP},
|
174
|
#{updateDate,jdbcType=TIMESTAMP},
|
175
|
</if>
|
175
|
</if>
|
176
|
- <if test="billId != null">
|
|
|
177
|
- #{billId,jdbcType=INTEGER},
|
|
|
|
|
176
|
+ <if test="commonId != null">
|
|
|
177
|
+ #{commonId,jdbcType=INTEGER},
|
178
|
</if>
|
178
|
</if>
|
179
|
</trim>
|
179
|
</trim>
|
180
|
</insert>
|
180
|
</insert>
|
|
|
|
|
232
|
<if test="updateDate != null" >
|
232
|
<if test="updateDate != null" >
|
233
|
update_date = #{updateDate,jdbcType=TIMESTAMP},
|
233
|
update_date = #{updateDate,jdbcType=TIMESTAMP},
|
234
|
</if>
|
234
|
</if>
|
235
|
- <if test="billId != null">
|
|
|
236
|
- bill_id = #{billId,jdbcType=INTEGER}
|
|
|
|
|
235
|
+ <if test="commonId != null">
|
|
|
236
|
+ common_id = #{commonId,jdbcType=INTEGER}
|
237
|
</if>
|
237
|
</if>
|
238
|
</set>
|
238
|
</set>
|
239
|
where id = #{id,jdbcType=INTEGER}
|
239
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
257
|
create_date = #{createDate,jdbcType=TIMESTAMP},
|
257
|
create_date = #{createDate,jdbcType=TIMESTAMP},
|
258
|
update_user = #{updateUser,jdbcType=INTEGER},
|
258
|
update_user = #{updateUser,jdbcType=INTEGER},
|
259
|
update_date = #{updateDate,jdbcType=TIMESTAMP},
|
259
|
update_date = #{updateDate,jdbcType=TIMESTAMP},
|
260
|
- bill_id = #{billId,jdbcType=INTEGER}
|
|
|
|
|
260
|
+ common_id = #{commonId,jdbcType=INTEGER}
|
261
|
where id = #{id,jdbcType=INTEGER}
|
261
|
where id = #{id,jdbcType=INTEGER}
|
262
|
</update>
|
262
|
</update>
|
263
|
|
263
|
|