张延森 3 年前
父节点
当前提交
4d0ab2f18a
共有 2 个文件被更改,包括 595 次插入9 次删除
  1. 75
    0
      functions.sql
  2. 520
    9
      ubpa.pdma.json

+ 75
- 0
functions.sql 查看文件

@@ -0,0 +1,75 @@
1
+CREATE PROCEDURE `pro_resume_work_daily`(IN `lstr_day` varchar(32))
2
+BEGIN
3
+
4
+	-- 先删除旧的
5
+	DELETE t FROM ts_resume_work_form t WHERE t.`name` = lstr_day;
6
+	
7
+	-- 再新增新的
8
+	-- 1, 统计总的, 按机构分组
9
+	INSERT INTO ts_resume_work_form (statis_id, org_id, st_type, `name`, `value`)
10
+	SELECT UUID_SHORT(), t.org_id, 'total', lstr_day, count( 1 ) 
11
+	FROM
12
+		ta_resume_work_form t 
13
+	WHERE DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = lstr_day  -- lstr_day 格式 YYYY-MM-DD
14
+		AND t.`status` > - 1
15
+		GROUP BY t.org_id;
16
+		
17
+	-- 不分组
18
+	INSERT INTO ts_resume_work_form (statis_id, org_id, st_type, `name`, `value`)
19
+	SELECT UUID_SHORT(), null, 'total', lstr_day, count( 1 ) 
20
+	FROM
21
+		ta_resume_work_form t 
22
+	WHERE DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = lstr_day  -- lstr_day 格式 YYYY-MM-DD
23
+		AND t.`status` > - 1;
24
+		
25
+	-- 2, 统计正常的,按机构分组
26
+	INSERT INTO ts_resume_work_form (statis_id, org_id, st_type, `name`, `value`)
27
+	SELECT UUID_SHORT(), t.org_id, 'normal', lstr_day, count( 1 ) 
28
+	FROM
29
+		ta_resume_work_form t 
30
+	WHERE
31
+		( t.nucleic_is_normal is NULL OR t.nucleic_is_normal = 1 )
32
+		AND ( t.antigen_is_normal is NULL OR t.antigen_is_normal = 1 )
33
+		AND DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = lstr_day  -- lstr_day 格式 YYYY-MM-DD
34
+		AND t.`status` > - 1
35
+		GROUP BY t.org_id;
36
+
37
+-- 不分组
38
+	INSERT INTO ts_resume_work_form (statis_id, org_id, st_type, `name`, `value`)
39
+	SELECT UUID_SHORT(), null, 'normal', lstr_day, count( 1 ) 
40
+	FROM
41
+		ta_resume_work_form t 
42
+	WHERE
43
+		( t.nucleic_is_normal is NULL OR t.nucleic_is_normal = 1 )
44
+		AND ( t.antigen_is_normal is NULL OR t.antigen_is_normal = 1 )
45
+		AND DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = lstr_day  -- lstr_day 格式 YYYY-MM-DD
46
+		AND t.`status` > - 1;
47
+		
48
+	-- 3, 统计异常, 按机构分组
49
+	INSERT INTO ts_resume_work_form (statis_id, org_id, st_type, `name`, `value`)
50
+	SELECT UUID_SHORT(), t.org_id, 'abnormal', lstr_day, count( 1 ) 
51
+	FROM
52
+		ta_resume_work_form t 
53
+	WHERE
54
+		( t.nucleic_is_normal = 0 OR t.antigen_is_normal = 0 )
55
+		AND DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = lstr_day  -- lstr_day 格式 YYYY-MM-DD
56
+		AND t.`status` > - 1
57
+		GROUP BY t.org_id;
58
+		
59
+	-- 不分组
60
+	INSERT INTO ts_resume_work_form (statis_id, org_id, st_type, `name`, `value`)
61
+	SELECT UUID_SHORT(), null, 'abnormal', lstr_day, count( 1 ) 
62
+	FROM
63
+		ta_resume_work_form t 
64
+	WHERE
65
+		( t.nucleic_is_normal = 0 OR t.antigen_is_normal = 0 )
66
+		AND DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = lstr_day  -- lstr_day 格式 YYYY-MM-DD
67
+		AND t.`status` > - 1;
68
+
69
+END;;
70
+
71
+
72
+CREATE EVENT `job_resume_work_daily`
73
+ON SCHEDULE
74
+EVERY '1' DAY STARTS '2022-05-16 01:00:00'
75
+DO call pro_resume_work_daily(DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 DAY), '%Y-%m-%d'));;

