Commit dfde2290 by zhangkb

修改子首页获取特定地区特定指标信息接口

parent deee667d
......@@ -44,6 +44,9 @@ public class IndexReportService {
List<DriveIndCalResultDef> calResults = driveIndCalResultDefMapper.
findByIndIdAndCompareObjOrderByDateDesc(entry.getKey(), compareObj);
int date = 0;
indMap.put("value", "");
indMap.put("rate", "");
indMap.put("trend", "");
if(!calResults.isEmpty()) {
indMap.put("value", calResults.get(0).getValue());
date = calResults.get(0).getDate();
......@@ -71,17 +74,8 @@ public class IndexReportService {
indMap.put("trend", "0");//趋差
}
}
}else {
indMap.put("trend", "");
}
}else {
indMap.put("rate", "");
indMap.put("trend", "");
}
}else {
indMap.put("value", "");
indMap.put("rate", "");
indMap.put("trend", "");
}
indMap.put("index", entry.getValue());
result.add(indMap);
......
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