Your Name 2 år sedan
förälder
incheckning
848a781689

db/.back_文明创办/文明创办-backup-20221227172242.pdma.json → db/.back_文明创办/文明创办-backup-20221228183638.pdma.json Visa fil

@@ -4,7 +4,7 @@
4 4
   "avatar": "",
5 5
   "version": "4.2.0",
6 6
   "createdTime": "2022-12-12 09:36:12",
7
-  "updatedTime": "2022-12-27 17:20:04",
7
+  "updatedTime": "2022-12-28 16:00:46",
8 8
   "dbConns": [],
9 9
   "profile": {
10 10
     "default": {
@@ -3486,6 +3486,23 @@
3486 3486
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
3487 3487
           "id": "75B83E1E-5827-4CCC-AC30-31982D1AEDC3"
3488 3488
         },
3489
+        {
3490
+          "defKey": "loc_name",
3491
+          "defName": "点位名称",
3492
+          "comment": "",
3493
+          "type": "",
3494
+          "len": "",
3495
+          "scale": "",
3496
+          "primaryKey": false,
3497
+          "notNull": false,
3498
+          "autoIncrement": false,
3499
+          "defaultValue": "",
3500
+          "hideInGraph": false,
3501
+          "refDict": "",
3502
+          "extProps": {},
3503
+          "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
3504
+          "id": "EA018F17-8983-4C52-BCE7-F6AEEBCECFB1"
3505
+        },
3489 3506
         {
3490 3507
           "defKey": "location",
3491 3508
           "defName": "定位",
@@ -3675,7 +3692,7 @@
3675 3692
           "id": "FA8794DB-E947-480D-A0D5-6B7E02297481"
3676 3693
         },
3677 3694
         {
3678
-          "defKey": "create_person",
3695
+          "defKey": "create_user",
3679 3696
           "defName": "上报人",
3680 3697
           "comment": "",
3681 3698
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
@@ -3692,7 +3709,7 @@
3692 3709
           "id": "0499A27B-0D48-4070-B1DB-1D42293B23F1"
3693 3710
         },
3694 3711
         {
3695
-          "defKey": "person_name",
3712
+          "defKey": "user_name",
3696 3713
           "defName": "上报人名称",
3697 3714
           "comment": "",
3698 3715
           "type": "",
@@ -3709,7 +3726,7 @@
3709 3726
           "id": "CF1082C9-7547-4850-800D-BA7CF84CE1CD"
3710 3727
         },
3711 3728
         {
3712
-          "defKey": "person_duty",
3729
+          "defKey": "user_duty",
3713 3730
           "defName": "上报人身份",
3714 3731
           "comment": "",
3715 3732
           "type": "",
@@ -4437,81 +4454,9 @@
4437 4454
           "domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
4438 4455
           "id": "98A22AE6-A570-4E5A-B1CE-7F036B692110"
4439 4456
         },
4440
-        {
4441
-          "defKey": "verify_org",
4442
-          "defName": "审批机构",
4443
-          "comment": "",
4444
-          "type": "",
4445
-          "len": "",
4446
-          "scale": "",
4447
-          "primaryKey": false,
4448
-          "notNull": false,
4449
-          "autoIncrement": false,
4450
-          "defaultValue": "",
4451
-          "hideInGraph": false,
4452
-          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
4453
-          "refDict": "",
4454
-          "extProps": {},
4455
-          "notes": {},
4456
-          "id": "7F5E3563-8E5F-45A2-9EA7-486C3012CDBB"
4457
-        },
4458
-        {
4459
-          "defKey": "verify_user",
4460
-          "defName": "审批人",
4461
-          "comment": "",
4462
-          "type": "",
4463
-          "len": "",
4464
-          "scale": "",
4465
-          "primaryKey": false,
4466
-          "notNull": false,
4467
-          "autoIncrement": false,
4468
-          "defaultValue": "",
4469
-          "hideInGraph": false,
4470
-          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
4471
-          "refDict": "",
4472
-          "extProps": {},
4473
-          "notes": {},
4474
-          "id": "BFEA7C0C-20C1-4EED-96E8-2951E12F25DC"
4475
-        },
4476
-        {
4477
-          "defKey": "verify_user_name",
4478
-          "defName": "审批人名称",
4479
-          "comment": "",
4480
-          "type": "",
4481
-          "len": "",
4482
-          "scale": "",
4483
-          "primaryKey": false,
4484
-          "notNull": false,
4485
-          "autoIncrement": false,
4486
-          "defaultValue": "",
4487
-          "hideInGraph": false,
4488
-          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
4489
-          "refDict": "",
4490
-          "extProps": {},
4491
-          "notes": {},
4492
-          "id": "F5048929-1268-4AAB-B2D3-FB06838D7CC2"
4493
-        },
4494
-        {
4495
-          "defKey": "verify_date",
4496
-          "defName": "审批日期",
4497
-          "comment": "",
4498
-          "type": "",
4499
-          "len": "",
4500
-          "scale": "",
4501
-          "primaryKey": false,
4502
-          "notNull": false,
4503
-          "autoIncrement": false,
4504
-          "defaultValue": "",
4505
-          "hideInGraph": false,
4506
-          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
4507
-          "refDict": "",
4508
-          "extProps": {},
4509
-          "notes": {},
4510
-          "id": "0CDD216B-585A-4D43-A100-E0F581BAE052"
4511
-        },
4512 4457
         {
4513 4458
           "defKey": "org_id",
4514
-          "defName": "申请机构",
4459
+          "defName": "处理机构",
4515 4460
           "comment": "",
4516 4461
           "type": "",
4517 4462
           "len": "",
@@ -4528,7 +4473,7 @@
4528 4473
         },
4529 4474
         {
4530 4475
           "defKey": "create_user",
4531
-          "defName": "申请人",
4476
+          "defName": "处理人",
4532 4477
           "comment": "",
4533 4478
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
4534 4479
           "type": "",
@@ -4545,7 +4490,7 @@
4545 4490
         },
4546 4491
         {
4547 4492
           "defKey": "user_name",
4548
-          "defName": "申请人名称",
4493
+          "defName": "处理人名称",
4549 4494
           "comment": "",
4550 4495
           "type": "",
4551 4496
           "len": "",
@@ -4562,7 +4507,7 @@
4562 4507
         },
4563 4508
         {
4564 4509
           "defKey": "create_date",
4565
-          "defName": "申请时间",
4510
+          "defName": "创建时间",
4566 4511
           "comment": "",
4567 4512
           "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
4568 4513
           "type": "",
@@ -7643,7 +7588,7 @@
7643 7588
           "hideInGraph": false,
7644 7589
           "refDict": "",
7645 7590
           "extProps": {},
7646
-          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
7591
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
7647 7592
           "id": "3B95BAE1-E231-4E2D-8451-24B6B2DE82AA"
7648 7593
         },
7649 7594
         {
@@ -7734,6 +7679,239 @@
7734 7679
       ],
7735 7680
       "correlations": [],
7736 7681
       "indexes": []
7682
+    },
7683
+    {
7684
+      "id": "5BEE62BD-F04C-49E8-A65A-32A11B093E7B",
7685
+      "env": {
7686
+        "base": {
7687
+          "nameSpace": "com.example.civilizedcity",
7688
+          "codeRoot": "TaOrgIssue"
7689
+        },
7690
+        "template": {
7691
+          "JavaMybatisPlus": {
7692
+            "Controller": {
7693
+              "suffix": "controller/{{=it.codeRoot}}Controller.java",
7694
+              "enable": true
7695
+            },
7696
+            "Service": {
7697
+              "suffix": "service/{{=it.codeRoot}}Service.java",
7698
+              "enable": true
7699
+            },
7700
+            "ServiceImpl": {
7701
+              "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
7702
+              "enable": true
7703
+            },
7704
+            "Mapper": {
7705
+              "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
7706
+              "enable": true
7707
+            },
7708
+            "Mapper.xml": {
7709
+              "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
7710
+              "enable": true
7711
+            },
7712
+            "Entity": {
7713
+              "suffix": "entity/{{=it.codeRoot}}.java",
7714
+              "enable": true
7715
+            }
7716
+          }
7717
+        },
7718
+        "custom": {}
7719
+      },
7720
+      "defKey": "ta_org_issue",
7721
+      "defName": "单位问题单",
7722
+      "comment": "",
7723
+      "properties": {},
7724
+      "nameTemplate": "{defKey}[{defName}]",
7725
+      "notes": {},
7726
+      "headers": [
7727
+        {
7728
+          "refKey": "hideInGraph",
7729
+          "hideInGraph": true
7730
+        },
7731
+        {
7732
+          "refKey": "defKey",
7733
+          "hideInGraph": false
7734
+        },
7735
+        {
7736
+          "refKey": "defName",
7737
+          "hideInGraph": false
7738
+        },
7739
+        {
7740
+          "refKey": "primaryKey",
7741
+          "hideInGraph": false
7742
+        },
7743
+        {
7744
+          "refKey": "notNull",
7745
+          "hideInGraph": true
7746
+        },
7747
+        {
7748
+          "refKey": "autoIncrement",
7749
+          "hideInGraph": true
7750
+        },
7751
+        {
7752
+          "refKey": "domain",
7753
+          "hideInGraph": true
7754
+        },
7755
+        {
7756
+          "refKey": "type",
7757
+          "hideInGraph": false
7758
+        },
7759
+        {
7760
+          "refKey": "len",
7761
+          "hideInGraph": false
7762
+        },
7763
+        {
7764
+          "refKey": "scale",
7765
+          "hideInGraph": false
7766
+        },
7767
+        {
7768
+          "refKey": "comment",
7769
+          "hideInGraph": true
7770
+        },
7771
+        {
7772
+          "refKey": "refDict",
7773
+          "hideInGraph": true
7774
+        },
7775
+        {
7776
+          "refKey": "defaultValue",
7777
+          "hideInGraph": true
7778
+        },
7779
+        {
7780
+          "refKey": "isStandard",
7781
+          "hideInGraph": false
7782
+        },
7783
+        {
7784
+          "refKey": "uiHint",
7785
+          "hideInGraph": true
7786
+        },
7787
+        {
7788
+          "refKey": "extProps",
7789
+          "hideInGraph": true
7790
+        }
7791
+      ],
7792
+      "fields": [
7793
+        {
7794
+          "defKey": "org_issue_id",
7795
+          "defName": "单位问题单ID",
7796
+          "comment": "",
7797
+          "type": "",
7798
+          "len": "",
7799
+          "scale": "",
7800
+          "primaryKey": true,
7801
+          "notNull": true,
7802
+          "autoIncrement": true,
7803
+          "defaultValue": "",
7804
+          "hideInGraph": true,
7805
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7806
+          "refDict": "",
7807
+          "uiHint": "",
7808
+          "id": "AA2134D5-EEC2-4B33-9895-0F4CAC686CD7"
7809
+        },
7810
+        {
7811
+          "defKey": "issue_id",
7812
+          "defName": "问题单ID",
7813
+          "comment": "",
7814
+          "type": "",
7815
+          "len": "",
7816
+          "scale": "",
7817
+          "primaryKey": false,
7818
+          "notNull": false,
7819
+          "autoIncrement": false,
7820
+          "defaultValue": "",
7821
+          "hideInGraph": false,
7822
+          "refDict": "",
7823
+          "extProps": {},
7824
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7825
+          "id": "379DCFDC-F70C-4829-B4D5-E2C8212BB3CC"
7826
+        },
7827
+        {
7828
+          "defKey": "org_id",
7829
+          "defName": "机构ID",
7830
+          "comment": "",
7831
+          "type": "",
7832
+          "len": "",
7833
+          "scale": "",
7834
+          "primaryKey": false,
7835
+          "notNull": false,
7836
+          "autoIncrement": false,
7837
+          "defaultValue": "",
7838
+          "hideInGraph": false,
7839
+          "refDict": "",
7840
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
7841
+          "id": "649F17F6-D2C1-4AAD-B913-ED39F26E4AF4",
7842
+          "uiHint": ""
7843
+        },
7844
+        {
7845
+          "defKey": "process_status",
7846
+          "defName": "业务单状态",
7847
+          "comment": "",
7848
+          "type": "",
7849
+          "len": "",
7850
+          "scale": "",
7851
+          "primaryKey": false,
7852
+          "notNull": false,
7853
+          "autoIncrement": false,
7854
+          "defaultValue": "",
7855
+          "hideInGraph": false,
7856
+          "refDict": "",
7857
+          "extProps": {},
7858
+          "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
7859
+          "id": "6FD54E7F-E054-403B-83AB-9309AE4B2B72"
7860
+        },
7861
+        {
7862
+          "defKey": "status",
7863
+          "defName": "状态",
7864
+          "comment": "",
7865
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7866
+          "type": "",
7867
+          "len": "",
7868
+          "scale": "",
7869
+          "primaryKey": false,
7870
+          "notNull": false,
7871
+          "autoIncrement": false,
7872
+          "defaultValue": "1",
7873
+          "hideInGraph": true,
7874
+          "refDict": "",
7875
+          "uiHint": "",
7876
+          "id": "7511A036-EC9A-4F2A-8FC9-0D57EAA63575"
7877
+        },
7878
+        {
7879
+          "defKey": "create_user",
7880
+          "defName": "创建人",
7881
+          "comment": "",
7882
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
7883
+          "type": "",
7884
+          "len": "",
7885
+          "scale": "",
7886
+          "primaryKey": false,
7887
+          "notNull": false,
7888
+          "autoIncrement": false,
7889
+          "defaultValue": "",
7890
+          "hideInGraph": true,
7891
+          "refDict": "",
7892
+          "uiHint": "",
7893
+          "id": "E4777FE2-3A60-41E1-A747-E489123A38DC"
7894
+        },
7895
+        {
7896
+          "defKey": "create_date",
7897
+          "defName": "创建时间",
7898
+          "comment": "",
7899
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
7900
+          "type": "",
7901
+          "len": "",
7902
+          "scale": "",
7903
+          "primaryKey": false,
7904
+          "notNull": false,
7905
+          "autoIncrement": false,
7906
+          "defaultValue": "CURRENT_TIMESTAMP",
7907
+          "hideInGraph": true,
7908
+          "refDict": "",
7909
+          "uiHint": "",
7910
+          "id": "AE79E742-46BD-441E-BC4E-6151E86BDD74"
7911
+        }
7912
+      ],
7913
+      "correlations": [],
7914
+      "indexes": []
7737 7915
     }
7738 7916
   ],
7739 7917
   "views": [],
@@ -8160,7 +8338,8 @@
8160 8338
         "507794C4-11E9-4924-AEC5-368BC6E03FD7",
8161 8339
         "3B58B8CA-AF26-40FE-907A-A34523419478",
8162 8340
         "B20E272F-91EB-4BAC-AAD6-AF99D517E44D",
8163
-        "EF3D4E17-6CE0-4944-B1DC-40280B2B689F"
8341
+        "EF3D4E17-6CE0-4944-B1DC-40280B2B689F",
8342
+        "5BEE62BD-F04C-49E8-A65A-32A11B093E7B"
8164 8343
       ],
8165 8344
       "refViews": [],
8166 8345
       "refDiagrams": [],

db/.back_文明创办/文明创办-backup-20221227172004.pdma.json → db/.back_文明创办/文明创办-backup-20221228183752.pdma.json Visa fil

@@ -4,7 +4,7 @@
4 4
   "avatar": "",
5 5
   "version": "4.2.0",
6 6
   "createdTime": "2022-12-12 09:36:12",
7
-  "updatedTime": "2022-12-27 16:13:27",
7
+  "updatedTime": "2022-12-28 18:36:38",
8 8
   "dbConns": [],
9 9
   "profile": {
10 10
     "default": {
@@ -3486,6 +3486,23 @@
3486 3486
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
3487 3487
           "id": "75B83E1E-5827-4CCC-AC30-31982D1AEDC3"
3488 3488
         },
3489
+        {
3490
+          "defKey": "loc_name",
3491
+          "defName": "点位名称",
3492
+          "comment": "",
3493
+          "type": "",
3494
+          "len": "",
3495
+          "scale": "",
3496
+          "primaryKey": false,
3497
+          "notNull": false,
3498
+          "autoIncrement": false,
3499
+          "defaultValue": "",
3500
+          "hideInGraph": false,
3501
+          "refDict": "",
3502
+          "extProps": {},
3503
+          "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
3504
+          "id": "EA018F17-8983-4C52-BCE7-F6AEEBCECFB1"
3505
+        },
3489 3506
         {
3490 3507
           "defKey": "location",
3491 3508
           "defName": "定位",
@@ -3675,7 +3692,7 @@
3675 3692
           "id": "FA8794DB-E947-480D-A0D5-6B7E02297481"
3676 3693
         },
3677 3694
         {
3678
-          "defKey": "create_person",
3695
+          "defKey": "create_user",
3679 3696
           "defName": "上报人",
3680 3697
           "comment": "",
3681 3698
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
@@ -3692,7 +3709,7 @@
3692 3709
           "id": "0499A27B-0D48-4070-B1DB-1D42293B23F1"
3693 3710
         },
3694 3711
         {
3695
-          "defKey": "person_name",
3712
+          "defKey": "user_name",
3696 3713
           "defName": "上报人名称",
3697 3714
           "comment": "",
3698 3715
           "type": "",
@@ -3709,7 +3726,7 @@
3709 3726
           "id": "CF1082C9-7547-4850-800D-BA7CF84CE1CD"
3710 3727
         },
3711 3728
         {
3712
-          "defKey": "person_duty",
3729
+          "defKey": "user_duty",
3713 3730
           "defName": "上报人身份",
3714 3731
           "comment": "",
3715 3732
           "type": "",
@@ -4352,23 +4369,6 @@
4352 4369
           "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
4353 4370
           "id": "C7F06F89-4FA3-48D2-A861-B008B8C81251"
4354 4371
         },
4355
-        {
4356
-          "defKey": "org_id",
4357
-          "defName": "处理机构",
4358
-          "comment": "",
4359
-          "type": "",
4360
-          "len": "",
4361
-          "scale": "",
4362
-          "primaryKey": false,
4363
-          "notNull": false,
4364
-          "autoIncrement": false,
4365
-          "defaultValue": "",
4366
-          "hideInGraph": false,
4367
-          "refDict": "",
4368
-          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
4369
-          "id": "DACC10C6-21E8-4483-9C65-DFC7EB3B960A",
4370
-          "uiHint": ""
4371
-        },
4372 4372
         {
4373 4373
           "defKey": "next_org",
4374 4374
           "defName": "指定机构",
@@ -4455,21 +4455,21 @@
4455 4455
           "id": "98A22AE6-A570-4E5A-B1CE-7F036B692110"
4456 4456
         },
4457 4457
         {
4458
-          "defKey": "status",
4459
-          "defName": "状态",
4458
+          "defKey": "org_id",
4459
+          "defName": "处理机构",
4460 4460
           "comment": "",
4461
-          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
4462 4461
           "type": "",
4463 4462
           "len": "",
4464 4463
           "scale": "",
4465 4464
           "primaryKey": false,
4466 4465
           "notNull": false,
4467 4466
           "autoIncrement": false,
4468
-          "defaultValue": "1",
4469
-          "hideInGraph": true,
4467
+          "defaultValue": "",
4468
+          "hideInGraph": false,
4470 4469
           "refDict": "",
4471
-          "uiHint": "",
4472
-          "id": "7FC503B3-A4AE-4167-81D1-1DDB7F11E9AB"
4470
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
4471
+          "id": "DACC10C6-21E8-4483-9C65-DFC7EB3B960A",
4472
+          "uiHint": ""
4473 4473
         },
4474 4474
         {
4475 4475
           "defKey": "create_user",
@@ -4521,6 +4521,23 @@
4521 4521
           "refDict": "",
4522 4522
           "uiHint": "",
4523 4523
           "id": "DC8BABA9-B796-462E-A242-C92E3BF071C8"
4524
+        },
4525
+        {
4526
+          "defKey": "status",
4527
+          "defName": "状态",
4528
+          "comment": "",
4529
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
4530
+          "type": "",
4531
+          "len": "",
4532
+          "scale": "",
4533
+          "primaryKey": false,
4534
+          "notNull": false,
4535
+          "autoIncrement": false,
4536
+          "defaultValue": "1",
4537
+          "hideInGraph": true,
4538
+          "refDict": "",
4539
+          "uiHint": "",
4540
+          "id": "7FC503B3-A4AE-4167-81D1-1DDB7F11E9AB"
4524 4541
         }
4525 4542
       ],
4526 4543
       "correlations": [],
@@ -7571,7 +7588,7 @@
7571 7588
           "hideInGraph": false,
7572 7589
           "refDict": "",
7573 7590
           "extProps": {},
7574
-          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
7591
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
7575 7592
           "id": "3B95BAE1-E231-4E2D-8451-24B6B2DE82AA"
7576 7593
         },
7577 7594
         {
@@ -7662,6 +7679,239 @@
7662 7679
       ],
7663 7680
       "correlations": [],
7664 7681
       "indexes": []
7682
+    },
7683
+    {
7684
+      "id": "5BEE62BD-F04C-49E8-A65A-32A11B093E7B",
7685
+      "env": {
7686
+        "base": {
7687
+          "nameSpace": "com.example.civilizedcity",
7688
+          "codeRoot": "TaOrgIssue"
7689
+        },
7690
+        "template": {
7691
+          "JavaMybatisPlus": {
7692
+            "Controller": {
7693
+              "suffix": "controller/{{=it.codeRoot}}Controller.java",
7694
+              "enable": true
7695
+            },
7696
+            "Service": {
7697
+              "suffix": "service/{{=it.codeRoot}}Service.java",
7698
+              "enable": true
7699
+            },
7700
+            "ServiceImpl": {
7701
+              "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
7702
+              "enable": true
7703
+            },
7704
+            "Mapper": {
7705
+              "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
7706
+              "enable": true
7707
+            },
7708
+            "Mapper.xml": {
7709
+              "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
7710
+              "enable": true
7711
+            },
7712
+            "Entity": {
7713
+              "suffix": "entity/{{=it.codeRoot}}.java",
7714
+              "enable": true
7715
+            }
7716
+          }
7717
+        },
7718
+        "custom": {}
7719
+      },
7720
+      "defKey": "ta_org_issue",
7721
+      "defName": "单位问题单",
7722
+      "comment": "",
7723
+      "properties": {},
7724
+      "nameTemplate": "{defKey}[{defName}]",
7725
+      "notes": {},
7726
+      "headers": [
7727
+        {
7728
+          "refKey": "hideInGraph",
7729
+          "hideInGraph": true
7730
+        },
7731
+        {
7732
+          "refKey": "defKey",
7733
+          "hideInGraph": false
7734
+        },
7735
+        {
7736
+          "refKey": "defName",
7737
+          "hideInGraph": false
7738
+        },
7739
+        {
7740
+          "refKey": "primaryKey",
7741
+          "hideInGraph": false
7742
+        },
7743
+        {
7744
+          "refKey": "notNull",
7745
+          "hideInGraph": true
7746
+        },
7747
+        {
7748
+          "refKey": "autoIncrement",
7749
+          "hideInGraph": true
7750
+        },
7751
+        {
7752
+          "refKey": "domain",
7753
+          "hideInGraph": true
7754
+        },
7755
+        {
7756
+          "refKey": "type",
7757
+          "hideInGraph": false
7758
+        },
7759
+        {
7760
+          "refKey": "len",
7761
+          "hideInGraph": false
7762
+        },
7763
+        {
7764
+          "refKey": "scale",
7765
+          "hideInGraph": false
7766
+        },
7767
+        {
7768
+          "refKey": "comment",
7769
+          "hideInGraph": true
7770
+        },
7771
+        {
7772
+          "refKey": "refDict",
7773
+          "hideInGraph": true
7774
+        },
7775
+        {
7776
+          "refKey": "defaultValue",
7777
+          "hideInGraph": true
7778
+        },
7779
+        {
7780
+          "refKey": "isStandard",
7781
+          "hideInGraph": false
7782
+        },
7783
+        {
7784
+          "refKey": "uiHint",
7785
+          "hideInGraph": true
7786
+        },
7787
+        {
7788
+          "refKey": "extProps",
7789
+          "hideInGraph": true
7790
+        }
7791
+      ],
7792
+      "fields": [
7793
+        {
7794
+          "defKey": "org_issue_id",
7795
+          "defName": "单位问题单ID",
7796
+          "comment": "",
7797
+          "type": "",
7798
+          "len": "",
7799
+          "scale": "",
7800
+          "primaryKey": true,
7801
+          "notNull": true,
7802
+          "autoIncrement": true,
7803
+          "defaultValue": "",
7804
+          "hideInGraph": true,
7805
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7806
+          "refDict": "",
7807
+          "uiHint": "",
7808
+          "id": "AA2134D5-EEC2-4B33-9895-0F4CAC686CD7"
7809
+        },
7810
+        {
7811
+          "defKey": "issue_id",
7812
+          "defName": "问题单ID",
7813
+          "comment": "",
7814
+          "type": "",
7815
+          "len": "",
7816
+          "scale": "",
7817
+          "primaryKey": false,
7818
+          "notNull": false,
7819
+          "autoIncrement": false,
7820
+          "defaultValue": "",
7821
+          "hideInGraph": false,
7822
+          "refDict": "",
7823
+          "extProps": {},
7824
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7825
+          "id": "379DCFDC-F70C-4829-B4D5-E2C8212BB3CC"
7826
+        },
7827
+        {
7828
+          "defKey": "org_id",
7829
+          "defName": "机构ID",
7830
+          "comment": "",
7831
+          "type": "",
7832
+          "len": "",
7833
+          "scale": "",
7834
+          "primaryKey": false,
7835
+          "notNull": false,
7836
+          "autoIncrement": false,
7837
+          "defaultValue": "",
7838
+          "hideInGraph": false,
7839
+          "refDict": "",
7840
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
7841
+          "id": "649F17F6-D2C1-4AAD-B913-ED39F26E4AF4",
7842
+          "uiHint": ""
7843
+        },
7844
+        {
7845
+          "defKey": "process_status",
7846
+          "defName": "业务单状态",
7847
+          "comment": "",
7848
+          "type": "",
7849
+          "len": "",
7850
+          "scale": "",
7851
+          "primaryKey": false,
7852
+          "notNull": false,
7853
+          "autoIncrement": false,
7854
+          "defaultValue": "",
7855
+          "hideInGraph": false,
7856
+          "refDict": "",
7857
+          "extProps": {},
7858
+          "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
7859
+          "id": "6FD54E7F-E054-403B-83AB-9309AE4B2B72"
7860
+        },
7861
+        {
7862
+          "defKey": "status",
7863
+          "defName": "状态",
7864
+          "comment": "",
7865
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7866
+          "type": "",
7867
+          "len": "",
7868
+          "scale": "",
7869
+          "primaryKey": false,
7870
+          "notNull": false,
7871
+          "autoIncrement": false,
7872
+          "defaultValue": "1",
7873
+          "hideInGraph": true,
7874
+          "refDict": "",
7875
+          "uiHint": "",
7876
+          "id": "7511A036-EC9A-4F2A-8FC9-0D57EAA63575"
7877
+        },
7878
+        {
7879
+          "defKey": "create_user",
7880
+          "defName": "创建人",
7881
+          "comment": "",
7882
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
7883
+          "type": "",
7884
+          "len": "",
7885
+          "scale": "",
7886
+          "primaryKey": false,
7887
+          "notNull": false,
7888
+          "autoIncrement": false,
7889
+          "defaultValue": "",
7890
+          "hideInGraph": true,
7891
+          "refDict": "",
7892
+          "uiHint": "",
7893
+          "id": "E4777FE2-3A60-41E1-A747-E489123A38DC"
7894
+        },
7895
+        {
7896
+          "defKey": "create_date",
7897
+          "defName": "创建时间",
7898
+          "comment": "",
7899
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
7900
+          "type": "",
7901
+          "len": "",
7902
+          "scale": "",
7903
+          "primaryKey": false,
7904
+          "notNull": false,
7905
+          "autoIncrement": false,
7906
+          "defaultValue": "CURRENT_TIMESTAMP",
7907
+          "hideInGraph": true,
7908
+          "refDict": "",
7909
+          "uiHint": "",
7910
+          "id": "AE79E742-46BD-441E-BC4E-6151E86BDD74"
7911
+        }
7912
+      ],
7913
+      "correlations": [],
7914
+      "indexes": []
7665 7915
     }
7666 7916
   ],
7667 7917
   "views": [],
@@ -8088,7 +8338,8 @@
8088 8338
         "507794C4-11E9-4924-AEC5-368BC6E03FD7",
8089 8339
         "3B58B8CA-AF26-40FE-907A-A34523419478",
8090 8340
         "B20E272F-91EB-4BAC-AAD6-AF99D517E44D",
8091
-        "EF3D4E17-6CE0-4944-B1DC-40280B2B689F"
8341
+        "EF3D4E17-6CE0-4944-B1DC-40280B2B689F",
8342
+        "5BEE62BD-F04C-49E8-A65A-32A11B093E7B"
8092 8343
       ],
8093 8344
       "refViews": [],
8094 8345
       "refDiagrams": [],

db/.back_文明创办/文明创办-backup-20221228082808.pdma.json → db/.back_文明创办/文明创办-backup-20221229162556.pdma.json Visa fil

@@ -4,7 +4,7 @@
4 4
   "avatar": "",
5 5
   "version": "4.2.0",
6 6
   "createdTime": "2022-12-12 09:36:12",
7
-  "updatedTime": "2022-12-27 17:22:42",
7
+  "updatedTime": "2022-12-28 18:37:52",
8 8
   "dbConns": [],
9 9
   "profile": {
10 10
     "default": {
@@ -3486,6 +3486,23 @@
3486 3486
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
3487 3487
           "id": "75B83E1E-5827-4CCC-AC30-31982D1AEDC3"
3488 3488
         },
3489
+        {
3490
+          "defKey": "loc_name",
3491
+          "defName": "点位名称",
3492
+          "comment": "",
3493
+          "type": "",
3494
+          "len": "",
3495
+          "scale": "",
3496
+          "primaryKey": false,
3497
+          "notNull": false,
3498
+          "autoIncrement": false,
3499
+          "defaultValue": "",
3500
+          "hideInGraph": false,
3501
+          "refDict": "",
3502
+          "extProps": {},
3503
+          "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
3504
+          "id": "EA018F17-8983-4C52-BCE7-F6AEEBCECFB1"
3505
+        },
3489 3506
         {
3490 3507
           "defKey": "location",
3491 3508
           "defName": "定位",
@@ -3675,7 +3692,7 @@
3675 3692
           "id": "FA8794DB-E947-480D-A0D5-6B7E02297481"
3676 3693
         },
3677 3694
         {
3678
-          "defKey": "create_person",
3695
+          "defKey": "create_user",
3679 3696
           "defName": "上报人",
3680 3697
           "comment": "",
3681 3698
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
@@ -3692,7 +3709,7 @@
3692 3709
           "id": "0499A27B-0D48-4070-B1DB-1D42293B23F1"
3693 3710
         },
3694 3711
         {
3695
-          "defKey": "person_name",
3712
+          "defKey": "user_name",
3696 3713
           "defName": "上报人名称",
3697 3714
           "comment": "",
3698 3715
           "type": "",
@@ -3709,7 +3726,7 @@
3709 3726
           "id": "CF1082C9-7547-4850-800D-BA7CF84CE1CD"
3710 3727
         },
3711 3728
         {
3712
-          "defKey": "person_duty",
3729
+          "defKey": "user_duty",
3713 3730
           "defName": "上报人身份",
3714 3731
           "comment": "",
3715 3732
           "type": "",
@@ -4349,7 +4366,7 @@
4349 4366
           "hideInGraph": false,
4350 4367
           "refDict": "",
4351 4368
           "extProps": {},
4352
-          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
4369
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
4353 4370
           "id": "C7F06F89-4FA3-48D2-A861-B008B8C81251"
4354 4371
         },
4355 4372
         {
@@ -4450,7 +4467,7 @@
4450 4467
           "defaultValue": "",
4451 4468
           "hideInGraph": false,
4452 4469
           "refDict": "",
4453
-          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
4470
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
4454 4471
           "id": "DACC10C6-21E8-4483-9C65-DFC7EB3B960A",
4455 4472
           "uiHint": ""
4456 4473
         },
@@ -7571,7 +7588,7 @@
7571 7588
           "hideInGraph": false,
7572 7589
           "refDict": "",
7573 7590
           "extProps": {},
7574
-          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
7591
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
7575 7592
           "id": "3B95BAE1-E231-4E2D-8451-24B6B2DE82AA"
7576 7593
         },
7577 7594
         {
@@ -7662,6 +7679,239 @@
7662 7679
       ],
7663 7680
       "correlations": [],
7664 7681
       "indexes": []
7682
+    },
7683
+    {
7684
+      "id": "5BEE62BD-F04C-49E8-A65A-32A11B093E7B",
7685
+      "env": {
7686
+        "base": {
7687
+          "nameSpace": "com.example.civilizedcity",
7688
+          "codeRoot": "TaOrgIssue"
7689
+        },
7690
+        "template": {
7691
+          "JavaMybatisPlus": {
7692
+            "Controller": {
7693
+              "suffix": "controller/{{=it.codeRoot}}Controller.java",
7694
+              "enable": true
7695
+            },
7696
+            "Service": {
7697
+              "suffix": "service/{{=it.codeRoot}}Service.java",
7698
+              "enable": true
7699
+            },
7700
+            "ServiceImpl": {
7701
+              "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
7702
+              "enable": true
7703
+            },
7704
+            "Mapper": {
7705
+              "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
7706
+              "enable": true
7707
+            },
7708
+            "Mapper.xml": {
7709
+              "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
7710
+              "enable": true
7711
+            },
7712
+            "Entity": {
7713
+              "suffix": "entity/{{=it.codeRoot}}.java",
7714
+              "enable": true
7715
+            }
7716
+          }
7717
+        },
7718
+        "custom": {}
7719
+      },
7720
+      "defKey": "ta_org_issue",
7721
+      "defName": "单位问题单",
7722
+      "comment": "",
7723
+      "properties": {},
7724
+      "nameTemplate": "{defKey}[{defName}]",
7725
+      "notes": {},
7726
+      "headers": [
7727
+        {
7728
+          "refKey": "hideInGraph",
7729
+          "hideInGraph": true
7730
+        },
7731
+        {
7732
+          "refKey": "defKey",
7733
+          "hideInGraph": false
7734
+        },
7735
+        {
7736
+          "refKey": "defName",
7737
+          "hideInGraph": false
7738
+        },
7739
+        {
7740
+          "refKey": "primaryKey",
7741
+          "hideInGraph": false
7742
+        },
7743
+        {
7744
+          "refKey": "notNull",
7745
+          "hideInGraph": true
7746
+        },
7747
+        {
7748
+          "refKey": "autoIncrement",
7749
+          "hideInGraph": true
7750
+        },
7751
+        {
7752
+          "refKey": "domain",
7753
+          "hideInGraph": true
7754
+        },
7755
+        {
7756
+          "refKey": "type",
7757
+          "hideInGraph": false
7758
+        },
7759
+        {
7760
+          "refKey": "len",
7761
+          "hideInGraph": false
7762
+        },
7763
+        {
7764
+          "refKey": "scale",
7765
+          "hideInGraph": false
7766
+        },
7767
+        {
7768
+          "refKey": "comment",
7769
+          "hideInGraph": true
7770
+        },
7771
+        {
7772
+          "refKey": "refDict",
7773
+          "hideInGraph": true
7774
+        },
7775
+        {
7776
+          "refKey": "defaultValue",
7777
+          "hideInGraph": true
7778
+        },
7779
+        {
7780
+          "refKey": "isStandard",
7781
+          "hideInGraph": false
7782
+        },
7783
+        {
7784
+          "refKey": "uiHint",
7785
+          "hideInGraph": true
7786
+        },
7787
+        {
7788
+          "refKey": "extProps",
7789
+          "hideInGraph": true
7790
+        }
7791
+      ],
7792
+      "fields": [
7793
+        {
7794
+          "defKey": "org_issue_id",
7795
+          "defName": "单位问题单ID",
7796
+          "comment": "",
7797
+          "type": "",
7798
+          "len": "",
7799
+          "scale": "",
7800
+          "primaryKey": true,
7801
+          "notNull": true,
7802
+          "autoIncrement": true,
7803
+          "defaultValue": "",
7804
+          "hideInGraph": true,
7805
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7806
+          "refDict": "",
7807
+          "uiHint": "",
7808
+          "id": "AA2134D5-EEC2-4B33-9895-0F4CAC686CD7"
7809
+        },
7810
+        {
7811
+          "defKey": "issue_id",
7812
+          "defName": "问题单ID",
7813
+          "comment": "",
7814
+          "type": "",
7815
+          "len": "",
7816
+          "scale": "",
7817
+          "primaryKey": false,
7818
+          "notNull": false,
7819
+          "autoIncrement": false,
7820
+          "defaultValue": "",
7821
+          "hideInGraph": false,
7822
+          "refDict": "",
7823
+          "extProps": {},
7824
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7825
+          "id": "379DCFDC-F70C-4829-B4D5-E2C8212BB3CC"
7826
+        },
7827
+        {
7828
+          "defKey": "org_id",
7829
+          "defName": "机构ID",
7830
+          "comment": "",
7831
+          "type": "",
7832
+          "len": "",
7833
+          "scale": "",
7834
+          "primaryKey": false,
7835
+          "notNull": false,
7836
+          "autoIncrement": false,
7837
+          "defaultValue": "",
7838
+          "hideInGraph": false,
7839
+          "refDict": "",
7840
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
7841
+          "id": "649F17F6-D2C1-4AAD-B913-ED39F26E4AF4",
7842
+          "uiHint": ""
7843
+        },
7844
+        {
7845
+          "defKey": "process_status",
7846
+          "defName": "业务单状态",
7847
+          "comment": "",
7848
+          "type": "",
7849
+          "len": "",
7850
+          "scale": "",
7851
+          "primaryKey": false,
7852
+          "notNull": false,
7853
+          "autoIncrement": false,
7854
+          "defaultValue": "",
7855
+          "hideInGraph": false,
7856
+          "refDict": "",
7857
+          "extProps": {},
7858
+          "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
7859
+          "id": "6FD54E7F-E054-403B-83AB-9309AE4B2B72"
7860
+        },
7861
+        {
7862
+          "defKey": "status",
7863
+          "defName": "状态",
7864
+          "comment": "",
7865
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7866
+          "type": "",
7867
+          "len": "",
7868
+          "scale": "",
7869
+          "primaryKey": false,
7870
+          "notNull": false,
7871
+          "autoIncrement": false,
7872
+          "defaultValue": "1",
7873
+          "hideInGraph": true,
7874
+          "refDict": "",
7875
+          "uiHint": "",
7876
+          "id": "7511A036-EC9A-4F2A-8FC9-0D57EAA63575"
7877
+        },
7878
+        {
7879
+          "defKey": "create_user",
7880
+          "defName": "创建人",
7881
+          "comment": "",
7882
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
7883
+          "type": "",
7884
+          "len": "",
7885
+          "scale": "",
7886
+          "primaryKey": false,
7887
+          "notNull": false,
7888
+          "autoIncrement": false,
7889
+          "defaultValue": "",
7890
+          "hideInGraph": true,
7891
+          "refDict": "",
7892
+          "uiHint": "",
7893
+          "id": "E4777FE2-3A60-41E1-A747-E489123A38DC"
7894
+        },
7895
+        {
7896
+          "defKey": "create_date",
7897
+          "defName": "创建时间",
7898
+          "comment": "",
7899
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
7900
+          "type": "",
7901
+          "len": "",
7902
+          "scale": "",
7903
+          "primaryKey": false,
7904
+          "notNull": false,
7905
+          "autoIncrement": false,
7906
+          "defaultValue": "CURRENT_TIMESTAMP",
7907
+          "hideInGraph": true,
7908
+          "refDict": "",
7909
+          "uiHint": "",
7910
+          "id": "AE79E742-46BD-441E-BC4E-6151E86BDD74"
7911
+        }
7912
+      ],
7913
+      "correlations": [],
7914
+      "indexes": []
7665 7915
     }
7666 7916
   ],
7667 7917
   "views": [],
@@ -8088,7 +8338,8 @@
8088 8338
         "507794C4-11E9-4924-AEC5-368BC6E03FD7",
8089 8339
         "3B58B8CA-AF26-40FE-907A-A34523419478",
8090 8340
         "B20E272F-91EB-4BAC-AAD6-AF99D517E44D",
8091
-        "EF3D4E17-6CE0-4944-B1DC-40280B2B689F"
8341
+        "EF3D4E17-6CE0-4944-B1DC-40280B2B689F",
8342
+        "5BEE62BD-F04C-49E8-A65A-32A11B093E7B"
8092 8343
       ],
8093 8344
       "refViews": [],
8094 8345
       "refDiagrams": [],

+ 275
- 7
db/文明创办.pdma.json Visa fil

@@ -4,7 +4,7 @@
4 4
   "avatar": "",
5 5
   "version": "4.2.0",
6 6
   "createdTime": "2022-12-12 09:36:12",
7
-  "updatedTime": "2022-12-28 08:28:08",
7
+  "updatedTime": "2022-12-29 16:25:56",
8 8
   "dbConns": [],
9 9
   "profile": {
10 10
     "default": {
@@ -3486,6 +3486,23 @@
3486 3486
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
3487 3487
           "id": "75B83E1E-5827-4CCC-AC30-31982D1AEDC3"
3488 3488
         },
3489
+        {
3490
+          "defKey": "loc_name",
3491
+          "defName": "点位名称",
3492
+          "comment": "",
3493
+          "type": "",
3494
+          "len": "",
3495
+          "scale": "",
3496
+          "primaryKey": false,
3497
+          "notNull": false,
3498
+          "autoIncrement": false,
3499
+          "defaultValue": "",
3500
+          "hideInGraph": false,
3501
+          "refDict": "",
3502
+          "extProps": {},
3503
+          "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
3504
+          "id": "EA018F17-8983-4C52-BCE7-F6AEEBCECFB1"
3505
+        },
3489 3506
         {
3490 3507
           "defKey": "location",
3491 3508
           "defName": "定位",
@@ -3675,7 +3692,7 @@
3675 3692
           "id": "FA8794DB-E947-480D-A0D5-6B7E02297481"
3676 3693
         },
3677 3694
         {
3678
-          "defKey": "create_person",
3695
+          "defKey": "create_user",
3679 3696
           "defName": "上报人",
3680 3697
           "comment": "",
3681 3698
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
@@ -3692,7 +3709,7 @@
3692 3709
           "id": "0499A27B-0D48-4070-B1DB-1D42293B23F1"
3693 3710
         },
3694 3711
         {
3695
-          "defKey": "person_name",
3712
+          "defKey": "user_name",
3696 3713
           "defName": "上报人名称",
3697 3714
           "comment": "",
3698 3715
           "type": "",
@@ -3709,7 +3726,7 @@
3709 3726
           "id": "CF1082C9-7547-4850-800D-BA7CF84CE1CD"
3710 3727
         },
3711 3728
         {
3712
-          "defKey": "person_duty",
3729
+          "defKey": "user_duty",
3713 3730
           "defName": "上报人身份",
3714 3731
           "comment": "",
3715 3732
           "type": "",
@@ -4349,7 +4366,7 @@
4349 4366
           "hideInGraph": false,
4350 4367
           "refDict": "",
4351 4368
           "extProps": {},
4352
-          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
4369
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
4353 4370
           "id": "C7F06F89-4FA3-48D2-A861-B008B8C81251"
4354 4371
         },
4355 4372
         {
@@ -4450,7 +4467,7 @@
4450 4467
           "defaultValue": "",
4451 4468
           "hideInGraph": false,
4452 4469
           "refDict": "",
4453
-          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
4470
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
4454 4471
           "id": "DACC10C6-21E8-4483-9C65-DFC7EB3B960A",
4455 4472
           "uiHint": ""
4456 4473
         },
@@ -7662,6 +7679,256 @@
7662 7679
       ],
7663 7680
       "correlations": [],
7664 7681
       "indexes": []
7682
+    },
7683
+    {
7684
+      "id": "5BEE62BD-F04C-49E8-A65A-32A11B093E7B",
7685
+      "env": {
7686
+        "base": {
7687
+          "nameSpace": "com.example.civilizedcity",
7688
+          "codeRoot": "TaOrgIssue"
7689
+        },
7690
+        "template": {
7691
+          "JavaMybatisPlus": {
7692
+            "Controller": {
7693
+              "suffix": "controller/{{=it.codeRoot}}Controller.java",
7694
+              "enable": true
7695
+            },
7696
+            "Service": {
7697
+              "suffix": "service/{{=it.codeRoot}}Service.java",
7698
+              "enable": true
7699
+            },
7700
+            "ServiceImpl": {
7701
+              "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
7702
+              "enable": true
7703
+            },
7704
+            "Mapper": {
7705
+              "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
7706
+              "enable": true
7707
+            },
7708
+            "Mapper.xml": {
7709
+              "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
7710
+              "enable": true
7711
+            },
7712
+            "Entity": {
7713
+              "suffix": "entity/{{=it.codeRoot}}.java",
7714
+              "enable": true
7715
+            }
7716
+          }
7717
+        },
7718
+        "custom": {}
7719
+      },
7720
+      "defKey": "ta_org_issue",
7721
+      "defName": "单位问题单",
7722
+      "comment": "",
7723
+      "properties": {},
7724
+      "nameTemplate": "{defKey}[{defName}]",
7725
+      "notes": {},
7726
+      "headers": [
7727
+        {
7728
+          "refKey": "hideInGraph",
7729
+          "hideInGraph": true
7730
+        },
7731
+        {
7732
+          "refKey": "defKey",
7733
+          "hideInGraph": false
7734
+        },
7735
+        {
7736
+          "refKey": "defName",
7737
+          "hideInGraph": false
7738
+        },
7739
+        {
7740
+          "refKey": "primaryKey",
7741
+          "hideInGraph": false
7742
+        },
7743
+        {
7744
+          "refKey": "notNull",
7745
+          "hideInGraph": true
7746
+        },
7747
+        {
7748
+          "refKey": "autoIncrement",
7749
+          "hideInGraph": true
7750
+        },
7751
+        {
7752
+          "refKey": "domain",
7753
+          "hideInGraph": true
7754
+        },
7755
+        {
7756
+          "refKey": "type",
7757
+          "hideInGraph": false
7758
+        },
7759
+        {
7760
+          "refKey": "len",
7761
+          "hideInGraph": false
7762
+        },
7763
+        {
7764
+          "refKey": "scale",
7765
+          "hideInGraph": false
7766
+        },
7767
+        {
7768
+          "refKey": "comment",
7769
+          "hideInGraph": true
7770
+        },
7771
+        {
7772
+          "refKey": "refDict",
7773
+          "hideInGraph": true
7774
+        },
7775
+        {
7776
+          "refKey": "defaultValue",
7777
+          "hideInGraph": true
7778
+        },
7779
+        {
7780
+          "refKey": "isStandard",
7781
+          "hideInGraph": false
7782
+        },
7783
+        {
7784
+          "refKey": "uiHint",
7785
+          "hideInGraph": true
7786
+        },
7787
+        {
7788
+          "refKey": "extProps",
7789
+          "hideInGraph": true
7790
+        }
7791
+      ],
7792
+      "fields": [
7793
+        {
7794
+          "defKey": "org_issue_id",
7795
+          "defName": "单位问题单ID",
7796
+          "comment": "",
7797
+          "type": "",
7798
+          "len": "",
7799
+          "scale": "",
7800
+          "primaryKey": true,
7801
+          "notNull": true,
7802
+          "autoIncrement": true,
7803
+          "defaultValue": "",
7804
+          "hideInGraph": true,
7805
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7806
+          "refDict": "",
7807
+          "uiHint": "",
7808
+          "id": "AA2134D5-EEC2-4B33-9895-0F4CAC686CD7"
7809
+        },
7810
+        {
7811
+          "defKey": "issue_id",
7812
+          "defName": "问题单ID",
7813
+          "comment": "",
7814
+          "type": "",
7815
+          "len": "",
7816
+          "scale": "",
7817
+          "primaryKey": false,
7818
+          "notNull": false,
7819
+          "autoIncrement": false,
7820
+          "defaultValue": "",
7821
+          "hideInGraph": false,
7822
+          "refDict": "",
7823
+          "extProps": {},
7824
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7825
+          "id": "379DCFDC-F70C-4829-B4D5-E2C8212BB3CC"
7826
+        },
7827
+        {
7828
+          "defKey": "org_id",
7829
+          "defName": "机构ID",
7830
+          "comment": "",
7831
+          "type": "",
7832
+          "len": "",
7833
+          "scale": "",
7834
+          "primaryKey": false,
7835
+          "notNull": false,
7836
+          "autoIncrement": false,
7837
+          "defaultValue": "",
7838
+          "hideInGraph": false,
7839
+          "refDict": "",
7840
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
7841
+          "id": "649F17F6-D2C1-4AAD-B913-ED39F26E4AF4",
7842
+          "uiHint": ""
7843
+        },
7844
+        {
7845
+          "defKey": "process_status",
7846
+          "defName": "业务单状态",
7847
+          "comment": "",
7848
+          "type": "",
7849
+          "len": "",
7850
+          "scale": "",
7851
+          "primaryKey": false,
7852
+          "notNull": false,
7853
+          "autoIncrement": false,
7854
+          "defaultValue": "",
7855
+          "hideInGraph": false,
7856
+          "refDict": "",
7857
+          "extProps": {},
7858
+          "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
7859
+          "id": "6FD54E7F-E054-403B-83AB-9309AE4B2B72"
7860
+        },
7861
+        {
7862
+          "defKey": "result",
7863
+          "defName": "处理结果",
7864
+          "comment": "",
7865
+          "type": "TEXT",
7866
+          "len": 0,
7867
+          "scale": "",
7868
+          "primaryKey": false,
7869
+          "notNull": false,
7870
+          "autoIncrement": false,
7871
+          "defaultValue": "",
7872
+          "hideInGraph": false,
7873
+          "refDict": "",
7874
+          "extProps": {},
7875
+          "domain": "",
7876
+          "id": "A9868395-4BC7-464D-8BA5-07EFEB6CDF6E"
7877
+        },
7878
+        {
7879
+          "defKey": "status",
7880
+          "defName": "状态",
7881
+          "comment": "",
7882
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
7883
+          "type": "",
7884
+          "len": "",
7885
+          "scale": "",
7886
+          "primaryKey": false,
7887
+          "notNull": false,
7888
+          "autoIncrement": false,
7889
+          "defaultValue": "1",
7890
+          "hideInGraph": true,
7891
+          "refDict": "",
7892
+          "uiHint": "",
7893
+          "id": "7511A036-EC9A-4F2A-8FC9-0D57EAA63575"
7894
+        },
7895
+        {
7896
+          "defKey": "create_user",
7897
+          "defName": "创建人",
7898
+          "comment": "",
7899
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
7900
+          "type": "",
7901
+          "len": "",
7902
+          "scale": "",
7903
+          "primaryKey": false,
7904
+          "notNull": false,
7905
+          "autoIncrement": false,
7906
+          "defaultValue": "",
7907
+          "hideInGraph": true,
7908
+          "refDict": "",
7909
+          "uiHint": "",
7910
+          "id": "E4777FE2-3A60-41E1-A747-E489123A38DC"
7911
+        },
7912
+        {
7913
+          "defKey": "create_date",
7914
+          "defName": "创建时间",
7915
+          "comment": "",
7916
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
7917
+          "type": "",
7918
+          "len": "",
7919
+          "scale": "",
7920
+          "primaryKey": false,
7921
+          "notNull": false,
7922
+          "autoIncrement": false,
7923
+          "defaultValue": "CURRENT_TIMESTAMP",
7924
+          "hideInGraph": true,
7925
+          "refDict": "",
7926
+          "uiHint": "",
7927
+          "id": "AE79E742-46BD-441E-BC4E-6151E86BDD74"
7928
+        }
7929
+      ],
7930
+      "correlations": [],
7931
+      "indexes": []
7665 7932
     }
7666 7933
   ],
7667 7934
   "views": [],
@@ -8088,7 +8355,8 @@
8088 8355
         "507794C4-11E9-4924-AEC5-368BC6E03FD7",
8089 8356
         "3B58B8CA-AF26-40FE-907A-A34523419478",
8090 8357
         "B20E272F-91EB-4BAC-AAD6-AF99D517E44D",
8091
-        "EF3D4E17-6CE0-4944-B1DC-40280B2B689F"
8358
+        "EF3D4E17-6CE0-4944-B1DC-40280B2B689F",
8359
+        "5BEE62BD-F04C-49E8-A65A-32A11B093E7B"
8092 8360
       ],
8093 8361
       "refViews": [],
8094 8362
       "refDiagrams": [],