+ 520
- 9
ubpa.pdma.json 查看文件

@@ -4,7 +4,7 @@
4 4
   "avatar": "",
5 5
   "version": "4.0.0",
6 6
   "createdTime": "2022-4-30 21:08:08",
7
-  "updatedTime": "2022-4-30 22:36:04",
7
+  "updatedTime": "2022-5-16 19:01:27",
8 8
   "dbConns": [],
9 9
   "profile": {
10 10
     "default": {
@@ -613,7 +613,7 @@
613 613
           "codeRoot": ""
614 614
         }
615 615
       },
616
-      "defKey": "sys_org",
616
+      "defKey": "ta_org",
617 617
       "defName": "企业表",
618 618
       "comment": "",
619 619
       "properties": {
@@ -751,6 +751,22 @@
751 751
           "domain": "F56868D6-C821-4317-AB5A-BC9AF64495B7",
752 752
           "id": "D5D544CB-73C7-4EE9-8527-703FE54391DC"
753 753
         },
754
+        {
755
+          "defKey": "create_org",
756
+          "defName": "物业ID",
757
+          "comment": "",
758
+          "type": "",
759
+          "len": "",
760
+          "scale": "",
761
+          "primaryKey": false,
762
+          "notNull": false,
763
+          "autoIncrement": false,
764
+          "defaultValue": "",
765
+          "hideInGraph": false,
766
+          "refDict": "",
767
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
768
+          "id": "78803E94-FF38-41FE-BE54-3092E301A2B0"
769
+        },
754 770
         {
755 771
           "defKey": "create_date",
756 772
           "defName": "创建时间",
@@ -766,6 +782,22 @@
766 782
           "refDict": "",
767 783
           "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
768 784
           "id": "20553251-44A1-41E9-9173-06460E3B2350"
785
+        },
786
+        {
787
+          "defKey": "weight",
788
+          "defName": "权重",
789
+          "comment": "",
790
+          "type": "",
791
+          "len": "",
792
+          "scale": "",
793
+          "primaryKey": false,
794
+          "notNull": false,
795
+          "autoIncrement": false,
796
+          "defaultValue": "0",
797
+          "hideInGraph": false,
798
+          "refDict": "",
799
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
800
+          "id": "8EE33E84-1674-436C-AE24-32B775E6CCFD"
769 801
         }
770 802
       ],
771 803
       "correlations": [],
@@ -890,15 +922,15 @@
890 922
           "defKey": "user_name",
891 923
           "defName": "用户名",
892 924
           "comment": "",
893
-          "type": "VARCHAR",
894
-          "len": 90,
925
+          "type": "",
926
+          "len": "",
895 927
           "scale": "",
896 928
           "primaryKey": false,
897 929
           "notNull": false,
898 930
           "autoIncrement": false,
899 931
           "defaultValue": "",
900 932
           "hideInGraph": true,
901
-          "domain": "F3758B35-11A9-4A85-9F81-BDF9F0EE0008",
933
+          "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
902 934
           "refDict": "",
903 935
           "id": "200C9BED-0CD7-4EA6-9DAC-22BA0F1D542D"
904 936
         },
@@ -914,7 +946,7 @@
914 946
           "autoIncrement": false,
915 947
           "defaultValue": "",
916 948
           "hideInGraph": true,
917
-          "domain": "DF0AA11B-C1E4-45C2-B97D-6A77B3A6A929",
949
+          "domain": "",
918 950
           "refDict": "",
919 951
           "id": "FBB3274E-F74C-4683-B833-FC79B19704FB"
920 952
         },
@@ -923,14 +955,14 @@
923 955
           "defName": "手机号",
924 956
           "comment": "",
925 957
           "type": "VARCHAR",
926
-          "len": "60",
958
+          "len": 32,
927 959
           "scale": "",
928 960
           "primaryKey": false,
929 961
           "notNull": false,
930 962
           "autoIncrement": false,
931 963
           "defaultValue": "",
932 964
           "hideInGraph": true,
933
-          "domain": "90BE0DD1-EA61-4EF0-B478-A19D7BDC3231",
965
+          "domain": "",
934 966
           "refDict": "",
935 967
           "id": "82FC065C-328C-4391-BFC0-D25298B5185D"
