获取配置日志总数调整去掉造的数据,查询接口
This commit is contained in:
@@ -32,6 +32,7 @@ import com.nis.domain.basics.ServiceDictInfo;
|
||||
import com.nis.domain.log.SearchReport;
|
||||
import com.nis.domain.report.NtcPzReport;
|
||||
import com.nis.domain.report.ReportResult;
|
||||
import com.nis.util.ConfigServiceUtil;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.util.DictUtils;
|
||||
import com.nis.web.controller.BaseController;
|
||||
@@ -62,18 +63,14 @@ public class NtcPzReportController extends BaseController{
|
||||
break;
|
||||
}
|
||||
}
|
||||
// ReportResultLog result=ConfigServiceUtil.getReport(Constants.BUSINESSTYPE_CONFIG, String.valueOf(compileId), String.valueOf(serviceId), sdf.format(startDate), sdf.format(endDate));
|
||||
// if(result.getData()!=null&&result.getData().getList()!=null){
|
||||
// model.addAttribute("data", result.getData().getList());
|
||||
// }
|
||||
data.put("compileId", compileId.intValue());
|
||||
data.put("sum", 1000l);
|
||||
// try {
|
||||
// Thread.sleep(10000);
|
||||
// } catch (InterruptedException e) {
|
||||
// // TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
ReportResult<NtcPzReport> result=ConfigServiceUtil.getReport(Constants.BUSINESSTYPE_CONFIG, String.valueOf(compileId), String.valueOf(serviceId), sdf.format(startDate), sdf.format(endDate));
|
||||
if(result.getData()!=null&&result.getData().getList()!=null&&result.getData().getList().size()>0){
|
||||
data.put("sum", result.getData().getList().get(0).getSum().longValue());
|
||||
}else {
|
||||
data.put("sum", 0);
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
@RequestMapping("/ntcPzReport")
|
||||
|
||||
Reference in New Issue
Block a user