|
@@ -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
|
*
|