动态页面数据调整
This commit is contained in:
@@ -101,14 +101,14 @@ public class DynamicIndexController extends BaseController {
|
|||||||
|
|
||||||
String nowString = DateUtils.formatDate(now, "yyyy-MM-dd HH:mm:ss");
|
String nowString = DateUtils.formatDate(now, "yyyy-MM-dd HH:mm:ss");
|
||||||
String startString = DateUtils.formatDate(start, "yyyy-MM-dd HH:mm:ss");
|
String startString = DateUtils.formatDate(start, "yyyy-MM-dd HH:mm:ss");
|
||||||
/*nowString = "2018-12-05 00:00:00";
|
nowString = "2018-12-05 00:00:00";
|
||||||
startString = "2018-12-04 17:00:00";*/
|
startString = "2018-12-04 17:00:00";
|
||||||
String url = Constants.LOG_BASE_URL + Constants.TRAFFIC_AREA_STAT;
|
String url = Constants.LOG_BASE_URL + Constants.TRAFFIC_AREA_STAT;
|
||||||
//String url = "http://localhost:8080/ntc/helloworld/test";
|
//String url = "http://localhost:8080/ntc/helloworld/test";
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
params.put("searchReportStartTime", startString);
|
params.put("searchReportStartTime", startString);
|
||||||
params.put("searchReportEndTime", nowString);
|
params.put("searchReportEndTime", nowString);
|
||||||
params.put("baseNum", baseNum);
|
//params.put("baseNum", baseNum);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String recv = HttpClientUtil.getMsg(url, params, null);
|
String recv = HttpClientUtil.getMsg(url, params, null);
|
||||||
@@ -148,6 +148,17 @@ public class DynamicIndexController extends BaseController {
|
|||||||
logger.error("解析出错", e);
|
logger.error("解析出错", e);
|
||||||
results.clear();
|
results.clear();
|
||||||
}
|
}
|
||||||
|
/*if(results != null && results.size()<1){//伪造数据
|
||||||
|
results = null;
|
||||||
|
results = new ArrayList<>();
|
||||||
|
Map result = null;//new HashMap();
|
||||||
|
for(int i=0;i<hour*12;i++){
|
||||||
|
result = null;
|
||||||
|
result = new HashMap();
|
||||||
|
result.put("name", "Alamty");
|
||||||
|
result.put("data", t.get(area));
|
||||||
|
}
|
||||||
|
}*/
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,7 +185,7 @@ public class DynamicIndexController extends BaseController {
|
|||||||
params.put("searchReportStartTime", startString);
|
params.put("searchReportStartTime", startString);
|
||||||
params.put("searchReportEndTime", nowString);
|
params.put("searchReportEndTime", nowString);
|
||||||
params.put("searchBusinessType", 1);
|
params.put("searchBusinessType", 1);
|
||||||
params.put("baseNum", baseNum);
|
//params.put("baseNum", baseNum);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String recv = HttpClientUtil.getMsg(url, params, null);
|
String recv = HttpClientUtil.getMsg(url, params, null);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user