|
@@ -22,6 +22,7 @@
|
22
|
22
|
<result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
|
23
|
23
|
<result column="ticket_status" property="ticketStatus" jdbcType="VARCHAR" />
|
24
|
24
|
<result column="content" property="content" jdbcType="VARCHAR" />
|
|
25
|
+ <result column="message_icon" property="messageIcon" jdbcType="VARCHAR" />
|
25
|
26
|
</resultMap>
|
26
|
27
|
<sql id="Base_Column_List" >
|
27
|
28
|
id, ticket_id,community_id, message_type, advice_type, model_type, uuid, uuid_type, source,
|
|
@@ -282,12 +283,14 @@
|
282
|
283
|
t.update_date,
|
283
|
284
|
k.status,
|
284
|
285
|
r.content,
|
285
|
|
- d.name as ticket_status
|
|
286
|
+ d.name as ticket_status,
|
|
287
|
+ y.name as message_icon
|
286
|
288
|
FROM
|
287
|
289
|
tp_message t
|
288
|
290
|
LEFT JOIN tp_ticket k on t.ticket_id = k.id AND k.community_id = #{communityId,jdbcType=INTEGER}
|
289
|
291
|
LEFT JOIN tp_ticket_record r on t.ticket_id = r.ticket_id AND r.community_id = #{communityId,jdbcType=INTEGER} AND k.status = r.status
|
290
|
292
|
LEFT JOIN sys_dictionary d on k.status = d.code AND d.group_id = ( SELECT id FROM sys_dictionary WHERE CODE = "ticket_status" )
|
|
293
|
+ LEFT JOIN sys_dictionary y on t.message_type = y.code AND y.group_id = ( SELECT id FROM sys_dictionary WHERE CODE = "message_type_img" )
|
291
|
294
|
WHERE
|
292
|
295
|
t.uuid_type = 1
|
293
|
296
|
AND t.community_id = #{communityId,jdbcType=INTEGER}
|