936 968
         },
@@ -966,6 +998,38 @@
966 998
           "domain": "",
967 999
           "id": "EC791805-8C6E-45D8-B6EB-6403059B4D69"
968 1000
         },
1001
+        {
1002
+          "defKey": "org_id",
1003
+          "defName": "所属企业",
1004
+          "comment": "",
1005
+          "type": "",
1006
+          "len": "",
1007
+          "scale": "",
1008
+          "primaryKey": false,
1009
+          "notNull": false,
1010
+          "autoIncrement": false,
1011
+          "defaultValue": "",
1012
+          "hideInGraph": false,
1013
+          "refDict": "",
1014
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
1015
+          "id": "3B406408-C022-49B9-AB05-B362DC5698C0"
1016
+        },
1017
+        {
1018
+          "defKey": "is_admin",
1019
+          "defName": "是否管理员",
1020
+          "comment": "",
1021
+          "type": "",
1022
+          "len": "",
1023
+          "scale": "",
1024
+          "primaryKey": false,
1025
+          "notNull": false,
1026
+          "autoIncrement": false,
1027
+          "defaultValue": "0",
1028
+          "hideInGraph": false,
1029
+          "refDict": "",
1030
+          "domain": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF",
1031
+          "id": "8067668D-5E1A-490A-B8A8-0A4A6AEA9133"
1032
+        },
969 1033
         {
970 1034
           "defKey": "status",
971 1035
           "defName": "状态",
@@ -1265,6 +1329,441 @@
1265 1329
           "refDict": "",
1266 1330
           "uiHint": "",
1267 1331
           "id": "9994B7C2-A957-4897-BC6A-E6B442FA063B"
1332
+        },
1333
+        {
1334
+          "defKey": "delete_user_type",
1335
+          "defName": "删除人类型",
1336
+          "comment": "",
1337
+          "type": "",
1338
+          "len": "",
1339
+          "scale": "",
1340
+          "primaryKey": false,
1341
+          "notNull": false,
1342
+          "autoIncrement": false,
1343
+          "defaultValue": "",
1344
+          "hideInGraph": false,
1345
+          "refDict": "",
1346
+          "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
1347
+          "id": "1F47B8E7-8B5A-40FE-80EF-CF2E87C46708"
1348
+        },
1349
+        {
1350
+          "defKey": "delete_user",
1351
+          "defName": "删除人ID",
1352
+          "comment": "",
1353
+          "type": "",
1354
+          "len": "",
1355
+          "scale": "",
1356
+          "primaryKey": false,
1357
+          "notNull": false,
1358
+          "autoIncrement": false,
1359
+          "defaultValue": "",
1360
+          "hideInGraph": false,
1361
+          "refDict": "",
1362
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
1363
+          "id": "D289E449-6350-437C-814A-C70C0D551054"
1364
+        },
1365
+        {
1366
+          "defKey": "delete_date",
1367
+          "defName": "删除时间",
1368
+          "comment": "",
1369
+          "type": "",
1370
+          "len": "",
1371
+          "scale": "",
1372
+          "primaryKey": false,
1373
+          "notNull": false,
1374
+          "autoIncrement": false,
1375
+          "defaultValue": "",
1376
+          "hideInGraph": false,
1377
+          "refDict": "",
1378
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
1379
+          "id": "023F223A-9D3A-4C88-9263-C0A67BE140BE"
1380
+        }
1381
+      ],
1382
+      "correlations": [],
1383
+      "indexes": []
1384
+    },
1385
+    {
1386
+      "id": "07C8A339-DA0E-4D3D-A24D-0ADADBEAFC08",
1387
+      "env": {
1388
+        "base": {
1389
+          "nameSpace": "",
1390
+          "codeRoot": ""
1391
+        }
1392
+      },
1393
+      "defKey": "sys_setting",
1394
+      "defName": "系统配置",
1395
+      "comment": "",
1396
+      "properties": {
1397
+        "partitioned by": "(date string)",
1398
+        "row format delimited": "",
1399
+        "fields terminated by ','": "",
1400
+        "collection items terminated by '-'": "",
1401
+        "map keys terminated by ':'": "",
1402
+        "store as textfile;": ""
1403
+      },
1404
+      "nameTemplate": "{defKey}[{defName}]",
1405
+      "headers": [
1406
+        {
1407
+          "freeze": false,
1408
+          "refKey": "hideInGraph",
1409
+          "hideInGraph": true
1410
+        },
1411
+        {
1412
+          "freeze": true,
1413
+          "refKey": "defKey",
1414
+          "hideInGraph": false
1415
+        },
1416
+        {
1417
+          "freeze": true,
1418
+          "refKey": "defName",
1419
+          "hideInGraph": false
1420
+        },
1421
+        {
1422
+          "freeze": false,
1423
+          "refKey": "primaryKey",
1424
+          "hideInGraph": false
1425
+        },
1426
+        {
1427
+          "freeze": false,
1428
+          "refKey": "notNull",
1429
+          "hideInGraph": true
1430
+        },
1431
+        {
1432
+          "freeze": false,
1433
+          "refKey": "autoIncrement",
1434
+          "hideInGraph": true
1435
+        },
1436
+        {
1437
+          "freeze": false,
1438
+          "refKey": "domain",
1439
+          "hideInGraph": true
1440
+        },
1441
+        {
1442
+          "freeze": false,
1443
+          "refKey": "type",
1444
+          "hideInGraph": false
1445
+        },
1446
+        {
1447
+          "freeze": false,
1448
+          "refKey": "len",
1449
+          "hideInGraph": false
1450
+        },
1451
+        {
1452
+          "freeze": false,
1453
+          "refKey": "scale",
1454
+          "hideInGraph": false
1455
+        },
1456
+        {
1457
+          "freeze": false,
1458
+          "refKey": "comment",
1459
+          "hideInGraph": true
1460
+        },
1461
+        {
1462
+          "freeze": false,
1463
+          "refKey": "refDict",
1464
+          "hideInGraph": true
1465
+        },
1466
+        {
1467
+          "freeze": false,
1468
+          "refKey": "defaultValue",
1469
+          "hideInGraph": true
1470
+        },
1471
+        {
1472
+          "freeze": false,
1473
+          "refKey": "isStandard",
1474
+          "hideInGraph": false
1475
+        },
1476
+        {
1477
+          "freeze": false,
1478
+          "refKey": "uiHint",
1479
+          "hideInGraph": true
1480
+        }
1481
+      ],
1482
+      "fields": [
1483
+        {
1484
+          "defKey": "setting_id",
1485
+          "defName": "配置ID",
1486
+          "comment": "",
1487
+          "type": "",
1488
+          "len": 32,
1489
+          "scale": "",
1490
+          "primaryKey": true,
1491
+          "notNull": true,
1492
+          "autoIncrement": false,
1493
+          "defaultValue": "",
1494
+          "hideInGraph": true,
1495
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
1496
+          "refDict": "",
1497
+          "uiHint": "",
1498
+          "id": "DC256D2F-980D-426C-BF58-D8985857C179"
1499
+        },
1500
+        {
1501
+          "defKey": "title",
1502
+          "defName": "配置标题",
1503
+          "comment": "",
1504
+          "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
1505
+          "type": "",
1506
+          "len": "",
1507
+          "scale": "",
1508
+          "primaryKey": false,
1509
+          "notNull": false,
1510
+          "autoIncrement": false,
1511
+          "defaultValue": "",
1512
+          "hideInGraph": true,
1513
+          "refDict": "",
1514
+          "uiHint": "",
1515
+          "id": "C608D673-8D27-4DCB-9CB4-0566BA8091FC"
1516
+        },
1517
+        {
1518
+          "defKey": "desc",
1519
+          "defName": "详细说明",
1520
+          "comment": "",
1521
+          "type": "",
1522
+          "len": "",
1523
+          "scale": "",
1524
+          "primaryKey": false,
1525
+          "notNull": false,
1526
+          "autoIncrement": false,
1527
+          "defaultValue": "",
1528
+          "hideInGraph": false,
1529
+          "refDict": "",
1530
+          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
1531
+          "id": "DE7E2669-E15B-44CA-8A28-32B0B068EF46"
1532
+        },
1533
+        {
1534
+          "defKey": "content",
1535
+          "defName": "配置内容",
1536
+          "comment": "",
1537
+          "type": "TEXT",
1538
+          "len": "",
1539
+          "scale": "",
1540
+          "primaryKey": false,
1541
+          "notNull": false,
1542
+          "autoIncrement": false,
1543
+          "defaultValue": "",
1544
+          "hideInGraph": false,
1545
+          "refDict": "",
1546
+          "domain": "",
1547
+          "id": "7BE8003E-D2A8-459A-A31B-F4D492946988"
1548
+        },
1549
+        {
1550
+          "defKey": "status",
1551
+          "defName": "状态",
1552
+          "comment": "",
1553
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
1554
+          "type": "",
1555
+          "len": "",
1556
+          "scale": "",
1557
+          "primaryKey": false,
1558
+          "notNull": false,
1559
+          "autoIncrement": false,
1560
+          "defaultValue": "1",
1561
+          "hideInGraph": true,
1562
+          "refDict": "",
1563
+          "uiHint": "",
1564
+          "id": "D952237B-925E-4620-8D27-AA4FC6365030"
1565
+        },
1566
+        {
1567
+          "defKey": "create_date",
1568
+          "defName": "创建时间",
1569
+          "comment": "",
1570
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
1571
+          "type": "",
1572
+          "len": "",
1573
+          "scale": "",
1574
+          "primaryKey": false,
1575
+          "notNull": false,
1576
+          "autoIncrement": false,
1577
+          "defaultValue": "CURRENT_TIMESTAMP",
1578
+          "hideInGraph": true,
1579
+          "refDict": "",
1580
+          "uiHint": "",
1581
+          "id": "9184F4A9-D287-42E5-A838-690C4BF7F7F1"
1582
+        }
1583
+      ],
1584
+      "correlations": [],
1585
+      "indexes": []
1586
+    },
1587
+    {
1588
+      "id": "D28CBEC4-98D9-41D9-8349-F437FE4980E0",
1589
+      "env": {
1590
+        "base": {
1591
+          "nameSpace": "",
1592
+          "codeRoot": ""
1593
+        }
1594
+      },
1595
+      "defKey": "ts_resume_work_form",
1596
+      "defName": "通用统计",
1597
+      "comment": "",
1598
+      "properties": {
1599
+        "partitioned by": "(date string)",
1600
+        "row format delimited": "",
1601
+        "fields terminated by ','": "",
1602
+        "collection items terminated by '-'": "",
1603
+        "map keys terminated by ':'": "",
1604
+        "store as textfile;": ""
1605
+      },
1606
+      "nameTemplate": "{defKey}[{defName}]",
1607
+      "headers": [
1608
+        {
1609
+          "freeze": false,
1610
+          "refKey": "hideInGraph",
1611
+          "hideInGraph": true
1612
+        },
1613
+        {
1614
+          "freeze": true,
1615
+          "refKey": "defKey",
1616
+          "hideInGraph": false
1617
+        },
1618
+        {
1619
+          "freeze": true,
1620
+          "refKey": "defName",
1621
+          "hideInGraph": false
1622
+        },
1623
+        {
1624
+          "freeze": false,
1625
+          "refKey": "primaryKey",
1626
+          "hideInGraph": false
1627
+        },
1628
+        {
1629
+          "freeze": false,
1630
+          "refKey": "notNull",
1631
+          "hideInGraph": true
1632
+        },
1633
+        {
1634
+          "freeze": false,
1635
+          "refKey": "autoIncrement",
1636
+          "hideInGraph": true
1637
+        },
1638
+        {
1639
+          "freeze": false,
1640
+          "refKey": "domain",
1641
+          "hideInGraph": true
1642
+        },
1643
+        {
1644
+          "freeze": false,
1645
+          "refKey": "type",
1646
+          "hideInGraph": false
1647
+        },
1648
+        {
1649
+          "freeze": false,
1650
+          "refKey": "len",
1651
+          "hideInGraph": false
1652
+        },
1653
+        {
1654
+          "freeze": false,
1655
+          "refKey": "scale",
1656
+          "hideInGraph": false
1657
+        },
1658
+        {
1659
+          "freeze": false,
1660
+          "refKey": "comment",
1661
+          "hideInGraph": true
1662
+        },
1663
+        {
1664
+          "freeze": false,
1665
+          "refKey": "refDict",
1666
+          "hideInGraph": true
1667
+        },
1668
+        {
1669
+          "freeze": false,
1670
+          "refKey": "defaultValue",
1671
+          "hideInGraph": true
1672
+        },
1673
+        {
1674
+          "freeze": false,
1675
+          "refKey": "isStandard",
1676
+          "hideInGraph": false
1677
+        },
1678
+        {
1679
+          "freeze": false,
1680
+          "refKey": "uiHint",
1681
+          "hideInGraph": true
1682
+        }
1683
+      ],
1684
+      "fields": [
1685
+        {
1686
+          "defKey": "statis_id",
1687
+          "defName": "统计ID",
1688
+          "comment": "",
1689
+          "type": "",
1690
+          "len": 32,
1691
+          "scale": "",
1692
+          "primaryKey": true,
1693
+          "notNull": true,
1694
+          "autoIncrement": false,
1695
+          "defaultValue": "",
1696
+          "hideInGraph": true,
1697
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
1698
+          "refDict": "",
1699
+          "uiHint": "",
1700
+          "id": "13B505FB-AF21-4EC2-838F-C840C4235A31"
1701
+        },
1702
+        {
1703
+          "defKey": "org_id",
1704
+          "defName": "机构ID",
1705
+          "comment": "",
1706
+          "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
1707
+          "type": "",
1708
+          "len": "",
1709
+          "scale": "",
1710
+          "primaryKey": false,
1711
+          "notNull": false,
1712
+          "autoIncrement": false,
1713
+          "defaultValue": "",
1714
+          "hideInGraph": true,
1715
+          "refDict": "",
1716
+          "uiHint": "",
1717
+          "id": "BD57717B-D251-4926-9CD4-51919F2C727C"
1718
+        },
1719
+        {
1720
+          "defKey": "st_type",
1721
+          "defName": "统计类型",
1722
+          "comment": "",
1723
+          "type": "",
1724
+          "len": "",
1725
+          "scale": "",
1726
+          "primaryKey": false,
1727
+          "notNull": false,
1728
+          "autoIncrement": false,
1729
+          "defaultValue": "",
1730
+          "hideInGraph": false,
1731
+          "refDict": "",
1732
+          "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
1733
+          "id": "68B957CA-0575-471E-A851-5CBF410C36EB"
1734
+        },
1735
+        {
1736
+          "defKey": "name",
1737
+          "defName": "统计名称",
1738
+          "comment": "",
1739
+          "type": "",
1740
+          "len": "",
1741
+          "scale": "",
1742
+          "primaryKey": false,
1743
+          "notNull": false,
1744
+          "autoIncrement": false,
1745
+          "defaultValue": "",
1746
+          "hideInGraph": false,
1747
+          "refDict": "",
1748
+          "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
1749
+          "id": "7DDBC0A8-B783-4CCC-A3C0-FC860467B911"
1750
+        },
1751
+        {
1752
+          "defKey": "value",
1753
+          "defName": "统计值",
1754
+          "comment": "",
1755
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
1756
+          "type": "",
1757
+          "len": "",
1758
+          "scale": "",
1759
+          "primaryKey": false,
1760
+          "notNull": false,
1761
+          "autoIncrement": false,
1762
+          "defaultValue": "1",
1763
+          "hideInGraph": true,
1764
+          "refDict": "",
1765
+          "uiHint": "",
1766
+          "id": "57A4A943-266D-4A5E-A292-47EB25BB244F"
1268 1767
         }
1269 1768
       ],
1270 1769
       "correlations": [],
@@ -1647,7 +2146,8 @@
1647 2146
       "defKey": "system",
1648 2147
       "defName": "系统",
1649 2148
       "refEntities": [
1650
-        "3A05BE2E-A4DD-424D-B14E-9916A441CF6D"
2149
+        "3A05BE2E-A4DD-424D-B14E-9916A441CF6D",
2150
+        "07C8A339-DA0E-4D3D-A24D-0ADADBEAFC08"
1651 2151
       ],
1652 2152
       "refViews": [],
1653 2153
       "refDiagrams": [],
@@ -1676,6 +2176,17 @@
1676 2176
       "refDiagrams": [],
1677 2177
       "refDicts": [],
1678 2178
       "id": "E1E6EF10-6913-44A1-A935-C379D4388C96"
2179
+    },
2180
+    {
2181
+      "defKey": "statis",
2182
+      "defName": "统计",
2183
+      "refEntities": [
2184
+        "D28CBEC4-98D9-41D9-8349-F437FE4980E0"
2185
+      ],
2186
+      "refViews": [],
2187
+      "refDiagrams": [],
2188
+      "refDicts": [],
2189
+      "id": "C03B969F-3401-4D53-89DA-02E8FFDBD029"
1679 2190
     }
1680 2191
   ],
1681 2192
   "dataTypeMapping": {