Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
LegalPersonMonitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiachenqi
LegalPersonMonitor
Commits
67a9fc50
Commit
67a9fc50
authored
Feb 11, 2018
by
gao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改频次认证
parent
d7fff8c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
ServiceStateMonitoring.java
...om/legalPersonMonitor/monitor/ServiceStateMonitoring.java
+1
-0
FormatBytesUtil.java
...in/java/com/legalPersonMonitor/utils/FormatBytesUtil.java
+1
-1
test.java
src/main/java/com/test/test.java
+1
-1
No files found.
src/main/java/com/legalPersonMonitor/monitor/ServiceStateMonitoring.java
View file @
67a9fc50
...
...
@@ -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
"法人代理频次请求失败"
;
}
...
...
src/main/java/com/legalPersonMonitor/utils/FormatBytesUtil.java
View file @
67a9fc50
...
...
@@ -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
)
{
...
...
src/main/java/com/test/test.java
View file @
67a9fc50
...
...
@@ -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
(
"1
478793600000"
,
"1478829600
000"
);
String
authFrequencyStr
=
ServiceStateMonitoring
.
authFrequency
(
"1
503123818000"
,
"1517305049
000"
);
System
.
out
.
println
(
authFrequencyStr
);
// String aa="2018-02-09 16:18:35";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment