张涛 2 jaren geleden
bovenliggende
commit
504c2ec0b3

db/.back_文明创办/.back_文明创办/文明创办-backup-2023511103013.pdma.json → db/.back_文明创办/.back_文明创办/文明创办-backup-2023511112401.pdma.json Bestand weergeven

@@ -4,7 +4,7 @@
4 4
   "avatar": "",
5 5
   "version": "4.1.1",
6 6
   "createdTime": "2022-12-12 09:36:12",
7
-  "updatedTime": "2023-5-11 10:16:45",
7
+  "updatedTime": "2023-5-11 10:30:13",
8 8
   "dbConns": [],
9 9
   "profile": {
10 10
     "default": {
@@ -3713,7 +3713,7 @@
3713 3713
         {
3714 3714
           "defKey": "source_type",
3715 3715
           "defName": "来源类型",
3716
-          "comment": "feedback市民上报,check模拟测评,dailySpe日常督查",
3716
+          "comment": "feedback市民上报,issue模拟测评,dailySpe日常督查",
3717 3717
           "type": "",
3718 3718
           "len": "",
3719 3719
           "scale": "",

db/.back_文明创办/.back_文明创办/文明创办-backup-2023511101645.pdma.json → db/.back_文明创办/.back_文明创办/文明创办-backup-2023511112445.pdma.json Bestand weergeven

@@ -2,9 +2,9 @@
2 2
   "name": "文明创办",
3 3
   "describe": "文明创办",
4 4
   "avatar": "",
5
-  "version": "4.1.4",
5
+  "version": "4.1.1",
6 6
   "createdTime": "2022-12-12 09:36:12",
7
-  "updatedTime": "2023-5-8 16:33:28",
7
+  "updatedTime": "2023-5-11 11:24:01",
8 8
   "dbConns": [],
9 9
   "profile": {
10 10
     "default": {

+ 10071
- 0
db/.back_文明创办/.back_文明创办/文明创办-backup-2023511163113.pdma.json
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 19
- 2
db/.back_文明创办/文明创办-backup-2023510115646.pdma.json Bestand weergeven

@@ -4,7 +4,7 @@
4 4
   "avatar": "",
5 5
   "version": "4.1.1",
6 6
   "createdTime": "2022-12-12 09:36:12",
7
-  "updatedTime": "2023-5-11 10:30:13",
7
+  "updatedTime": "2023-5-11 16:31:13",
8 8
   "dbConns": [],
9 9
   "profile": {
10 10
     "default": {
@@ -3713,7 +3713,7 @@
3713 3713
         {
3714 3714
           "defKey": "source_type",
3715 3715
           "defName": "来源类型",
3716
-          "comment": "feedback市民上报,issue模拟测评,dailySpe日常督查",
3716
+          "comment": "feedback市民上报,check模拟测评",
3717 3717
           "type": "",
3718 3718
           "len": "",
3719 3719
           "scale": "",
@@ -3930,6 +3930,23 @@
3930 3930
           "extProps": {},
3931 3931
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
3932 3932
           "id": "1F85BFC4-DBF4-4BA5-9BD8-DC9C2BFA1646"
3933
+        },
3934
+        {
3935
+          "defKey": "source_type2",
3936
+          "defName": "问题来源PC",
3937
+          "comment": "check 模拟测评  feedback 市民上报  inspector 督查员上报",
3938
+          "type": "",
3939
+          "len": "",
3940
+          "scale": "",
3941
+          "primaryKey": false,
3942
+          "notNull": false,
3943
+          "autoIncrement": false,
3944
+          "defaultValue": "",
3945
+          "hideInGraph": false,
3946
+          "refDict": "",
3947
+          "extProps": {},
3948
+          "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
3949
+          "id": "42892AD2-FF8E-4D87-8705-14737E34AE9A"
3933 3950
         }
3934 3951
       ],
3935 3952
       "correlations": [],

+ 2
- 0
db/upgrade.1.1.sql Bestand weergeven

@@ -7,3 +7,5 @@ ALTER TABLE `sys_org`
7 7
     ADD COLUMN `culture_term` varchar(255) NULL COMMENT '文明用语' AFTER copy_from;
8 8
 
9 9
 
10
+ALTER TABLE `ta_issue`
11
+ADD COLUMN source_type2 varchar(32) NULL COMMENT 'PC问题来源: check 模拟测评  feedback 市民上报  inspector 督查员上报' AFTER copy_from;

+ 8
- 7
src/main/java/com/example/civilizedcity/common/ExportIssueUtil.java Bestand weergeven

@@ -49,13 +49,14 @@ public class ExportIssueUtil {
49 49
                 issueExport.setUserName(taIssue.getUserName());
50 50
                 issueExport.setEndDate(taIssue.getEndDate());
51 51
 //                issueExport.setSourceType(taIssue.getSourceType());
52
-                String sourceType=taIssue.getSourceType();
53
-                if(sourceType.equals(Constants.SOURCE_FEEDBACK)){
54
-                    issueExport.setSourceType("市民上报");
55
-                }else if(sourceType.equals(Constants.SOURCE_CHECK)){
56
-                    issueExport.setSourceType("实地测评");
57
-                }else if(sourceType.equals(Constants.SOURCE_INSPECTOR)){
58
-                    issueExport.setSourceType("日常督查");
52
+//                此处是PC端excel表展示
53
+                String sourceType2=taIssue.getSourceType();
54
+                if(sourceType2.equals(Constants.SOURCE_FEEDBACK)){
55
+                    issueExport.setSourceType2("市民上报");
56
+                }else if(sourceType2.equals(Constants.SOURCE_CHECK)){
57
+                    issueExport.setSourceType2("实地测评");
58
+                }else if(sourceType2.equals(Constants.SOURCE_INSPECTOR)){
59
+                    issueExport.setSourceType2("日常督查");
59 60
                 }
60 61
 
61 62
                 // 转换机构

+ 15
- 11
src/main/java/com/example/civilizedcity/controller/TaIssueController.java Bestand weergeven

@@ -2,27 +2,25 @@ package com.example.civilizedcity.controller;
2 2
 
3 3
 import cn.dev33.satoken.annotation.SaCheckPermission;
4 4
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
-import com.baomidou.mybatisplus.core.enums.SqlLike;
6 5
 import com.baomidou.mybatisplus.core.metadata.IPage;
7 6
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
8 7
 import com.example.civilizedcity.common.*;
9
-
10
-import java.net.URL;
11
-import java.time.LocalDateTime;
12
-import java.util.*;
13
-import java.util.stream.Collectors;
14
-
15
-import com.example.civilizedcity.entity.*;
8
+import com.example.civilizedcity.entity.SysUser;
9
+import com.example.civilizedcity.entity.TaAttach;
10
+import com.example.civilizedcity.entity.TaIssue;
16 11
 import com.example.civilizedcity.service.*;
17 12
 import com.example.civilizedcity.vo.IssueExport;
18 13
 import io.swagger.annotations.Api;
19 14
 import io.swagger.annotations.ApiOperation;
20 15
 import io.swagger.annotations.ApiParam;
21
-import io.swagger.models.auth.In;
22 16
 import org.springframework.beans.factory.annotation.Autowired;
23 17
 import org.springframework.web.bind.annotation.*;
24 18
 
25 19
 import javax.servlet.http.HttpServletResponse;
20
+import java.time.LocalDateTime;
21
+import java.util.HashMap;
22
+import java.util.List;
23
+import java.util.Map;
26 24
 
27 25
 /**
28 26
  * 问题表;(ta_issue)表控制层
@@ -75,6 +73,7 @@ public class TaIssueController extends BaseController {
75 73
 
76 74
     /**
77 75
      * 构造 查询构造器
76
+     *
78 77
      * @param sysUser
79 78
      * @param params
80 79
      * @return
@@ -85,6 +84,7 @@ public class TaIssueController extends BaseController {
85 84
         String typeId = (String) params.get("typeId");
86 85
         String bizStatus = (String) params.get("bizStatus");
87 86
         String sourceType = (String) params.get("sourceType");
87
+        String sourceType2 = (String) params.get("sourceType2");
88 88
         String locId = (String) params.get("locId");
89 89
         Boolean mine = (Boolean) params.get("mine");
90 90
         String orgId = (String) params.get("orgId");
@@ -151,7 +151,8 @@ public class TaIssueController extends BaseController {
151 151
 
152 152
         queryWrapper.eq(StringUtils.isNotEmpty(locId), "loc_id", locId);
153 153
         queryWrapper.eq(StringUtils.isNotEmpty(orgId), "org_id", orgId);
154
-        queryWrapper.eq(StringUtils.isNotEmpty(sourceType), "source_type", sourceType);
154
+//        此处是PC端的查询问题来源
155
+        queryWrapper.eq(StringUtils.isNotEmpty(sourceType2), "source_type", sourceType2);
155 156
         queryWrapper.like(StringUtils.isNotEmpty(userName), "user_name", userName);
156 157
         queryWrapper.between(null != createDateStart, "create_date", createDateStart, createDateEnd);
157 158
         queryWrapper.between(null != endDateStart, "end_date", endDateStart, endDateEnd);
@@ -178,6 +179,7 @@ public class TaIssueController extends BaseController {
178 179
                              @ApiParam("类型ID") @RequestParam(value = "typeId", required = false) String typeId,
179 180
                              @ApiParam("问题单状态") @RequestParam(value = "bizStatus", required = false) String bizStatus,
180 181
                              @ApiParam("来源") @RequestParam(value = "sourceType", required = false) String sourceType,
182
+                             @ApiParam("PC来源") @RequestParam(value = "sourceType2", required = false) String sourceType2,
181 183
                              @ApiParam("点位") @RequestParam(value = "locId", required = false) String locId,
182 184
                              @ApiParam("我的") @RequestParam(value = "mine", defaultValue = "false") Boolean mine,
183 185
                              @ApiParam("责任单位") @RequestParam(value = "orgId", required = false) String orgId,
@@ -201,6 +203,7 @@ public class TaIssueController extends BaseController {
201 203
         params.put("typeId", typeId);
202 204
         params.put("bizStatus", bizStatus);
203 205
         params.put("sourceType", sourceType);
206
+        params.put("sourceType2", sourceType2);
204 207
         params.put("locId", locId);
205 208
         params.put("mine", mine);
206 209
         params.put("orgId", orgId);
@@ -232,6 +235,7 @@ public class TaIssueController extends BaseController {
232 235
                                @ApiParam("问题单状态") @RequestParam(value = "bizStatus", required = false) String bizStatus,
233 236
                                @ApiParam("类型ID") @RequestParam(value = "typeId", required = false) String typeId,
234 237
                                @ApiParam("来源") @RequestParam(value = "sourceType", required = false) String sourceType,
238
+                               @ApiParam("问题来源") @RequestParam(value = "sourceType2", required = false) String sourceType2,
235 239
                                @ApiParam("点位") @RequestParam(value = "locId", required = false) String locId,
236 240
                                @ApiParam("我的") @RequestParam(value = "mine", defaultValue = "false") Boolean mine,
237 241
                                @ApiParam("责任单位") @RequestParam(value = "orgId", required = false) String orgId,
@@ -258,6 +262,7 @@ public class TaIssueController extends BaseController {
258 262
         params.put("typeId", typeId);
259 263
         params.put("bizStatus", bizStatus);
260 264
         params.put("sourceType", sourceType);
265
+        params.put("sourceType2", sourceType2);
261 266
         params.put("locId", locId);
262 267
         params.put("mine", mine);
263 268
         params.put("orgId", orgId);
@@ -323,7 +328,6 @@ public class TaIssueController extends BaseController {
323 328
     }
324 329
 
325 330
 
326
-
327 331
     /**
328 332
      * 复制问题单
329 333
      *

+ 6
- 2
src/main/java/com/example/civilizedcity/entity/TaIssue.java Bestand weergeven

@@ -104,10 +104,14 @@ public class TaIssue implements Serializable, Cloneable {
104 104
     @ApiModelProperty(name = "责任单位", notes = "")
105 105
     private String orgId;
106 106
 
107
+    @ExcelIgnore
108
+    @ApiModelProperty(name = "来源类型", notes = "feedback市民上报,check模拟测评")
109
+    private String sourceType;
110
+
107 111
     @ColumnWidth(30)
108
-    @ExcelProperty(value = "责任单位", index = 9)
112
+    @ExcelProperty(value = "来源类型", index = 9)
109 113
     @ApiModelProperty(name = "来源类型", notes = "check 模拟测评  feedback 市民上报  inspector 督查员上报")
110
-    private String sourceType;
114
+    private String sourceType2;
111 115
 
112 116
     @ExcelIgnore
113 117
     @ApiModelProperty(name = "来源ID", notes = "")

+ 1
- 1
src/main/java/com/example/civilizedcity/vo/IssueExport.java Bestand weergeven

@@ -36,7 +36,7 @@ public class IssueExport {
36 36
     @ColumnWidth(24)
37 37
     @ExcelProperty(value = "问题来源")
38 38
     @ApiModelProperty(name = "问题来源", notes = "check 模拟测评  feedback 市民上报  inspector 督查员上报")
39
-    private String sourceType;
39
+    private String sourceType2;
40 40
 
41 41
     @ColumnWidth(30)
42 42
     @ExcelProperty(value = "上报日期", converter = LocalDateTimeConverter.class)