Commit 82912dca by zhangkb

修改获取基础项值逻辑

parent cd41615b
...@@ -666,7 +666,7 @@ public class IndicatorsValueService { ...@@ -666,7 +666,7 @@ public class IndicatorsValueService {
} }
} }
List<IndicatorsData> indicatorsData = indicatorsDataMapper.getDataByDimension(paramMap); List<IndicatorsData> indicatorsData = indicatorsDataMapper.getDataByDimension(paramMap);
if(indicatorsData!=null) { if(!indicatorsData.isEmpty()) {
Map<String,Object> resultMap = new HashMap<>(); Map<String,Object> resultMap = new HashMap<>();
resultMap.put("value",indicatorsData.get(0).getValue()); resultMap.put("value",indicatorsData.get(0).getValue());
resultMap.put("unit", indicatorsData.get(0).getUnit()); resultMap.put("unit", indicatorsData.get(0).getUnit());
......
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