修改map的返回形式

main
fengxiaoyu 2023-02-17 18:02:22 +08:00
parent 2ec9a26365
commit 65b41d7ac7
2 changed files with 2 additions and 2 deletions

View File

@ -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<HazardousOperation> hazardousOperations = list.stream()

View File

@ -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()