Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
236cd886
Commit
236cd886
authored
Oct 30, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.根据接口的实际限流策略调整华为北向接口的请求间隔,避免请求过于频繁导致限流。
parent
fe925071
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ImasterDataServiceImpl.java
...ouseholdapi/face/service/impl/ImasterDataServiceImpl.java
+3
-3
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/ImasterDataServiceImpl.java
View file @
236cd886
...
@@ -145,7 +145,7 @@ public class ImasterDataServiceImpl implements ImasterDataService {
...
@@ -145,7 +145,7 @@ public class ImasterDataServiceImpl implements ImasterDataService {
String
today
=
DateUtil
.
today
();
String
today
=
DateUtil
.
today
();
String
hour
=
new
Date
().
getHours
()
+
":00"
;
String
hour
=
new
Date
().
getHours
()
+
":00"
;
try
{
try
{
TimeUnit
.
SECONDS
.
sleep
(
1
);
TimeUnit
.
MINUTES
.
sleep
(
5
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -458,7 +458,7 @@ public class ImasterDataServiceImpl implements ImasterDataService {
...
@@ -458,7 +458,7 @@ public class ImasterDataServiceImpl implements ImasterDataService {
public
void
inverterDetail
()
{
public
void
inverterDetail
()
{
List
<
String
>
inverterSns
=
imasterInverterListMapper
.
getCollectIds
();
List
<
String
>
inverterSns
=
imasterInverterListMapper
.
getCollectIds
();
try
{
try
{
TimeUnit
.
SECONDS
.
sleep
(
1
);
TimeUnit
.
MINUTES
.
sleep
(
5
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -720,7 +720,7 @@ public class ImasterDataServiceImpl implements ImasterDataService {
...
@@ -720,7 +720,7 @@ public class ImasterDataServiceImpl implements ImasterDataService {
List
<
String
>
inverterSns
=
imasterInverterListMapper
.
getCollectIds
();
List
<
String
>
inverterSns
=
imasterInverterListMapper
.
getCollectIds
();
for
(
int
i
=
0
;
i
<
inverterSns
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
inverterSns
.
size
();
i
++)
{
try
{
try
{
TimeUnit
.
SECONDS
.
sleep
(
1
);
TimeUnit
.
MINUTES
.
sleep
(
5
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
...
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