From 65b41d7ac7b9275ee112802c6e26043c39a27b5e Mon Sep 17 00:00:00 2001 From: fengxiaoyu Date: Fri, 17 Feb 2023 18:02:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9map=E7=9A=84=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supervision/service/impl/HazardousOperationServiceImpl.java | 2 +- .../supervision/service/impl/MajorHazardSourcesServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hbt-safety-supervision/hbt-safety-supervision-biz/src/main/java/com/hbt/safety/supervision/service/impl/HazardousOperationServiceImpl.java b/hbt-safety-supervision/hbt-safety-supervision-biz/src/main/java/com/hbt/safety/supervision/service/impl/HazardousOperationServiceImpl.java index ad71ae1..055efba 100644 --- a/hbt-safety-supervision/hbt-safety-supervision-biz/src/main/java/com/hbt/safety/supervision/service/impl/HazardousOperationServiceImpl.java +++ b/hbt-safety-supervision/hbt-safety-supervision-biz/src/main/java/com/hbt/safety/supervision/service/impl/HazardousOperationServiceImpl.java @@ -118,7 +118,7 @@ public class HazardousOperationServiceImpl implements IHazardousOperationService for(Object key : typeList.keySet()) { operationTypeList.put(key, typeList.get(key).size()); } - map.put("operationTypeList", operationTypeList); + map.put("operationTypeList", JSONObject.toJSONString(operationTypeList)); // 进行中的危险作业 List hazardousOperations = list.stream() diff --git a/hbt-safety-supervision/hbt-safety-supervision-biz/src/main/java/com/hbt/safety/supervision/service/impl/MajorHazardSourcesServiceImpl.java b/hbt-safety-supervision/hbt-safety-supervision-biz/src/main/java/com/hbt/safety/supervision/service/impl/MajorHazardSourcesServiceImpl.java index dceacd0..4b036fb 100644 --- a/hbt-safety-supervision/hbt-safety-supervision-biz/src/main/java/com/hbt/safety/supervision/service/impl/MajorHazardSourcesServiceImpl.java +++ b/hbt-safety-supervision/hbt-safety-supervision-biz/src/main/java/com/hbt/safety/supervision/service/impl/MajorHazardSourcesServiceImpl.java @@ -113,7 +113,7 @@ public class MajorHazardSourcesServiceImpl implements IMajorHazardSourcesService for(Object key : typeList.keySet()) { dangerLevelList.put(key, typeList.get(key).size()); } - map.put("dangerLevelList", dangerLevelList); + map.put("dangerLevelList", JSONObject.toJSONString(dangerLevelList)); // 获取生产单元数量 int productionUnit = (int) list.stream()