Commit 9ef89afa authored by 刘林's avatar 刘林

fix:(jg) :监管单位统计信息导出列表报错问题处理

parent e1935976
...@@ -104,8 +104,7 @@ public class TzsTwoStaffingController extends BaseController { ...@@ -104,8 +104,7 @@ public class TzsTwoStaffingController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/exportData") @GetMapping(value = "/exportData")
@ApiOperation(httpMethod = "GET", value = "监管单位统计信息导出", notes = "监管单位统计信息导出") @ApiOperation(httpMethod = "GET", value = "监管单位统计信息导出", notes = "监管单位统计信息导出")
public void exportData(HttpServletResponse response, public void exportData(HttpServletResponse response, @RequestParam(value = "sequenceNbr", required = false) String sequenceNbr,
@RequestParam("sequenceNbr") String sequenceNbr,
@RequestParam("type") String type) { @RequestParam("type") String type) {
List<LinkedHashMap> data = (List<LinkedHashMap>) redisUtils.get(REGULATOR_UNIT_TREE); List<LinkedHashMap> data = (List<LinkedHashMap>) redisUtils.get(REGULATOR_UNIT_TREE);
ArrayList<LinkedHashMap> result = new ArrayList<>(); ArrayList<LinkedHashMap> result = new ArrayList<>();
......
...@@ -1024,7 +1024,8 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI ...@@ -1024,7 +1024,8 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
if (!ObjectUtils.isEmpty(result)) { if (!ObjectUtils.isEmpty(result)) {
return result; return result;
} }
List<LinkedHashMap> list = data.stream().filter(item -> item.get("sequenceNbr").toString().equals(id)).collect(Collectors.toList()); List<LinkedHashMap> list = data.stream().filter(item -> Objects.equals(item.get("sequenceNbr"), id))
.collect(Collectors.toList());
if (!ObjectUtils.isEmpty(list)) { if (!ObjectUtils.isEmpty(list)) {
return list; return list;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment