Commit 67a9fc50 authored by gao's avatar gao

修改频次认证

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