|
@@ -167,7 +167,60 @@ public class TaOrgIssueController extends BaseController {
|
167
|
167
|
}
|
168
|
168
|
|
169
|
169
|
|
|
170
|
+ /**
|
|
171
|
+ * 分页查询
|
|
172
|
+ *
|
|
173
|
+ * @param pageNum 当前页码
|
|
174
|
+ * @param pageSize 每页条数
|
|
175
|
+ * @return 查询结果
|
|
176
|
+ */
|
|
177
|
+ @ApiOperation("分页查询")
|
|
178
|
+ @GetMapping("/taOrgIssue/issue")
|
|
179
|
+ public ResponseBean listIssue(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
|
180
|
+ @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
|
181
|
+ @ApiParam("问题单ID") @RequestParam(value = "issueId", required = false) String issueId,
|
|
182
|
+ @ApiParam("status") @RequestParam(value = "status", required = false) String status,
|
|
183
|
+ @ApiParam("点位") @RequestParam(value = "locId", required = false) String locId,
|
|
184
|
+ @ApiParam("数据来源") @RequestParam(value ="sourceType", required = false) String sourceType,
|
|
185
|
+ @ApiParam("类型ID") @RequestParam(value = "typeId", required = false) String typeId,
|
|
186
|
+ @ApiParam("上报人") @RequestParam(value = "userName", required = false) String userName,
|
|
187
|
+ @ApiParam(value = "创建时间-开始", example = "2023-03-01") @RequestParam(value = "createDateStart", required = false) String createDateStart,
|
|
188
|
+ @ApiParam(value = "创建时间-结束", example = "2023-03-31") @RequestParam(value = "createDateEnd", required = false) String createDateEnd,
|
|
189
|
+ @ApiParam(value = "结单时间-开始", example = "2023-03-01") @RequestParam(value = "endDateStart", required = false) String endDateStart,
|
|
190
|
+ @ApiParam(value = "结单时间-结束", example = "2023-03-31") @RequestParam(value = "endDateEnd", required = false) String endDateEnd,
|
|
191
|
+ @ApiParam("业务状态") @RequestParam(value ="bizStatus", required = false) String bizStatus) throws Exception {
|
|
192
|
+ SysUser sysUser = currentUser();
|
|
193
|
+
|
|
194
|
+ Map<String, Object> params = new HashMap<>();
|
|
195
|
+ params.put("issueId", issueId);
|
|
196
|
+ params.put("status", status);
|
|
197
|
+ params.put("typeId", typeId);
|
|
198
|
+ params.put("bizStatus", bizStatus);
|
|
199
|
+ params.put("sourceType", sourceType);
|
|
200
|
+ params.put("locId", locId);
|
|
201
|
+ params.put("orgId", sysUser.getOrgId());
|
|
202
|
+ params.put("userName", userName);
|
|
203
|
+ if (StringUtils.isNotEmpty(createDateStart)) {
|
|
204
|
+ params.put("createDateStart", DateUtils.day2LocalDateime(createDateStart));
|
|
205
|
+ params.put("createDateEnd", DateUtils.day2LocalDateime2(createDateEnd));
|
|
206
|
+ } else {
|
|
207
|
+ params.put("createDateStart", null);
|
|
208
|
+ params.put("createDateEnd", null);
|
|
209
|
+ }
|
170
|
210
|
|
|
211
|
+ if (StringUtils.isNotEmpty(endDateStart)) {
|
|
212
|
+ params.put("endDateStart", DateUtils.day2LocalDateime(endDateStart));
|
|
213
|
+ params.put("endDateEnd", DateUtils.day2LocalDateime2(endDateEnd));
|
|
214
|
+ } else {
|
|
215
|
+ params.put("endDateStart", null);
|
|
216
|
+ params.put("endDateEnd", null);
|
|
217
|
+ }
|
|
218
|
+
|
|
219
|
+ IPage<TaIssue> pg = new Page<>(pageNum, pageSize);
|
|
220
|
+ IPage<TaIssue> result = taOrgIssueService.getIssuePageIssue(pg, params);
|
|
221
|
+
|
|
222
|
+ return ResponseBean.success(result);
|
|
223
|
+ }
|
171
|
224
|
|
172
|
225
|
|
173
|
226
|
|