+ 2
- 0
src/main/java/com/example/civilizedcity/common/Constants.java Visa fil

@@ -14,6 +14,8 @@ public class Constants {
14 14
 
15 15
     // 问题单
16 16
     public final static String ATTACH_SOURCE_ISSUE = "issue";
17
+    // 单位问题单
18
+    public final static String ATTACH_SOURCE_ORG_ISSUE = "org-issue";
17 19
 
18 20
     // 督察员上报
19 21
     public final static String ISSUE_SOURCE_INSPECTOR = "inspector";

+ 103
- 26
src/main/java/com/example/civilizedcity/controller/TaIssueController.java Visa fil

@@ -1,13 +1,16 @@
1 1
 package com.example.civilizedcity.controller;
2 2
 
3
+import cn.dev33.satoken.annotation.SaCheckPermission;
3 4
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4 5
 import com.baomidou.mybatisplus.core.metadata.IPage;
5 6
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6 7
 import com.example.civilizedcity.common.BaseController;
7 8
 import com.example.civilizedcity.common.Constants;
9
+import com.example.civilizedcity.common.DateUtils;
8 10
 import com.example.civilizedcity.common.ResponseBean;
9 11
 
10 12
 import java.time.LocalDateTime;
13
+import java.util.ArrayList;
11 14
 import java.util.List;
12 15
 
13 16
 import com.example.civilizedcity.entity.SysUser;
@@ -23,8 +26,9 @@ import org.springframework.web.bind.annotation.*;
23 26
 import com.example.civilizedcity.entity.TaIssue;
24 27
 import com.example.civilizedcity.service.TaIssueService;
25 28
 
26
- /**
29
+/**
27 30
  * 问题表;(ta_issue)表控制层
31
+ *
28 32
  * @author : http://njyunzhi.com
29 33
  * @date : 2022-12-12
30 34
  */
@@ -32,7 +36,7 @@ import com.example.civilizedcity.service.TaIssueService;
32 36
 @RestController
33 37
 @RequestMapping("/")
34 38
 public class TaIssueController extends BaseController {
35
-    
39
+
36 40
     @Autowired
37 41
     private TaIssueService taIssueService;
38 42
 
@@ -41,9 +45,9 @@ public class TaIssueController extends BaseController {
41 45
 
42 46
     @Autowired
43 47
     private TaIssueProcessService taIssueProcessService;
44
-    
45
-    /** 
46
-     * 通过ID查询单条数据 
48
+
49
+    /**
50
+     * 通过ID查询单条数据
47 51
      *
48 52
      * @param issueId 主键
49 53
      * @return 实例对象
@@ -51,33 +55,62 @@ public class TaIssueController extends BaseController {
51 55
     @ApiOperation("通过ID查询单条数据")
52 56
     @GetMapping("/taIssue/{id}")
53 57
     public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
54
-        return ResponseBean.success(taIssueService.getById(id));
58
+
59
+        TaIssue taIssue = taIssueService.getById(id);
60
+        List<TaAttach> attachList = taAttachService.getListBy(Constants.ATTACH_SOURCE_ISSUE, taIssue.getIssueId().toString());
61
+        taIssue.setAttachList(attachList);
62
+
63
+        return ResponseBean.success(taIssue);
55 64
     }
56
-    
57
-    /** 
65
+
66
+    /**
58 67
      * 分页查询
59 68
      *
60
-     * @param pageNum 当前页码
69
+     * @param pageNum  当前页码
61 70
      * @param pageSize 每页条数
62 71
      * @return 查询结果
63 72
      */
64 73
     @ApiOperation("分页查询")
65 74
     @GetMapping("/taIssue")
66
-    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
67
-                            @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception {
75
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
76
+                             @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
77
+                             @ApiParam("问题单状态") @RequestParam(value = "bizStatus", required = false) String bizStatus,
78
+                             @ApiParam("我的") @RequestParam(value = "mine", defaultValue = "false") Boolean mine) throws Exception {
68 79
 
69 80
         SysUser sysUser = currentUser();
70 81
         String orgId = Constants.ROOT_ORG.equals(sysUser.getOrgId()) ? null : sysUser.getOrgId();
71 82
 
72 83
         IPage<TaIssue> pg = new Page<>(pageNum, pageSize);
73
-        // QueryWrapper<TaIssue> queryWrapper = new QueryWrapper<>();
74
-        // queryWrapper.orderByDesc("create_date");
75
-        IPage<TaIssue> result = taIssueService.getPageBy(pg, orgId);
76
-        
84
+        QueryWrapper<TaIssue> queryWrapper = new QueryWrapper<>();
85
+
86
+        if (Constants.PROCESS_START.equals(bizStatus)) {
87
+            // 待交办
88
+            queryWrapper.eq("process_node", bizStatus);
89
+        } else if (Constants.PROCESS_ASSIGNED.equals(bizStatus)) {
90
+            // 已交办
91
+            queryWrapper.eq("process_node", bizStatus);
92
+        } else if (Constants.PROCESS_END.equals(bizStatus)) {
93
+            // 已办结
94
+            queryWrapper.eq("process_node", bizStatus);
95
+        } else if ("expired".equals(bizStatus)) {
96
+            // 已逾期
97
+            queryWrapper.ne("process_node", Constants.PROCESS_END);
98
+            queryWrapper.le("expire_date", DateUtils.today());
99
+        } else if ("reject".equals(bizStatus)) {
100
+            // 已打回
101
+            queryWrapper.ne("process_node", Constants.PROCESS_END);
102
+            queryWrapper.eq("process_status", Constants.PROCESS_STATUS_REJECT);
103
+        }
104
+
105
+        queryWrapper.eq(mine, "create_user", sysUser.getUserId());
106
+        queryWrapper.gt("status", Constants.STATUS_DELETE);
107
+        queryWrapper.orderByDesc("create_date");
108
+        IPage<TaIssue> result = taIssueService.page(pg, queryWrapper);
109
+
77 110
         return ResponseBean.success(result);
78 111
     }
79
-    
80
-    /** 
112
+
113
+    /**
81 114
      * 新增数据
82 115
      *
83 116
      * @param taIssue 实例对象
@@ -95,8 +128,8 @@ public class TaIssueController extends BaseController {
95 128
         taIssue.setProcessNum(1);
96 129
         taIssue.setSourceType(Constants.ISSUE_SOURCE_INSPECTOR);
97 130
         taIssue.setStatus(Constants.STATUS_NORMAL);
98
-        taIssue.setCreatePerson(user.getUserId());
99
-        taIssue.setPersonName(user.getName());
131
+        taIssue.setCreateUser(user.getUserId());
132
+        taIssue.setUserName(user.getName());
100 133
         taIssue.setCreateDate(LocalDateTime.now());
101 134
         taIssueService.save(taIssue);
102 135
 
@@ -128,8 +161,8 @@ public class TaIssueController extends BaseController {
128 161
 
129 162
         return ResponseBean.success(taIssue);
130 163
     }
131
-    
132
-    /** 
164
+
165
+    /**
133 166
      * 更新数据
134 167
      *
135 168
      * @param taIssue 实例对象
@@ -138,21 +171,65 @@ public class TaIssueController extends BaseController {
138 171
     @ApiOperation("更新数据")
139 172
     @PutMapping("/taIssue/{id}")
140 173
     public ResponseBean edit(@ApiParam("对象实体") @RequestBody TaIssue taIssue,
141
-                            @ApiParam("对象ID") @PathVariable Integer id ) throws Exception {
174
+                             @ApiParam("对象ID") @PathVariable Integer id) throws Exception {
175
+
176
+        TaIssue origin = taIssueService.getById(id);
177
+        if (null == origin || origin.getStatus() == Constants.STATUS_DELETE) {
178
+            return ResponseBean.error("未找到原始问题单");
179
+        }
180
+
181
+        List<TaAttach> attachList = taIssue.getAttachList();
182
+        if (null == attachList || attachList.size() == 0) {
183
+            return ResponseBean.error("拍照或者视频没有上传");
184
+        }
185
+
186
+        taIssue.setIssueId(id);
142 187
         taIssueService.updateById(taIssue);
188
+
189
+        // 保存文件
190
+        List<Integer> idList = new ArrayList<>();
191
+        for (TaAttach item : attachList) {
192
+            item.setOwnerType(Constants.ATTACH_SOURCE_ISSUE);
193
+            item.setOwnerId(taIssue.getIssueId().toString());
194
+            item.setStatus(Constants.STATUS_NORMAL);
195
+            item.setCreateDate(LocalDateTime.now());
196
+
197
+            if (null == item.getAttachId()) {
198
+                taAttachService.save(item);
199
+            } else {
200
+                taAttachService.updateById(item);
201
+            }
202
+            idList.add(item.getAttachId());
203
+        }
204
+
205
+        // 删除部分文件
206
+        taAttachService.deleteNotIn(idList, Constants.ATTACH_SOURCE_ISSUE, id.toString());
207
+
143 208
         return ResponseBean.success(taIssue);
144 209
     }
145
-    
146
-    /** 
210
+
211
+    /**
147 212
      * 通过主键删除数据
148 213
      *
149 214
      * @param issueId 主键
150 215
      * @return 是否成功
151 216
      */
217
+    @SaCheckPermission("manager")
152 218
     @ApiOperation("通过主键删除数据")
153 219
     @DeleteMapping("/taIssue/{id}")
154
-    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
155
-        taIssueService.removeLogicById(id);
220
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
221
+//        taIssueService.removeLogicById(id);
222
+
223
+        TaIssue taIssue = taIssueService.getById(id);
224
+        if (null == taIssue || taIssue.getStatus() == Constants.STATUS_DELETE) {
225
+            return ResponseBean.error("未找到问题");
226
+        }
227
+
228
+        taIssue.setUpdateUser(currentUser().getUserId());
229
+        taIssue.setUpdateDate(LocalDateTime.now());
230
+        taIssue.setStatus(Constants.STATUS_DELETE);
231
+
232
+        taIssueService.updateById(taIssue);
156 233
         return ResponseBean.success("success");
157 234
     }
158 235
 }

+ 28
- 6
src/main/java/com/example/civilizedcity/controller/TaIssueProcessController.java Visa fil

@@ -78,10 +78,6 @@ public class TaIssueProcessController extends BaseController {
78 78
             throw new Exception("找不到对应问题");
79 79
         }
80 80
 
81
-        if (null == taIssueProcess.getPrevProcess()) {
82
-            throw new Exception("未找到上级流程");
83
-        }
84
-
85 81
         if (Constants.PROCESS_END.equals(taIssue.getProcessNode())) {
86 82
             throw new Exception("当前问题已办结");
87 83
         }
@@ -103,7 +99,7 @@ public class TaIssueProcessController extends BaseController {
103 99
 
104 100
     private void updateIssue(TaIssue taIssue, TaIssueProcess taIssueProcess) {
105 101
         taIssue.setProcessNode(taIssueProcess.getProcessNode());
106
-        taIssue.setProcessStatus(taIssueProcess.getProcessNode());
102
+        taIssue.setProcessStatus(taIssueProcess.getProcessStatus());
107 103
         taIssueService.updateById(taIssue);
108 104
     }
109 105
     
@@ -174,6 +170,32 @@ public class TaIssueProcessController extends BaseController {
174 170
          return ResponseBean.success(taIssueProcess);
175 171
      }
176 172
 
173
+     /**
174
+      * 驳回
175
+      *
176
+      * @param taIssueProcess 实例对象
177
+      * @return 实例对象
178
+      */
179
+     @SaCheckPermission("org_user")
180
+     @ApiOperation("驳回")
181
+     @PostMapping("/taIssueProcess/reject")
182
+     public ResponseBean reject(@ApiParam("对象实体") @RequestBody TaIssueProcess taIssueProcess) throws Exception {
183
+         TaIssue taIssue = checkIssue(taIssueProcess);
184
+
185
+         if (StringUtils.isEmpty(taIssueProcess.getProcessResult())) {
186
+             return ResponseBean.error("请填写未驳回原因");
187
+         }
188
+
189
+         updateUser(taIssueProcess, currentUser());
190
+         taIssueProcess.setProcessNode(Constants.PROCESS_ASSIGNED);
191
+         taIssueProcess.setProcessStatus(Constants.PROCESS_STATUS_REJECT);
192
+         taIssueProcessService.save(taIssueProcess);
193
+
194
+         updateIssue(taIssue, taIssueProcess);
195
+
196
+         return ResponseBean.success(taIssueProcess);
197
+     }
198
+
177 199
      /**
178 200
       * 单位驳回
179 201
       *
@@ -183,7 +205,7 @@ public class TaIssueProcessController extends BaseController {
183 205
      @SaCheckPermission("org_user")
184 206
      @ApiOperation("单位驳回")
185 207
      @PostMapping("/taIssueProcess/org/reject")
186
-     public ResponseBean reject(@ApiParam("对象实体") @RequestBody TaIssueProcess taIssueProcess) throws Exception {
208
+     public ResponseBean orgReject(@ApiParam("对象实体") @RequestBody TaIssueProcess taIssueProcess) throws Exception {
187 209
          TaIssue taIssue = checkIssue(taIssueProcess);
188 210
 
189 211
          TaIssueProcess prevProcess = taIssueProcessService.getById(taIssueProcess.getPrevProcess());

+ 133
- 0
src/main/java/com/example/civilizedcity/controller/TaOrgIssueController.java Visa fil

@@ -0,0 +1,133 @@
1
+package com.example.civilizedcity.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.example.civilizedcity.common.BaseController;
7
+import com.example.civilizedcity.common.Constants;
8
+import com.example.civilizedcity.common.ResponseBean;
9
+import java.util.List;
10
+
11
+import com.example.civilizedcity.entity.SysUser;
12
+import com.example.civilizedcity.entity.TaAttach;
13
+import com.example.civilizedcity.entity.TaIssue;
14
+import com.example.civilizedcity.service.TaAttachService;
15
+import io.swagger.annotations.Api;
16
+import io.swagger.annotations.ApiOperation;
17
+import io.swagger.annotations.ApiParam;
18
+import org.springframework.beans.factory.annotation.Autowired;
19
+import org.springframework.web.bind.annotation.*;
20
+import com.example.civilizedcity.entity.TaOrgIssue;
21
+import com.example.civilizedcity.service.TaOrgIssueService;
22
+
23
+ /**
24
+ * 单位问题单;(ta_org_issue)表控制层
25
+ * @author : http://njyunzhi.com
26
+ * @date : 2022-12-28
27
+ */
28
+@Api(tags = "单位问题单对象功能接口")
29
+@RestController
30
+@RequestMapping("/")
31
+public class TaOrgIssueController extends BaseController {
32
+    
33
+    @Autowired
34
+    private TaOrgIssueService taOrgIssueService;
35
+
36
+    @Autowired
37
+    private TaAttachService taAttachService;
38
+    
39
+    /** 
40
+     * 通过ID查询单条数据 
41
+     *
42
+     * @param orgIssueId 主键
43
+     * @return 实例对象
44
+     */
45
+    @ApiOperation("通过ID查询单条数据")
46
+    @GetMapping("/taOrgIssue/{id}")
47
+    public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
48
+        return ResponseBean.success(taOrgIssueService.getById(id));
49
+    }
50
+     /**
51
+      * 通过ISSUE_ID查询单条数据
52
+      *
53
+      * @param issueId 主键
54
+      * @return 实例对象
55
+      */
56
+     @ApiOperation("通过ISSUE_ID查询单条数据")
57
+     @GetMapping("/taIssue/{issueId}/orgIssue")
58
+     public ResponseBean queryByIssueId(@ApiParam("对象ID") @PathVariable Integer issueId) throws Exception {
59
+
60
+         QueryWrapper<TaOrgIssue> queryWrapper = new QueryWrapper<>();
61
+         queryWrapper.eq("issue_id", issueId);
62
+         queryWrapper.gt("status", Constants.STATUS_DELETE);
63
+
64
+         TaOrgIssue taOrgIssue = taOrgIssueService.getOne(queryWrapper);
65
+         if (null != taOrgIssue) {
66
+             List<TaAttach> attachList = taAttachService.getListBy(Constants.ATTACH_SOURCE_ORG_ISSUE, taOrgIssue.getOrgIssueId().toString());
67
+             taOrgIssue.setAttachList(attachList);
68
+         }
69
+
70
+         return ResponseBean.success(taOrgIssue);
71
+     }
72
+    
73
+    /** 
74
+     * 分页查询
75
+     *
76
+     * @param pageNum 当前页码
77
+     * @param pageSize 每页条数
78
+     * @return 查询结果
79
+     */
80
+    @ApiOperation("分页查询")
81
+    @GetMapping("/taOrgIssue")
82
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
83
+                             @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
84
+                             @ApiParam("数据来源") @RequestParam(value ="sourceType", required = false) String sourceType,
85
+                             @ApiParam("业务状态") @RequestParam(value ="bizStatus", required = false) String bizStatus) throws Exception {
86
+        SysUser sysUser = currentUser();
87
+
88
+        IPage<TaIssue> pg = new Page<>(pageNum, pageSize);
89
+        IPage<TaIssue> result = taOrgIssueService.getIssuePageBy(pg, sysUser.getOrgId(), sourceType, bizStatus);
90
+        
91
+        return ResponseBean.success(result);
92
+    }
93
+    
94
+    /** 
95
+     * 新增数据
96
+     *
97
+     * @param taOrgIssue 实例对象
98
+     * @return 实例对象
99
+     */
100
+    @ApiOperation("新增数据")
101
+    @PostMapping("/taOrgIssue")
102
+    public ResponseBean add(@ApiParam("对象实体") @RequestBody TaOrgIssue taOrgIssue) throws Exception {
103
+        taOrgIssueService.save(taOrgIssue);
104
+        return ResponseBean.success(taOrgIssue);
105
+    }
106
+    
107
+    /** 
108
+     * 更新数据
109
+     *
110
+     * @param taOrgIssue 实例对象
111
+     * @return 实例对象
112
+     */
113
+    @ApiOperation("更新数据")
114
+    @PutMapping("/taOrgIssue/{id}")
115
+    public ResponseBean edit(@ApiParam("对象实体") @RequestBody TaOrgIssue taOrgIssue,
116
+                            @ApiParam("对象ID") @PathVariable Integer id ) throws Exception {
117
+        taOrgIssueService.updateById(taOrgIssue);
118
+        return ResponseBean.success(taOrgIssue);
119
+    }
120
+    
121
+    /** 
122
+     * 通过主键删除数据
123
+     *
124
+     * @param orgIssueId 主键
125
+     * @return 是否成功
126
+     */
127
+    @ApiOperation("通过主键删除数据")
128
+    @DeleteMapping("/taOrgIssue/{id}")
129
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
130
+        taOrgIssueService.removeLogicById(id);
131
+        return ResponseBean.success("success");
132
+    }
133
+}

