forked from xxhjsb/wit-park-backend
修改map的返回形式
parent
2ec9a26365
commit
65b41d7ac7
|
@ -118,7 +118,7 @@ public class HazardousOperationServiceImpl implements IHazardousOperationService
|
||||||
for(Object key : typeList.keySet()) {
|
for(Object key : typeList.keySet()) {
|
||||||
operationTypeList.put(key, typeList.get(key).size());
|
operationTypeList.put(key, typeList.get(key).size());
|
||||||
}
|
}
|
||||||
map.put("operationTypeList", operationTypeList);
|
map.put("operationTypeList", JSONObject.toJSONString(operationTypeList));
|
||||||
|
|
||||||
// 进行中的危险作业
|
// 进行中的危险作业
|
||||||
List<HazardousOperation> hazardousOperations = list.stream()
|
List<HazardousOperation> hazardousOperations = list.stream()
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class MajorHazardSourcesServiceImpl implements IMajorHazardSourcesService
|
||||||
for(Object key : typeList.keySet()) {
|
for(Object key : typeList.keySet()) {
|
||||||
dangerLevelList.put(key, typeList.get(key).size());
|
dangerLevelList.put(key, typeList.get(key).size());
|
||||||
}
|
}
|
||||||
map.put("dangerLevelList", dangerLevelList);
|
map.put("dangerLevelList", JSONObject.toJSONString(dangerLevelList));
|
||||||
|
|
||||||
// 获取生产单元数量
|
// 获取生产单元数量
|
||||||
int productionUnit = (int) list.stream()
|
int productionUnit = (int) list.stream()
|
||||||
|
|
Loading…
Reference in New Issue