weiximei преди 6 години
родител
ревизия
e668b8ae61

+ 10
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpMessage.java Целия файл

@@ -63,6 +63,8 @@ public class TpMessage {
63 63
      * 消息详情url链接
64 64
      */
65 65
     private String messageDetailUrl;
66
+    
67
+    private String messageIconTitle;
66 68
 
67 69
     public Integer getId() {
68 70
         return id;
@@ -247,4 +249,12 @@ public class TpMessage {
247 249
     public void setMessageDetailUrl(String messageDetailUrl) {
248 250
         this.messageDetailUrl = messageDetailUrl;
249 251
     }
252
+    
253
+    public String getMessageIconTitle() {
254
+        return messageIconTitle;
255
+    }
256
+    
257
+    public void setMessageIconTitle(String messageIconTitle) {
258
+        this.messageIconTitle = messageIconTitle;
259
+    }
250 260
 }

+ 6
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MessageServiceImpl.java Целия файл

@@ -7,6 +7,7 @@ import com.github.pagehelper.Page;
7 7
 import com.github.pagehelper.PageHelper;
8 8
 import org.springframework.beans.factory.annotation.Autowired;
9 9
 import org.springframework.stereotype.Service;
10
+import org.springframework.util.StringUtils;
10 11
 
11 12
 import java.util.HashMap;
12 13
 import java.util.List;
@@ -46,6 +47,11 @@ public class MessageServiceImpl implements MessageServiceI {
46 47
 		Page page = PageHelper.startPage(pageNum, pageSize);
47 48
 		// 获取数据
48 49
 		List<TpMessage> messageList = tpMessageMapper.getMessages(userId,communityId, modelType);
50
+		messageList.stream().forEach(tpMessage -> {
51
+			if (!StringUtils.isEmpty(tpMessage.getMessageDetailUrl())){
52
+				tpMessage.setMessageDetailUrl(tpMessage.getMessageDetailUrl() + "&id=" + tpMessage.getTicketId());
53
+			}
54
+		});
49 55
 		Map<String,Object> map = new HashMap<>();
50 56
 		map.put("list",messageList);
51 57
 		map.put("total",page.getTotal());

+ 3
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpMessageMapper.xml Целия файл

@@ -25,6 +25,7 @@
25 25
     <result column="read_message_icon" property="readMessageIcon" jdbcType="VARCHAR" />
26 26
     <result column="unread_message_icon" property="unreadMessageIcon" jdbcType="VARCHAR" />
27 27
     <result column="message_detail_url" property="messageDetailUrl" jdbcType="VARCHAR" />
28
+    <result column="message_icon_title" property="messageIconTitle" jdbcType="VARCHAR" />
28 29
   </resultMap>
29 30
   <sql id="Base_Column_List" >
30 31
     id, ticket_id,community_id, message_type, advice_type, model_type, uuid, uuid_type, source,
@@ -288,7 +289,8 @@
288 289
         d.name as ticket_status,
289 290
         i.read_message_icon,
290 291
 		i.unread_message_icon,
291
-		i.message_detail_url
292
+		i.message_detail_url,
293
+		i.message_icon_title
292 294
     FROM
293 295
         tp_message t
294 296
     LEFT JOIN tp_ticket k on t.ticket_id = k.id  AND k.community_id = #{communityId,jdbcType=INTEGER}

+ 3
- 3
CODE/smart-community/zuul/src/main/resources/bootstrap.yml Целия файл

@@ -30,8 +30,8 @@ eureka:
30 30
 
31 31
 zuul:
32 32
   host:
33
-    connect-timeout-millis: 60000
34
-    socket-timeout-millis: 60000
33
+    connect-timeout-millis: 180000
34
+    socket-timeout-millis: 180000
35 35
 
36 36
 hystrix:
37 37
   command:
@@ -39,7 +39,7 @@ hystrix:
39 39
       execution:
40 40
         isolation:
41 41
           thread:
42
-            timeoutInMilliseconds: 60000
42
+            timeoutInMilliseconds: 180000
43 43
 
44 44
 
45 45
 ## Mybatis

+ 50
- 39
文档/MYSQL/smartCommunity.pdb Целия файл

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
-<?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1543392472" Name="smartCommunity" Objects="686" Symbols="79" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
2
+<?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1543480192" Name="smartCommunity" Objects="698" Symbols="79" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
3 3
 <!-- do not edit this file -->
4 4
 
5 5
 <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@@ -5945,9 +5945,9 @@ LABL 0 新宋体,8,N</a:FontList>
5945 5945
 </o:TableSymbol>
5946 5946
 <o:TableSymbol Id="o159">
5947 5947
 <a:CreationDate>1542706044</a:CreationDate>
5948
-<a:ModificationDate>1542791427</a:ModificationDate>
5948
+<a:ModificationDate>1543480192</a:ModificationDate>
5949 5949
 <a:IconMode>-1</a:IconMode>
5950
-<a:Rect>((-22201,-62967), (-5413,-56969))</a:Rect>
5950
+<a:Rect>((-22201,-63417), (-5413,-56519))</a:Rect>
5951 5951
 <a:LineColor>12615680</a:LineColor>
5952 5952
 <a:FillColor>16570034</a:FillColor>
5953 5953
 <a:ShadowColor>12632256</a:ShadowColor>
@@ -12175,7 +12175,7 @@ LABL 0 新宋体,8,N</a:FontList>
12175 12175
 <a:Code>tp_message_icon</a:Code>
12176 12176
 <a:CreationDate>1542706044</a:CreationDate>
12177 12177
 <a:Creator>szc</a:Creator>
12178
-<a:ModificationDate>1542768591</a:ModificationDate>
12178
+<a:ModificationDate>1543480192</a:ModificationDate>
12179 12179
 <a:Modifier>szc</a:Modifier>
12180 12180
 <a:Comment>消息图标表</a:Comment>
12181 12181
 <a:TotalSavingCurrency/>
@@ -12241,9 +12241,20 @@ LABL 0 新宋体,8,N</a:FontList>
12241 12241
 <a:DataType>varchar(255)</a:DataType>
12242 12242
 <a:Length>255</a:Length>
12243 12243
 </o:Column>
12244
+<o:Column Id="o613">
12245
+<a:ObjectID>F8DE996A-E9C4-44EA-8206-53522A2FCF05</a:ObjectID>
12246
+<a:Name>message_icon_title</a:Name>
12247
+<a:Code>message_icon_title</a:Code>
12248
+<a:CreationDate>1543480070</a:CreationDate>
12249
+<a:Creator>szc</a:Creator>
12250
+<a:ModificationDate>1543480192</a:ModificationDate>
12251
+<a:Modifier>szc</a:Modifier>
12252
+<a:DataType>varchar(255)</a:DataType>
12253
+<a:Length>255</a:Length>
12254
+</o:Column>
12244 12255
 </c:Columns>
12245 12256
 <c:Keys>
12246
-<o:Key Id="o613">
12257
+<o:Key Id="o614">
12247 12258
 <a:ObjectID>26A69CCB-020F-4EF0-9143-8764DED242E3</a:ObjectID>
12248 12259
 <a:Name>Key_1</a:Name>
12249 12260
 <a:Code>Key_1</a:Code>
@@ -12257,7 +12268,7 @@ LABL 0 新宋体,8,N</a:FontList>
12257 12268
 </o:Key>
12258 12269
 </c:Keys>
12259 12270
 <c:PrimaryKey>
12260
-<o:Key Ref="o613"/>
12271
+<o:Key Ref="o614"/>
12261 12272
 </c:PrimaryKey>
12262 12273
 </o:Table>
12263 12274
 <o:Table Id="o162">
@@ -12271,7 +12282,7 @@ LABL 0 新宋体,8,N</a:FontList>
12271 12282
 <a:Comment>消息订阅消息表</a:Comment>
12272 12283
 <a:TotalSavingCurrency/>
12273 12284
 <c:Columns>
12274
-<o:Column Id="o614">
12285
+<o:Column Id="o615">
12275 12286
 <a:ObjectID>4DD5CBA6-770E-473F-8934-5EDD96D121F6</a:ObjectID>
12276 12287
 <a:Name>id</a:Name>
12277 12288
 <a:Code>id</a:Code>
@@ -12284,7 +12295,7 @@ LABL 0 新宋体,8,N</a:FontList>
12284 12295
 <a:Identity>1</a:Identity>
12285 12296
 <a:Column.Mandatory>1</a:Column.Mandatory>
12286 12297
 </o:Column>
12287
-<o:Column Id="o615">
12298
+<o:Column Id="o616">
12288 12299
 <a:ObjectID>F0349ADD-66D0-430E-9B11-967D6DF4BC81</a:ObjectID>
12289 12300
 <a:Name>event_state</a:Name>
12290 12301
 <a:Code>event_state</a:Code>
@@ -12295,7 +12306,7 @@ LABL 0 新宋体,8,N</a:FontList>
12295 12306
 <a:DataType>int(1)</a:DataType>
12296 12307
 <a:Length>1</a:Length>
12297 12308
 </o:Column>
12298
-<o:Column Id="o616">
12309
+<o:Column Id="o617">
12299 12310
 <a:ObjectID>CBD7DBE3-3C04-499A-94AB-1C22E7AF0412</a:ObjectID>
12300 12311
 <a:Name>event_level</a:Name>
12301 12312
 <a:Code>event_level</a:Code>
@@ -12306,7 +12317,7 @@ LABL 0 新宋体,8,N</a:FontList>
12306 12317
 <a:DataType>int(1)</a:DataType>
12307 12318
 <a:Length>1</a:Length>
12308 12319
 </o:Column>
12309
-<o:Column Id="o617">
12320
+<o:Column Id="o618">
12310 12321
 <a:ObjectID>BAA092FC-2CAA-4436-A1A3-A8893186518D</a:ObjectID>
12311 12322
 <a:Name>unit_idx</a:Name>
12312 12323
 <a:Code>unit_idx</a:Code>
@@ -12317,7 +12328,7 @@ LABL 0 新宋体,8,N</a:FontList>
12317 12328
 <a:DataType>varchar(255)</a:DataType>
12318 12329
 <a:Length>255</a:Length>
12319 12330
 </o:Column>
12320
-<o:Column Id="o618">
12331
+<o:Column Id="o619">
12321 12332
 <a:ObjectID>742654AC-6855-4891-87C7-4F7335D8BA0C</a:ObjectID>
12322 12333
 <a:Name>event_type</a:Name>
12323 12334
 <a:Code>event_type</a:Code>
@@ -12328,7 +12339,7 @@ LABL 0 新宋体,8,N</a:FontList>
12328 12339
 <a:DataType>int(25)</a:DataType>
12329 12340
 <a:Length>25</a:Length>
12330 12341
 </o:Column>
12331
-<o:Column Id="o619">
12342
+<o:Column Id="o620">
12332 12343
 <a:ObjectID>11434250-0829-481C-ADDB-8789D8B5C945</a:ObjectID>
12333 12344
 <a:Name>event_type_name</a:Name>
12334 12345
 <a:Code>event_type_name</a:Code>
@@ -12339,7 +12350,7 @@ LABL 0 新宋体,8,N</a:FontList>
12339 12350
 <a:DataType>varchar(255)</a:DataType>
12340 12351
 <a:Length>255</a:Length>
12341 12352
 </o:Column>
12342
-<o:Column Id="o620">
12353
+<o:Column Id="o621">
12343 12354
 <a:ObjectID>915EB2CD-278E-4ACA-A7B7-32B7D61E580A</a:ObjectID>
12344 12355
 <a:Name>sub_sys_type</a:Name>
12345 12356
 <a:Code>sub_sys_type</a:Code>
@@ -12350,7 +12361,7 @@ LABL 0 新宋体,8,N</a:FontList>
12350 12361
 <a:DataType>int(50)</a:DataType>
12351 12362
 <a:Length>50</a:Length>
12352 12363
 </o:Column>
12353
-<o:Column Id="o621">
12364
+<o:Column Id="o622">
12354 12365
 <a:ObjectID>524D78DB-D5B6-4E21-9A78-65FC94CA9B71</a:ObjectID>
12355 12366
 <a:Name>event_name</a:Name>
12356 12367
 <a:Code>event_name</a:Code>
@@ -12361,7 +12372,7 @@ LABL 0 新宋体,8,N</a:FontList>
12361 12372
 <a:DataType>varchar(255)</a:DataType>
12362 12373
 <a:Length>255</a:Length>
12363 12374
 </o:Column>
12364
-<o:Column Id="o622">
12375
+<o:Column Id="o623">
12365 12376
 <a:ObjectID>F9586B5B-ACA5-4E20-B579-B82194825179</a:ObjectID>
12366 12377
 <a:Name>start_time</a:Name>
12367 12378
 <a:Code>start_time</a:Code>
@@ -12371,7 +12382,7 @@ LABL 0 新宋体,8,N</a:FontList>
12371 12382
 <a:Modifier>szc</a:Modifier>
12372 12383
 <a:DataType>datetime</a:DataType>
12373 12384
 </o:Column>
12374
-<o:Column Id="o623">
12385
+<o:Column Id="o624">
12375 12386
 <a:ObjectID>BE71711E-DB09-4B43-B3FA-73BB502535F0</a:ObjectID>
12376 12387
 <a:Name>stop_time</a:Name>
12377 12388
 <a:Code>stop_time</a:Code>
@@ -12381,7 +12392,7 @@ LABL 0 新宋体,8,N</a:FontList>
12381 12392
 <a:Modifier>szc</a:Modifier>
12382 12393
 <a:DataType>datetime</a:DataType>
12383 12394
 </o:Column>
12384
-<o:Column Id="o624">
12395
+<o:Column Id="o625">
12385 12396
 <a:ObjectID>9729C389-4C89-4E46-8E41-4EA84669E2B2</a:ObjectID>
12386 12397
 <a:Name>source_idx</a:Name>
12387 12398
 <a:Code>source_idx</a:Code>
@@ -12392,7 +12403,7 @@ LABL 0 新宋体,8,N</a:FontList>
12392 12403
 <a:DataType>varchar(255)</a:DataType>
12393 12404
 <a:Length>255</a:Length>
12394 12405
 </o:Column>
12395
-<o:Column Id="o625">
12406
+<o:Column Id="o626">
12396 12407
 <a:ObjectID>5DA158D3-6F7D-4D03-8D78-C3D556CB6AC5</a:ObjectID>
12397 12408
 <a:Name>source_type</a:Name>
12398 12409
 <a:Code>source_type</a:Code>
@@ -12403,7 +12414,7 @@ LABL 0 新宋体,8,N</a:FontList>
12403 12414
 <a:DataType>int(90)</a:DataType>
12404 12415
 <a:Length>90</a:Length>
12405 12416
 </o:Column>
12406
-<o:Column Id="o626">
12417
+<o:Column Id="o627">
12407 12418
 <a:ObjectID>3D617607-AAB2-4D24-8C28-578B3FBC4917</a:ObjectID>
12408 12419
 <a:Name>source_name</a:Name>
12409 12420
 <a:Code>source_name</a:Code>
@@ -12414,7 +12425,7 @@ LABL 0 新宋体,8,N</a:FontList>
12414 12425
 <a:DataType>varchar(255)</a:DataType>
12415 12426
 <a:Length>255</a:Length>
12416 12427
 </o:Column>
12417
-<o:Column Id="o627">
12428
+<o:Column Id="o628">
12418 12429
 <a:ObjectID>2FB9D075-CCF8-4343-A18C-D1B6D0B8BB01</a:ObjectID>
12419 12430
 <a:Name>region_idx</a:Name>
12420 12431
 <a:Code>region_idx</a:Code>
@@ -12425,7 +12436,7 @@ LABL 0 新宋体,8,N</a:FontList>
12425 12436
 <a:DataType>varchar(255)</a:DataType>
12426 12437
 <a:Length>255</a:Length>
12427 12438
 </o:Column>
12428
-<o:Column Id="o628">
12439
+<o:Column Id="o629">
12429 12440
 <a:ObjectID>4E2A38B4-023B-4E01-BA6A-4B84AF01B9FE</a:ObjectID>
12430 12441
 <a:Name>event_code</a:Name>
12431 12442
 <a:Code>event_code</a:Code>
@@ -12436,7 +12447,7 @@ LABL 0 新宋体,8,N</a:FontList>
12436 12447
 <a:DataType>int(90)</a:DataType>
12437 12448
 <a:Length>90</a:Length>
12438 12449
 </o:Column>
12439
-<o:Column Id="o629">
12450
+<o:Column Id="o630">
12440 12451
 <a:ObjectID>A7312C07-60F4-4674-83F6-090D266440BA</a:ObjectID>
12441 12452
 <a:Name>device_id</a:Name>
12442 12453
 <a:Code>device_id</a:Code>
@@ -12447,7 +12458,7 @@ LABL 0 新宋体,8,N</a:FontList>
12447 12458
 <a:DataType>int(90)</a:DataType>
12448 12459
 <a:Length>90</a:Length>
12449 12460
 </o:Column>
12450
-<o:Column Id="o630">
12461
+<o:Column Id="o631">
12451 12462
 <a:ObjectID>F5E5F8C9-7034-420B-8B3E-1A301730D33C</a:ObjectID>
12452 12463
 <a:Name>device_type</a:Name>
12453 12464
 <a:Code>device_type</a:Code>
@@ -12458,7 +12469,7 @@ LABL 0 新宋体,8,N</a:FontList>
12458 12469
 <a:DataType>int(90)</a:DataType>
12459 12470
 <a:Length>90</a:Length>
12460 12471
 </o:Column>
12461
-<o:Column Id="o631">
12472
+<o:Column Id="o632">
12462 12473
 <a:ObjectID>062C16C4-1155-4D16-913D-66F096B57D1A</a:ObjectID>
12463 12474
 <a:Name>device_name</a:Name>
12464 12475
 <a:Code>device_name</a:Code>
@@ -12469,7 +12480,7 @@ LABL 0 新宋体,8,N</a:FontList>
12469 12480
 <a:DataType>varchar(255)</a:DataType>
12470 12481
 <a:Length>255</a:Length>
12471 12482
 </o:Column>
12472
-<o:Column Id="o632">
12483
+<o:Column Id="o633">
12473 12484
 <a:ObjectID>BBD618AF-FDB0-417A-A778-3A0B8997050E</a:ObjectID>
12474 12485
 <a:Name>event_card</a:Name>
12475 12486
 <a:Code>event_card</a:Code>
@@ -12480,7 +12491,7 @@ LABL 0 新宋体,8,N</a:FontList>
12480 12491
 <a:DataType>varchar(255)</a:DataType>
12481 12492
 <a:Length>255</a:Length>
12482 12493
 </o:Column>
12483
-<o:Column Id="o633">
12494
+<o:Column Id="o634">
12484 12495
 <a:ObjectID>34808DF1-4711-4258-81A4-B6DB181DD52D</a:ObjectID>
12485 12496
 <a:Name>person_id</a:Name>
12486 12497
 <a:Code>person_id</a:Code>
@@ -12491,7 +12502,7 @@ LABL 0 新宋体,8,N</a:FontList>
12491 12502
 <a:DataType>int(90)</a:DataType>
12492 12503
 <a:Length>90</a:Length>
12493 12504
 </o:Column>
12494
-<o:Column Id="o634">
12505
+<o:Column Id="o635">
12495 12506
 <a:ObjectID>32CEE916-F12F-45AF-BC83-1D42B8B8BD20</a:ObjectID>
12496 12507
 <a:Name>person_name</a:Name>
12497 12508
 <a:Code>person_name</a:Code>
@@ -12502,7 +12513,7 @@ LABL 0 新宋体,8,N</a:FontList>
12502 12513
 <a:DataType>varchar(255)</a:DataType>
12503 12514
 <a:Length>255</a:Length>
12504 12515
 </o:Column>
12505
-<o:Column Id="o635">
12516
+<o:Column Id="o636">
12506 12517
 <a:ObjectID>27739F03-7477-4759-A70A-E1BF5D1ACF77</a:ObjectID>
12507 12518
 <a:Name>dept_id</a:Name>
12508 12519
 <a:Code>dept_id</a:Code>
@@ -12513,7 +12524,7 @@ LABL 0 新宋体,8,N</a:FontList>
12513 12524
 <a:DataType>int(90)</a:DataType>
12514 12525
 <a:Length>90</a:Length>
12515 12526
 </o:Column>
12516
-<o:Column Id="o636">
12527
+<o:Column Id="o637">
12517 12528
 <a:ObjectID>5F000DC1-611B-492E-B9D8-589F39BFA951</a:ObjectID>
12518 12529
 <a:Name>dept_name</a:Name>
12519 12530
 <a:Code>dept_name</a:Code>
@@ -12524,7 +12535,7 @@ LABL 0 新宋体,8,N</a:FontList>
12524 12535
 <a:DataType>varchar(255)</a:DataType>
12525 12536
 <a:Length>255</a:Length>
12526 12537
 </o:Column>
12527
-<o:Column Id="o637">
12538
+<o:Column Id="o638">
12528 12539
 <a:ObjectID>D7E8BB80-0895-4A12-9F55-7E9FE12C83D2</a:ObjectID>
12529 12540
 <a:Name>dept_code</a:Name>
12530 12541
 <a:Code>dept_code</a:Code>
@@ -12535,7 +12546,7 @@ LABL 0 新宋体,8,N</a:FontList>
12535 12546
 <a:DataType>varchar(255)</a:DataType>
12536 12547
 <a:Length>255</a:Length>
12537 12548
 </o:Column>
12538
-<o:Column Id="o638">
12549
+<o:Column Id="o639">
12539 12550
 <a:ObjectID>02FC83B5-57D3-40CF-A434-0B2B6A66EE2F</a:ObjectID>
12540 12551
 <a:Name>in_out</a:Name>
12541 12552
 <a:Code>in_out</a:Code>
@@ -12546,7 +12557,7 @@ LABL 0 新宋体,8,N</a:FontList>
12546 12557
 <a:DataType>int(10)</a:DataType>
12547 12558
 <a:Length>10</a:Length>
12548 12559
 </o:Column>
12549
-<o:Column Id="o639">
12560
+<o:Column Id="o640">
12550 12561
 <a:ObjectID>EDF7E2FE-E5B8-4EB2-8622-37D735B11AC3</a:ObjectID>
12551 12562
 <a:Name>ext_txt</a:Name>
12552 12563
 <a:Code>ext_txt</a:Code>
@@ -12556,7 +12567,7 @@ LABL 0 新宋体,8,N</a:FontList>
12556 12567
 <a:Modifier>szc</a:Modifier>
12557 12568
 <a:DataType>text</a:DataType>
12558 12569
 </o:Column>
12559
-<o:Column Id="o640">
12570
+<o:Column Id="o641">
12560 12571
 <a:ObjectID>2D0F6C5E-E444-4A9D-A180-9E6849EAA091</a:ObjectID>
12561 12572
 <a:Name>card_status</a:Name>
12562 12573
 <a:Code>card_status</a:Code>
@@ -12567,7 +12578,7 @@ LABL 0 新宋体,8,N</a:FontList>
12567 12578
 <a:DataType>int(10)</a:DataType>
12568 12579
 <a:Length>10</a:Length>
12569 12580
 </o:Column>
12570
-<o:Column Id="o641">
12581
+<o:Column Id="o642">
12571 12582
 <a:ObjectID>85DCD41F-8F80-4AFB-9629-3A14080EFB37</a:ObjectID>
12572 12583
 <a:Name>pic_url</a:Name>
12573 12584
 <a:Code>pic_url</a:Code>
@@ -12580,7 +12591,7 @@ LABL 0 新宋体,8,N</a:FontList>
12580 12591
 </o:Column>
12581 12592
 </c:Columns>
12582 12593
 <c:Keys>
12583
-<o:Key Id="o642">
12594
+<o:Key Id="o643">
12584 12595
 <a:ObjectID>471D6AE4-41F1-4EBB-B439-16ED2470870B</a:ObjectID>
12585 12596
 <a:Name>Key_1</a:Name>
12586 12597
 <a:Code>Key_1</a:Code>
@@ -12589,17 +12600,17 @@ LABL 0 新宋体,8,N</a:FontList>
12589 12600
 <a:ModificationDate>1542952415</a:ModificationDate>
12590 12601
 <a:Modifier>szc</a:Modifier>
12591 12602
 <c:Key.Columns>
12592
-<o:Column Ref="o614"/>
12603
+<o:Column Ref="o615"/>
12593 12604
 </c:Key.Columns>
12594 12605
 </o:Key>
12595 12606
 </c:Keys>
12596 12607
 <c:PrimaryKey>
12597
-<o:Key Ref="o642"/>
12608
+<o:Key Ref="o643"/>
12598 12609
 </c:PrimaryKey>
12599 12610
 </o:Table>
12600 12611
 </c:Tables>
12601 12612
 <c:DefaultGroups>
12602
-<o:Group Id="o643">
12613
+<o:Group Id="o644">
12603 12614
 <a:ObjectID>9FAF56B5-A351-488F-9A3B-D4A944CD4081</a:ObjectID>
12604 12615
 <a:Name>PUBLIC</a:Name>
12605 12616
 <a:Code>PUBLIC</a:Code>
@@ -13041,7 +13052,7 @@ LABL 0 新宋体,8,N</a:FontList>
13041 13052
 </o:ExtendedDependency>
13042 13053
 </c:ChildTraceabilityLinks>
13043 13054
 <c:TargetModels>
13044
-<o:TargetModel Id="o644">
13055
+<o:TargetModel Id="o645">
13045 13056
 <a:ObjectID>B86EB932-C352-4174-86E4-2D2B1DDE4A45</a:ObjectID>
13046 13057
 <a:Name>MySQL 5.0</a:Name>
13047 13058
 <a:Code>MYSQL50</a:Code>

+ 50
- 39
文档/MYSQL/smartCommunity.pdm Целия файл

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
-<?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1543392472" Name="smartCommunity" Objects="686" Symbols="79" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
2
+<?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1543480192" Name="smartCommunity" Objects="698" Symbols="79" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
3 3
 <!-- do not edit this file -->
4 4
 
5 5
 <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@@ -5945,9 +5945,9 @@ LABL 0 新宋体,8,N</a:FontList>
5945 5945
 </o:TableSymbol>
5946 5946
 <o:TableSymbol Id="o159">
5947 5947
 <a:CreationDate>1542706044</a:CreationDate>
5948
-<a:ModificationDate>1542791427</a:ModificationDate>
5948
+<a:ModificationDate>1543480192</a:ModificationDate>
5949 5949
 <a:IconMode>-1</a:IconMode>
5950
-<a:Rect>((-22201,-62967), (-5413,-56969))</a:Rect>
5950
+<a:Rect>((-22201,-63417), (-5413,-56519))</a:Rect>
5951 5951
 <a:LineColor>12615680</a:LineColor>
5952 5952
 <a:FillColor>16570034</a:FillColor>
5953 5953
 <a:ShadowColor>12632256</a:ShadowColor>
@@ -12175,7 +12175,7 @@ LABL 0 新宋体,8,N</a:FontList>
12175 12175
 <a:Code>tp_message_icon</a:Code>
12176 12176
 <a:CreationDate>1542706044</a:CreationDate>
12177 12177
 <a:Creator>szc</a:Creator>
12178
-<a:ModificationDate>1542768591</a:ModificationDate>
12178
+<a:ModificationDate>1543480192</a:ModificationDate>
12179 12179
 <a:Modifier>szc</a:Modifier>
12180 12180
 <a:Comment>消息图标表</a:Comment>
12181 12181
 <a:TotalSavingCurrency/>
@@ -12241,9 +12241,20 @@ LABL 0 新宋体,8,N</a:FontList>
12241 12241
 <a:DataType>varchar(255)</a:DataType>
12242 12242
 <a:Length>255</a:Length>
12243 12243
 </o:Column>
12244
+<o:Column Id="o613">
12245
+<a:ObjectID>F8DE996A-E9C4-44EA-8206-53522A2FCF05</a:ObjectID>
12246
+<a:Name>message_icon_title</a:Name>
12247
+<a:Code>message_icon_title</a:Code>
12248
+<a:CreationDate>1543480070</a:CreationDate>
12249
+<a:Creator>szc</a:Creator>
12250
+<a:ModificationDate>1543480192</a:ModificationDate>
12251
+<a:Modifier>szc</a:Modifier>
12252
+<a:DataType>varchar(255)</a:DataType>
12253
+<a:Length>255</a:Length>
12254
+</o:Column>
12244 12255
 </c:Columns>
12245 12256
 <c:Keys>
12246
-<o:Key Id="o613">
12257
+<o:Key Id="o614">
12247 12258
 <a:ObjectID>26A69CCB-020F-4EF0-9143-8764DED242E3</a:ObjectID>
12248 12259
 <a:Name>Key_1</a:Name>
12249 12260
 <a:Code>Key_1</a:Code>
@@ -12257,7 +12268,7 @@ LABL 0 新宋体,8,N</a:FontList>
12257 12268
 </o:Key>
12258 12269
 </c:Keys>
12259 12270
 <c:PrimaryKey>
12260
-<o:Key Ref="o613"/>
12271
+<o:Key Ref="o614"/>
12261 12272
 </c:PrimaryKey>
12262 12273
 </o:Table>
12263 12274
 <o:Table Id="o162">
@@ -12271,7 +12282,7 @@ LABL 0 新宋体,8,N</a:FontList>
12271 12282
 <a:Comment>消息订阅消息表</a:Comment>
12272 12283
 <a:TotalSavingCurrency/>
12273 12284
 <c:Columns>
12274
-<o:Column Id="o614">
12285
+<o:Column Id="o615">
12275 12286
 <a:ObjectID>4DD5CBA6-770E-473F-8934-5EDD96D121F6</a:ObjectID>
12276 12287
 <a:Name>id</a:Name>
12277 12288
 <a:Code>id</a:Code>
@@ -12284,7 +12295,7 @@ LABL 0 新宋体,8,N</a:FontList>
12284 12295
 <a:Identity>1</a:Identity>
12285 12296
 <a:Column.Mandatory>1</a:Column.Mandatory>
12286 12297
 </o:Column>
12287
-<o:Column Id="o615">
12298
+<o:Column Id="o616">
12288 12299
 <a:ObjectID>F0349ADD-66D0-430E-9B11-967D6DF4BC81</a:ObjectID>
12289 12300
 <a:Name>event_state</a:Name>
12290 12301
 <a:Code>event_state</a:Code>
@@ -12295,7 +12306,7 @@ LABL 0 新宋体,8,N</a:FontList>
12295 12306
 <a:DataType>int(1)</a:DataType>
12296 12307
 <a:Length>1</a:Length>
12297 12308
 </o:Column>
12298
-<o:Column Id="o616">
12309
+<o:Column Id="o617">
12299 12310
 <a:ObjectID>CBD7DBE3-3C04-499A-94AB-1C22E7AF0412</a:ObjectID>
12300 12311
 <a:Name>event_level</a:Name>
12301 12312
 <a:Code>event_level</a:Code>
@@ -12306,7 +12317,7 @@ LABL 0 新宋体,8,N</a:FontList>
12306 12317
 <a:DataType>int(1)</a:DataType>
12307 12318
 <a:Length>1</a:Length>
12308 12319
 </o:Column>
12309
-<o:Column Id="o617">
12320
+<o:Column Id="o618">
12310 12321
 <a:ObjectID>BAA092FC-2CAA-4436-A1A3-A8893186518D</a:ObjectID>
12311 12322
 <a:Name>unit_idx</a:Name>
12312 12323
 <a:Code>unit_idx</a:Code>
@@ -12317,7 +12328,7 @@ LABL 0 新宋体,8,N</a:FontList>
12317 12328
 <a:DataType>varchar(255)</a:DataType>
12318 12329
 <a:Length>255</a:Length>
12319 12330
 </o:Column>
12320
-<o:Column Id="o618">
12331
+<o:Column Id="o619">
12321 12332
 <a:ObjectID>742654AC-6855-4891-87C7-4F7335D8BA0C</a:ObjectID>
12322 12333
 <a:Name>event_type</a:Name>
12323 12334
 <a:Code>event_type</a:Code>
@@ -12328,7 +12339,7 @@ LABL 0 新宋体,8,N</a:FontList>
12328 12339
 <a:DataType>int(25)</a:DataType>
12329 12340
 <a:Length>25</a:Length>
12330 12341
 </o:Column>
12331
-<o:Column Id="o619">
12342
+<o:Column Id="o620">
12332 12343
 <a:ObjectID>11434250-0829-481C-ADDB-8789D8B5C945</a:ObjectID>
12333 12344
 <a:Name>event_type_name</a:Name>
12334 12345
 <a:Code>event_type_name</a:Code>
@@ -12339,7 +12350,7 @@ LABL 0 新宋体,8,N</a:FontList>
12339 12350
 <a:DataType>varchar(255)</a:DataType>
12340 12351
 <a:Length>255</a:Length>
12341 12352
 </o:Column>
12342
-<o:Column Id="o620">
12353
+<o:Column Id="o621">
12343 12354
 <a:ObjectID>915EB2CD-278E-4ACA-A7B7-32B7D61E580A</a:ObjectID>
12344 12355
 <a:Name>sub_sys_type</a:Name>
12345 12356
 <a:Code>sub_sys_type</a:Code>
@@ -12350,7 +12361,7 @@ LABL 0 新宋体,8,N</a:FontList>
12350 12361
 <a:DataType>int(50)</a:DataType>
12351 12362
 <a:Length>50</a:Length>
12352 12363
 </o:Column>
12353
-<o:Column Id="o621">
12364
+<o:Column Id="o622">
12354 12365
 <a:ObjectID>524D78DB-D5B6-4E21-9A78-65FC94CA9B71</a:ObjectID>
12355 12366
 <a:Name>event_name</a:Name>
12356 12367
 <a:Code>event_name</a:Code>
@@ -12361,7 +12372,7 @@ LABL 0 新宋体,8,N</a:FontList>
12361 12372
 <a:DataType>varchar(255)</a:DataType>
12362 12373
 <a:Length>255</a:Length>
12363 12374
 </o:Column>
12364
-<o:Column Id="o622">
12375
+<o:Column Id="o623">
12365 12376
 <a:ObjectID>F9586B5B-ACA5-4E20-B579-B82194825179</a:ObjectID>
12366 12377
 <a:Name>start_time</a:Name>
12367 12378
 <a:Code>start_time</a:Code>
@@ -12371,7 +12382,7 @@ LABL 0 新宋体,8,N</a:FontList>
12371 12382
 <a:Modifier>szc</a:Modifier>
12372 12383
 <a:DataType>datetime</a:DataType>
12373 12384
 </o:Column>
12374
-<o:Column Id="o623">
12385
+<o:Column Id="o624">
12375 12386
 <a:ObjectID>BE71711E-DB09-4B43-B3FA-73BB502535F0</a:ObjectID>
12376 12387
 <a:Name>stop_time</a:Name>
12377 12388
 <a:Code>stop_time</a:Code>
@@ -12381,7 +12392,7 @@ LABL 0 新宋体,8,N</a:FontList>
12381 12392
 <a:Modifier>szc</a:Modifier>
12382 12393
 <a:DataType>datetime</a:DataType>
12383 12394
 </o:Column>
12384
-<o:Column Id="o624">
12395
+<o:Column Id="o625">
12385 12396
 <a:ObjectID>9729C389-4C89-4E46-8E41-4EA84669E2B2</a:ObjectID>
12386 12397
 <a:Name>source_idx</a:Name>
12387 12398
 <a:Code>source_idx</a:Code>
@@ -12392,7 +12403,7 @@ LABL 0 新宋体,8,N</a:FontList>
12392 12403
 <a:DataType>varchar(255)</a:DataType>
12393 12404
 <a:Length>255</a:Length>
12394 12405
 </o:Column>
12395
-<o:Column Id="o625">
12406
+<o:Column Id="o626">
12396 12407
 <a:ObjectID>5DA158D3-6F7D-4D03-8D78-C3D556CB6AC5</a:ObjectID>
12397 12408
 <a:Name>source_type</a:Name>
12398 12409
 <a:Code>source_type</a:Code>
@@ -12403,7 +12414,7 @@ LABL 0 新宋体,8,N</a:FontList>
12403 12414
 <a:DataType>int(90)</a:DataType>
12404 12415
 <a:Length>90</a:Length>
12405 12416
 </o:Column>
12406
-<o:Column Id="o626">
12417
+<o:Column Id="o627">
12407 12418
 <a:ObjectID>3D617607-AAB2-4D24-8C28-578B3FBC4917</a:ObjectID>
12408 12419
 <a:Name>source_name</a:Name>
12409 12420
 <a:Code>source_name</a:Code>
@@ -12414,7 +12425,7 @@ LABL 0 新宋体,8,N</a:FontList>
12414 12425
 <a:DataType>varchar(255)</a:DataType>
12415 12426
 <a:Length>255</a:Length>
12416 12427
 </o:Column>
12417
-<o:Column Id="o627">
12428
+<o:Column Id="o628">
12418 12429
 <a:ObjectID>2FB9D075-CCF8-4343-A18C-D1B6D0B8BB01</a:ObjectID>
12419 12430
 <a:Name>region_idx</a:Name>
12420 12431
 <a:Code>region_idx</a:Code>
@@ -12425,7 +12436,7 @@ LABL 0 新宋体,8,N</a:FontList>
12425 12436
 <a:DataType>varchar(255)</a:DataType>
12426 12437
 <a:Length>255</a:Length>
12427 12438
 </o:Column>
12428
-<o:Column Id="o628">
12439
+<o:Column Id="o629">
12429 12440
 <a:ObjectID>4E2A38B4-023B-4E01-BA6A-4B84AF01B9FE</a:ObjectID>
12430 12441
 <a:Name>event_code</a:Name>
12431 12442
 <a:Code>event_code</a:Code>
@@ -12436,7 +12447,7 @@ LABL 0 新宋体,8,N</a:FontList>
12436 12447
 <a:DataType>int(90)</a:DataType>
12437 12448
 <a:Length>90</a:Length>
12438 12449
 </o:Column>
12439
-<o:Column Id="o629">
12450
+<o:Column Id="o630">
12440 12451
 <a:ObjectID>A7312C07-60F4-4674-83F6-090D266440BA</a:ObjectID>
12441 12452
 <a:Name>device_id</a:Name>
12442 12453
 <a:Code>device_id</a:Code>
@@ -12447,7 +12458,7 @@ LABL 0 新宋体,8,N</a:FontList>
12447 12458
 <a:DataType>int(90)</a:DataType>
12448 12459
 <a:Length>90</a:Length>
12449 12460
 </o:Column>
12450
-<o:Column Id="o630">
12461
+<o:Column Id="o631">
12451 12462
 <a:ObjectID>F5E5F8C9-7034-420B-8B3E-1A301730D33C</a:ObjectID>
12452 12463
 <a:Name>device_type</a:Name>
12453 12464
 <a:Code>device_type</a:Code>
@@ -12458,7 +12469,7 @@ LABL 0 新宋体,8,N</a:FontList>
12458 12469
 <a:DataType>int(90)</a:DataType>
12459 12470
 <a:Length>90</a:Length>
12460 12471
 </o:Column>
12461
-<o:Column Id="o631">
12472
+<o:Column Id="o632">
12462 12473
 <a:ObjectID>062C16C4-1155-4D16-913D-66F096B57D1A</a:ObjectID>
12463 12474
 <a:Name>device_name</a:Name>
12464 12475
 <a:Code>device_name</a:Code>
@@ -12469,7 +12480,7 @@ LABL 0 新宋体,8,N</a:FontList>
12469 12480
 <a:DataType>varchar(255)</a:DataType>
12470 12481
 <a:Length>255</a:Length>
12471 12482
 </o:Column>
12472
-<o:Column Id="o632">
12483
+<o:Column Id="o633">
12473 12484
 <a:ObjectID>BBD618AF-FDB0-417A-A778-3A0B8997050E</a:ObjectID>
12474 12485
 <a:Name>event_card</a:Name>
12475 12486
 <a:Code>event_card</a:Code>
@@ -12480,7 +12491,7 @@ LABL 0 新宋体,8,N</a:FontList>
12480 12491
 <a:DataType>varchar(255)</a:DataType>
12481 12492
 <a:Length>255</a:Length>
12482 12493
 </o:Column>
12483
-<o:Column Id="o633">
12494
+<o:Column Id="o634">
12484 12495
 <a:ObjectID>34808DF1-4711-4258-81A4-B6DB181DD52D</a:ObjectID>
12485 12496
 <a:Name>person_id</a:Name>
12486 12497
 <a:Code>person_id</a:Code>
@@ -12491,7 +12502,7 @@ LABL 0 新宋体,8,N</a:FontList>
12491 12502
 <a:DataType>int(90)</a:DataType>
12492 12503
 <a:Length>90</a:Length>
12493 12504
 </o:Column>
12494
-<o:Column Id="o634">
12505
+<o:Column Id="o635">
12495 12506
 <a:ObjectID>32CEE916-F12F-45AF-BC83-1D42B8B8BD20</a:ObjectID>
12496 12507
 <a:Name>person_name</a:Name>
12497 12508
 <a:Code>person_name</a:Code>
@@ -12502,7 +12513,7 @@ LABL 0 新宋体,8,N</a:FontList>
12502 12513
 <a:DataType>varchar(255)</a:DataType>
12503 12514
 <a:Length>255</a:Length>
12504 12515
 </o:Column>
12505
-<o:Column Id="o635">
12516
+<o:Column Id="o636">
12506 12517
 <a:ObjectID>27739F03-7477-4759-A70A-E1BF5D1ACF77</a:ObjectID>
12507 12518
 <a:Name>dept_id</a:Name>
12508 12519
 <a:Code>dept_id</a:Code>
@@ -12513,7 +12524,7 @@ LABL 0 新宋体,8,N</a:FontList>
12513 12524
 <a:DataType>int(90)</a:DataType>
12514 12525
 <a:Length>90</a:Length>
12515 12526
 </o:Column>
12516
-<o:Column Id="o636">
12527
+<o:Column Id="o637">
12517 12528
 <a:ObjectID>5F000DC1-611B-492E-B9D8-589F39BFA951</a:ObjectID>
12518 12529
 <a:Name>dept_name</a:Name>
12519 12530
 <a:Code>dept_name</a:Code>
@@ -12524,7 +12535,7 @@ LABL 0 新宋体,8,N</a:FontList>
12524 12535
 <a:DataType>varchar(255)</a:DataType>
12525 12536
 <a:Length>255</a:Length>
12526 12537
 </o:Column>
12527
-<o:Column Id="o637">
12538
+<o:Column Id="o638">
12528 12539
 <a:ObjectID>D7E8BB80-0895-4A12-9F55-7E9FE12C83D2</a:ObjectID>
12529 12540
 <a:Name>dept_code</a:Name>
12530 12541
 <a:Code>dept_code</a:Code>
@@ -12535,7 +12546,7 @@ LABL 0 新宋体,8,N</a:FontList>
12535 12546
 <a:DataType>varchar(255)</a:DataType>
12536 12547
 <a:Length>255</a:Length>
12537 12548
 </o:Column>
12538
-<o:Column Id="o638">
12549
+<o:Column Id="o639">
12539 12550
 <a:ObjectID>02FC83B5-57D3-40CF-A434-0B2B6A66EE2F</a:ObjectID>
12540 12551
 <a:Name>in_out</a:Name>
12541 12552
 <a:Code>in_out</a:Code>
@@ -12546,7 +12557,7 @@ LABL 0 新宋体,8,N</a:FontList>
12546 12557
 <a:DataType>int(10)</a:DataType>
12547 12558
 <a:Length>10</a:Length>
12548 12559
 </o:Column>
12549
-<o:Column Id="o639">
12560
+<o:Column Id="o640">
12550 12561
 <a:ObjectID>EDF7E2FE-E5B8-4EB2-8622-37D735B11AC3</a:ObjectID>
12551 12562
 <a:Name>ext_txt</a:Name>
12552 12563
 <a:Code>ext_txt</a:Code>
@@ -12556,7 +12567,7 @@ LABL 0 新宋体,8,N</a:FontList>
12556 12567
 <a:Modifier>szc</a:Modifier>
12557 12568
 <a:DataType>text</a:DataType>
12558 12569
 </o:Column>
12559
-<o:Column Id="o640">
12570
+<o:Column Id="o641">
12560 12571
 <a:ObjectID>2D0F6C5E-E444-4A9D-A180-9E6849EAA091</a:ObjectID>
12561 12572
 <a:Name>card_status</a:Name>
12562 12573
 <a:Code>card_status</a:Code>
@@ -12567,7 +12578,7 @@ LABL 0 新宋体,8,N</a:FontList>
12567 12578
 <a:DataType>int(10)</a:DataType>
12568 12579
 <a:Length>10</a:Length>
12569 12580
 </o:Column>
12570
-<o:Column Id="o641">
12581
+<o:Column Id="o642">
12571 12582
 <a:ObjectID>85DCD41F-8F80-4AFB-9629-3A14080EFB37</a:ObjectID>
12572 12583
 <a:Name>pic_url</a:Name>
12573 12584
 <a:Code>pic_url</a:Code>
@@ -12580,7 +12591,7 @@ LABL 0 新宋体,8,N</a:FontList>
12580 12591
 </o:Column>
12581 12592
 </c:Columns>
12582 12593
 <c:Keys>
12583
-<o:Key Id="o642">
12594
+<o:Key Id="o643">
12584 12595
 <a:ObjectID>471D6AE4-41F1-4EBB-B439-16ED2470870B</a:ObjectID>
12585 12596
 <a:Name>Key_1</a:Name>
12586 12597
 <a:Code>Key_1</a:Code>
@@ -12589,17 +12600,17 @@ LABL 0 新宋体,8,N</a:FontList>
12589 12600
 <a:ModificationDate>1542952415</a:ModificationDate>
12590 12601
 <a:Modifier>szc</a:Modifier>
12591 12602
 <c:Key.Columns>
12592
-<o:Column Ref="o614"/>
12603
+<o:Column Ref="o615"/>
12593 12604
 </c:Key.Columns>
12594 12605
 </o:Key>
12595 12606
 </c:Keys>
12596 12607
 <c:PrimaryKey>
12597
-<o:Key Ref="o642"/>
12608
+<o:Key Ref="o643"/>
12598 12609
 </c:PrimaryKey>
12599 12610
 </o:Table>
12600 12611
 </c:Tables>
12601 12612
 <c:DefaultGroups>
12602
-<o:Group Id="o643">
12613
+<o:Group Id="o644">
12603 12614
 <a:ObjectID>9FAF56B5-A351-488F-9A3B-D4A944CD4081</a:ObjectID>
12604 12615
 <a:Name>PUBLIC</a:Name>
12605 12616
 <a:Code>PUBLIC</a:Code>
@@ -13041,7 +13052,7 @@ LABL 0 新宋体,8,N</a:FontList>
13041 13052
 </o:ExtendedDependency>
13042 13053
 </c:ChildTraceabilityLinks>
13043 13054
 <c:TargetModels>
13044
-<o:TargetModel Id="o644">
13055
+<o:TargetModel Id="o645">
13045 13056
 <a:ObjectID>B86EB932-C352-4174-86E4-2D2B1DDE4A45</a:ObjectID>
13046 13057
 <a:Name>MySQL 5.0</a:Name>
13047 13058
 <a:Code>MYSQL50</a:Code>