Commit 67a9fc50 authored by gao's avatar gao

修改频次认证

parent d7fff8c0
......@@ -82,6 +82,7 @@ public class ServiceStateMonitoring {
try {
authFrequencyStr= HttpClientPool.getRequest("http://121.22.111.251:9003/legalPerson/v1.0/authFreqStats?startTime="+startTime+"&endTime="+endTime+"&customerNumber=gtyx01&units=Hour");
authFrequencyList = JSONArray.fromObject(authFrequencyStr);
System.out.println(authFrequencyList);
} catch (IOException e) {
return "法人代理频次请求失败";
}
......
......@@ -84,8 +84,8 @@ public class FormatBytesUtil {
public static String dateAddOneHour(String s) {
String res;
Long timeStamp;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
Date date = null;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH");
try {
date = simpleDateFormat.parse(s);
} catch (ParseException e) {
......
......@@ -16,7 +16,7 @@ public class test {
private static String startTime="1503123818000";
private static String endTime="1517305049000";
public static void main(String[] args){
String authFrequencyStr= ServiceStateMonitoring.authFrequency("1478793600000","1478829600000");
String authFrequencyStr= ServiceStateMonitoring.authFrequency("1503123818000","1517305049000");
System.out.println(authFrequencyStr);
// String aa="2018-02-09 16:18:35";
......
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