张涛 2 年之前
父節點
當前提交
504c2ec0b3

db/.back_文明创办/.back_文明创办/文明创办-backup-2023511103013.pdma.json → db/.back_文明创办/.back_文明创办/文明创办-backup-2023511112401.pdma.json 查看文件

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

db/.back_文明创办/.back_文明创办/文明创办-backup-2023511101645.pdma.json → db/.back_文明创办/.back_文明创办/文明创办-backup-2023511112445.pdma.json 查看文件

2
   "name": "文明创办",
2
   "name": "文明创办",
3
   "describe": "文明创办",
3
   "describe": "文明创办",
4
   "avatar": "",
4
   "avatar": "",
5
-  "version": "4.1.4",
5
+  "version": "4.1.1",
6
   "createdTime": "2022-12-12 09:36:12",
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
   "dbConns": [],
8
   "dbConns": [],
9
   "profile": {
9
   "profile": {
10
     "default": {
10
     "default": {

+ 10071
- 0
db/.back_文明创办/.back_文明创办/文明创办-backup-2023511163113.pdma.json
文件差異過大導致無法顯示
查看文件


+ 19
- 2
db/.back_文明创办/文明创办-backup-2023510115646.pdma.json 查看文件

4
   "avatar": "",
4
   "avatar": "",
5
   "version": "4.1.1",
5
   "version": "4.1.1",
6
   "createdTime": "2022-12-12 09:36:12",
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
   "dbConns": [],
8
   "dbConns": [],
9
   "profile": {
9
   "profile": {
10
     "default": {
10
     "default": {
3713
         {
3713
         {
3714
           "defKey": "source_type",
3714
           "defKey": "source_type",
3715
           "defName": "来源类型",
3715
           "defName": "来源类型",
3716
-          "comment": "feedback市民上报,issue模拟测评,dailySpe日常督查",
3716
+          "comment": "feedback市民上报,check模拟测评",
3717
           "type": "",
3717
           "type": "",
3718
           "len": "",
3718
           "len": "",
3719
           "scale": "",
3719
           "scale": "",
3930
           "extProps": {},
3930
           "extProps": {},
3931
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
3931
           "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
3932
           "id": "1F85BFC4-DBF4-4BA5-9BD8-DC9C2BFA1646"
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
       "correlations": [],
3952
       "correlations": [],

+ 2
- 0
db/upgrade.1.1.sql 查看文件

7
     ADD COLUMN `culture_term` varchar(255) NULL COMMENT '文明用语' AFTER copy_from;
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 查看文件

49
                 issueExport.setUserName(taIssue.getUserName());
49
                 issueExport.setUserName(taIssue.getUserName());
50
                 issueExport.setEndDate(taIssue.getEndDate());
50
                 issueExport.setEndDate(taIssue.getEndDate());
51
 //                issueExport.setSourceType(taIssue.getSourceType());
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 查看文件

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

+ 6
- 2
src/main/java/com/example/civilizedcity/entity/TaIssue.java 查看文件

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

+ 1
- 1
src/main/java/com/example/civilizedcity/vo/IssueExport.java 查看文件

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