调整配置ID日志链接有无日志数据时都添加日志链接
This commit is contained in:
@@ -116,22 +116,21 @@ public class NtcPzReportController extends BaseController{
|
|||||||
String json=ConfigServiceUtil.getReport(Constants.BUSINESSTYPE_CONFIG, compileIds, serviceIds, startDate==null?null:sdf.format(startDate), endDate==null?null:sdf.format(endDate));
|
String json=ConfigServiceUtil.getReport(Constants.BUSINESSTYPE_CONFIG, compileIds, serviceIds, startDate==null?null:sdf.format(startDate), endDate==null?null:sdf.format(endDate));
|
||||||
List<NtcPzReport> list=getList(json);
|
List<NtcPzReport> list=getList(json);
|
||||||
String[] idArr=compileIds.split(",");
|
String[] idArr=compileIds.split(",");
|
||||||
if(list!=null&&(list.size()>0)){
|
for(String id:idArr) {
|
||||||
for(NtcPzReport report:list) {
|
Map<String, Object> data=new HashMap<String, Object>();
|
||||||
Map<String, Object> data=new HashMap<String, Object>();
|
data.put("compileId", id);
|
||||||
data.put("compileId", report.getCfgId().longValue());
|
Long sum=(long) 0;
|
||||||
data.put("sum",report.getSum().longValue());
|
if(list!=null&&(list.size()>0)){
|
||||||
dataList.add(data);
|
for(NtcPzReport report:list) {
|
||||||
}
|
if(Long.valueOf(id).longValue() == report.getCfgId().longValue()){
|
||||||
}else {
|
sum=report.getSum().longValue();
|
||||||
for(String id:idArr) {
|
break;
|
||||||
Map<String, Object> data=new HashMap<String, Object>();
|
}
|
||||||
data.put("compileId", id);
|
}
|
||||||
data.put("sum",0);
|
|
||||||
dataList.add(data);
|
|
||||||
}
|
}
|
||||||
|
data.put("sum",sum);
|
||||||
|
dataList.add(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
return dataList;
|
return dataList;
|
||||||
}
|
}
|
||||||
@RequestMapping("/ntcPzReport")
|
@RequestMapping("/ntcPzReport")
|
||||||
|
|||||||
Reference in New Issue
Block a user