Przeglądaj źródła

调整消息图标

傅行帆 6 lat temu
rodzic
commit
deda7bdb3e

+ 19
- 6
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpMessage.java Wyświetl plik

@@ -50,9 +50,14 @@ public class TpMessage {
50 50
     private String content;
51 51
     
52 52
     /**
53
-     * 消息图标
53
+     * 已读消息图标
54 54
      */
55
-    private String messageIcon;
55
+    private String readMessageIcon;
56
+    
57
+    /**
58
+     * 未读消息图标
59
+     */
60
+    private String unreadMessageIcon;
56 61
 
57 62
     public Integer getId() {
58 63
         return id;
@@ -214,11 +219,19 @@ public class TpMessage {
214 219
         this.content = content;
215 220
     }
216 221
     
217
-    public String getMessageIcon() {
218
-        return messageIcon;
222
+    public String getReadMessageIcon() {
223
+        return readMessageIcon;
224
+    }
225
+    
226
+    public void setReadMessageIcon(String readMessageIcon) {
227
+        this.readMessageIcon = readMessageIcon;
228
+    }
229
+    
230
+    public String getUnreadMessageIcon() {
231
+        return unreadMessageIcon;
219 232
     }
220 233
     
221
-    public void setMessageIcon(String messageIcon) {
222
-        this.messageIcon = messageIcon;
234
+    public void setUnreadMessageIcon(String unreadMessageIcon) {
235
+        this.unreadMessageIcon = unreadMessageIcon;
223 236
     }
224 237
 }

+ 5
- 3
CODE/smart-community/app-api/src/main/resources/mapper/TpMessageMapper.xml Wyświetl plik

@@ -22,7 +22,8 @@
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
+    <result column="read_message_icon" property="readMessageIcon" jdbcType="VARCHAR" />
26
+    <result column="unread_message_icon" property="unreadMessageIcon" jdbcType="VARCHAR" />
26 27
   </resultMap>
27 28
   <sql id="Base_Column_List" >
28 29
     id, ticket_id,community_id, message_type, advice_type, model_type, uuid, uuid_type, source,
@@ -284,13 +285,14 @@
284 285
         k.status,
285 286
         r.content,
286 287
         d.name as ticket_status,
287
-        y.name as message_icon
288
+        i.read_message_icon,
289
+		i.unread_message_icon
288 290
     FROM
289 291
         tp_message t
290 292
     LEFT JOIN tp_ticket k on t.ticket_id = k.id  AND k.community_id = #{communityId,jdbcType=INTEGER}
291 293
     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
292 294
     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" )
295
+    LEFT JOIN tp_message_icon i on t.message_type = i.message_type
294 296
     WHERE
295 297
         t.uuid_type = 1
296 298
         AND t.community_id = #{communityId,jdbcType=INTEGER}

+ 642
- 538
文档/MYSQL/smartCommunity.pdm
Plik diff jest za duży
Wyświetl plik