+ 6
- 3
src/main/java/com/example/civilizedcity/entity/TaIssue.java Visa fil

@@ -42,6 +42,9 @@ public class TaIssue implements Serializable,Cloneable{
42 42
       /** 点位ID */
43 43
       @ApiModelProperty(name = "点位ID",notes = "")
44 44
       private String locId ;
45
+       /** 点位名称 */
46
+       @ApiModelProperty(name = "点位名称",notes = "")
47
+       private String locName ;
45 48
       /** 定位 */
46 49
       @ApiModelProperty(name = "定位",notes = "")
47 50
       private String location ;
@@ -77,13 +80,13 @@ public class TaIssue implements Serializable,Cloneable{
77 80
       private Integer status ;
78 81
       /** 上报人 */
79 82
       @ApiModelProperty(name = "上报人",notes = "")
80
-      private String createPerson ;
83
+      private String createUser ;
81 84
       /** 上报人名称 */
82 85
       @ApiModelProperty(name = "上报人名称",notes = "")
83
-      private String personName ;
86
+      private String userName ;
84 87
       /** 上报人身份 */
85 88
       @ApiModelProperty(name = "上报人身份",notes = "")
86
-      private String personDuty ;
89
+      private String userDuty ;
87 90
       /** 创建时间 */
88 91
       @ApiModelProperty(name = "创建时间",notes = "")
89 92
       private LocalDateTime createDate ;

+ 1
- 1
src/main/java/com/example/civilizedcity/entity/TaIssueProcess.java Visa fil

@@ -32,7 +32,7 @@ public class TaIssueProcess implements Serializable,Cloneable{
32 32
       private Integer issueId ;
33 33
        /** 上个流程ID */
34 34
        @ApiModelProperty(name = "上个流程ID",notes = "")
35
-       private String prevProcess ;
35
+       private Integer prevProcess ;
36 36
       /** 处理机构 */
37 37
       @ApiModelProperty(name = "处理机构",notes = "")
38 38
       private String orgId ;

+ 58
- 0
src/main/java/com/example/civilizedcity/entity/TaOrgIssue.java Visa fil

@@ -0,0 +1,58 @@
1
+package com.example.civilizedcity.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableField;
4
+import io.swagger.annotations.ApiModel;
5
+import io.swagger.annotations.ApiModelProperty;
6
+import com.baomidou.mybatisplus.annotation.IdType;
7
+import com.baomidou.mybatisplus.annotation.TableName;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import java.io.Serializable;
10
+import java.time.LocalDateTime;
11
+import java.util.List;
12
+
13
+import lombok.Data;
14
+import lombok.EqualsAndHashCode;
15
+import lombok.experimental.Accessors;
16
+
17
+ /**
18
+ * 单位问题单;
19
+ * @author : http://www.chiner.pro
20
+ * @date : 2022-12-28
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value = "单位问题单",description = "")
26
+@TableName("ta_org_issue")
27
+public class TaOrgIssue implements Serializable,Cloneable{
28
+    /** 单位问题单ID */
29
+    @ApiModelProperty(name = "单位问题单ID",notes = "")
30
+    @TableId(value = "org_issue_id", type = IdType.ASSIGN_UUID)
31
+    private Integer orgIssueId ;
32
+    /** 问题单ID */
33
+    @ApiModelProperty(name = "问题单ID",notes = "")
34
+    private Integer issueId ;
35
+    /** 机构ID */
36
+    @ApiModelProperty(name = "机构ID",notes = "")
37
+    private String orgId ;
38
+    /** 业务单状态 */
39
+    @ApiModelProperty(name = "业务单状态",notes = "")
40
+    private String processStatus ;
41
+     /** 业务单状态 */
42
+     @ApiModelProperty(name = "处理结果",notes = "")
43
+     private String result ;
44
+    /** 状态 */
45
+    @ApiModelProperty(name = "状态",notes = "")
46
+    private Integer status ;
47
+    /** 创建人 */
48
+    @ApiModelProperty(name = "创建人",notes = "")
49
+    private String createUser ;
50
+    /** 创建时间 */
51
+    @ApiModelProperty(name = "创建时间",notes = "")
52
+    private LocalDateTime createDate ;
53
+
54
+    @TableField(exist = false)
55
+    @ApiModelProperty(name = "文件列表",notes = "")
56
+    private List<TaAttach> attachList ;
57
+
58
+}

+ 6
- 3
src/main/java/com/example/civilizedcity/mapper/TaAttachMapper.java Visa fil

@@ -5,12 +5,15 @@ import org.apache.ibatis.annotations.Mapper;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 import com.example.civilizedcity.entity.TaAttach;
7 7
 
8
- /**
8
+import java.util.List;
9
+
10
+/**
9 11
  * 附件表;(ta_attach)表数据库访问层
10 12
  * @author : http://njyunzhi.com
11 13
  * @date : 2022-12-12
12 14
  */
13 15
 @Mapper
14 16
 public interface TaAttachMapper  extends BaseMapper<TaAttach>{
15
-    
16
-}
17
+
18
+     List<TaAttach> getListBy(@Param("ownerType") String ownerType,@Param("ownerId") String ownerId);
19
+ }

+ 24
- 0
src/main/java/com/example/civilizedcity/mapper/TaOrgIssueMapper.java Visa fil

@@ -0,0 +1,24 @@
1
+package com.example.civilizedcity.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.example.civilizedcity.entity.TaIssue;
6
+import org.apache.ibatis.annotations.Mapper;
7
+import org.apache.ibatis.annotations.Param;
8
+import com.example.civilizedcity.entity.TaOrgIssue;
9
+
10
+ /**
11
+ * 单位问题单;(ta_org_issue)表数据库访问层
12
+ * @author : http://njyunzhi.com
13
+ * @date : 2022-12-28
14
+ */
15
+@Mapper
16
+public interface TaOrgIssueMapper  extends BaseMapper<TaOrgIssue>{
17
+
18
+     IPage<TaIssue> getIssuePageBy(IPage<TaIssue> pg,
19
+                                   @Param("orgId") String orgId,
20
+                                   @Param("sourceType") String sourceType,
21
+                                   @Param("processNode") String processNode,
22
+                                   @Param("isExpire") Boolean isExpire
23
+     );
24
+ }

+ 7
- 2
src/main/java/com/example/civilizedcity/service/TaAttachService.java Visa fil

@@ -3,11 +3,16 @@ package com.example.civilizedcity.service;
3 3
 import com.baomidou.mybatisplus.extension.service.IService;
4 4
 import com.example.civilizedcity.entity.TaAttach;
5 5
 
6
- /**
6
+import java.util.List;
7
+
8
+/**
7 9
  * 附件表;(ta_attach)表服务接口
8 10
  * @author : http://njyunzhi.com
9 11
  * @date : 2022-12-12
10 12
  */
11 13
 public interface TaAttachService extends IBaseService<TaAttach> {
12
-    
14
+
15
+     List<TaAttach> getListBy(String ownerType, String ownerId);
16
+
17
+    boolean deleteNotIn(List<Integer> idList, String ownerType, String ownerId);
13 18
 }

+ 16
- 0
src/main/java/com/example/civilizedcity/service/TaOrgIssueService.java Visa fil

@@ -0,0 +1,16 @@
1
+package com.example.civilizedcity.service;
2
+
3
+import com.baomidou.mybatisplus.core.metadata.IPage;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.example.civilizedcity.entity.TaIssue;
6
+import com.example.civilizedcity.entity.TaOrgIssue;
7
+
8
+ /**
9
+ * 单位问题单;(ta_org_issue)表服务接口
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2022-12-28
12
+ */
13
+public interface TaOrgIssueService extends IBaseService<TaOrgIssue> {
14
+
15
+     IPage<TaIssue> getIssuePageBy(IPage<TaIssue> pg, String orgId, String sourceType, String bizStatus);
16
+ }

+ 22
- 2
src/main/java/com/example/civilizedcity/service/impl/TaAttachServiceImpl.java Visa fil

@@ -1,16 +1,36 @@
1 1
 package com.example.civilizedcity.service.impl;
2 2
 
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
3 4
 import org.springframework.beans.factory.annotation.Autowired;
4 5
 import org.springframework.stereotype.Service;
5 6
 import com.example.civilizedcity.entity.TaAttach;
6 7
 import com.example.civilizedcity.mapper.TaAttachMapper;
7 8
 import com.example.civilizedcity.service.TaAttachService;
8
- /**
9
+
10
+import java.util.List;
11
+
12
+/**
9 13
  * 附件表;(ta_attach)表服务实现类
14
+ *
10 15
  * @author : http://www.chiner.pro
11 16
  * @date : 2022-12-12
12 17
  */
13 18
 @Service
14 19
 public class TaAttachServiceImpl extends BaseServiceImpl<TaAttachMapper, TaAttach> implements TaAttachService {
15
-    
20
+
21
+    @Override
22
+    public List<TaAttach> getListBy(String ownerType, String ownerId) {
23
+        return baseMapper.getListBy(ownerType, ownerId);
24
+    }
25
+
26
+    @Override
27
+    public boolean deleteNotIn(List<Integer> idList, String ownerType, String ownerId) {
28
+
29
+        QueryWrapper<TaAttach> queryWrapper = new QueryWrapper<>();
30
+        queryWrapper.eq("owner_type", ownerType);
31
+        queryWrapper.eq("owner_id", ownerId);
32
+        queryWrapper.notIn("attach_id", idList);
33
+
34
+        return remove(queryWrapper);
35
+    }
16 36
 }

+ 37
- 0
src/main/java/com/example/civilizedcity/service/impl/TaOrgIssueServiceImpl.java Visa fil

@@ -0,0 +1,37 @@
1
+package com.example.civilizedcity.service.impl;
2
+
3
+import com.baomidou.mybatisplus.core.metadata.IPage;
4
+import com.example.civilizedcity.common.StringUtils;
5
+import com.example.civilizedcity.entity.TaIssue;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.stereotype.Service;
8
+import com.example.civilizedcity.entity.TaOrgIssue;
9
+import com.example.civilizedcity.mapper.TaOrgIssueMapper;
10
+import com.example.civilizedcity.service.TaOrgIssueService;
11
+
12
+/**
13
+ * 单位问题单;(ta_org_issue)表服务实现类
14
+ *
15
+ * @author : http://www.chiner.pro
16
+ * @date : 2022-12-28
17
+ */
18
+@Service
19
+public class TaOrgIssueServiceImpl extends BaseServiceImpl<TaOrgIssueMapper, TaOrgIssue> implements TaOrgIssueService {
20
+
21
+    @Override
22
+    public IPage<TaIssue> getIssuePageBy(IPage<TaIssue> pg, String orgId, String sourceType, String bizStatus) {
23
+
24
+        String processNode = null;
25
+        Boolean isExpire = false;
26
+
27
+        if (!StringUtils.isEmpty(bizStatus)) {
28
+            if ("expire".equals(bizStatus)) {
29
+                isExpire = true;
30
+            } else {
31
+                processNode = bizStatus;
32
+            }
33
+        }
34
+
35
+        return baseMapper.getIssuePageBy(pg, orgId, sourceType, processNode, isExpire);
36
+    }
37
+}

+ 13
- 1
src/main/resources/mapper/TaAttachMapper.xml Visa fil

@@ -2,5 +2,17 @@
2 2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 3
 
4 4
 <mapper namespace="com.example.civilizedcity.mapper.TaAttachMapper">
5
-    
5
+
6
+    <select id="getListBy" resultType="com.example.civilizedcity.entity.TaAttach">
7
+        SELECT
8
+            *
9
+        FROM
10
+            ta_attach t
11
+        WHERE
12
+            t.owner_type = #{ownerType}
13
+          AND t.owner_id = #{ownerId}
14
+          AND t.`status` = 1
15
+        ORDER BY
16
+            t.create_date ASC
17
+    </select>
6 18
 </mapper>

+ 39
- 0
src/main/resources/mapper/TaOrgIssueMapper.xml Visa fil

@@ -0,0 +1,39 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+
4
+<mapper namespace="com.example.civilizedcity.mapper.TaOrgIssueMapper">
5
+
6
+    <select id="getIssuePageBy" resultType="com.example.civilizedcity.entity.TaIssue">
7
+        SELECT
8
+            *
9
+        FROM
10
+            ta_issue t
11
+        WHERE
12
+            EXISTS (
13
+                SELECT
14
+                *
15
+                FROM
16
+                ta_org_issue s
17
+                WHERE
18
+                s.issue_id = t.issue_id
19
+                AND s.org_id = #{orgId}
20
+                AND s.`status` &gt; -1
21
+            )
22
+          <if test="sourceType != null and sourceType == 'feedback'">
23
+              AND t.source_type = 'feedback'
24
+          </if>
25
+          <if test="sourceType != null and sourceType != 'feedback'">
26
+              AND t.source_type in ('check', 'inspector')
27
+          </if>
28
+          <if test="processNode != null and processNode != ''">
29
+            AND t.process_node = #{processNode}
30
+          </if>
31
+          <if test="isExpire != null and isExpire">
32
+            AND t.process_node != 'end'
33
+            AND t.expire_date &lt;= now( )
34
+          </if>
35
+            AND t.`status` &gt; -1
36
+        ORDER BY
37
+            t.create_date DESC
38
+    </select>
39
+</mapper>