Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 86cff86f
authored
Sep 27, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增统计数据方法
1 parent
55f98331
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
src/main/java/cn/com/glsx/stdinterface/api/StatisticsDriveClient.java
src/main/java/cn/com/glsx/stdinterface/fallback/StatisticsDriveFallbackImpl.java
src/main/java/cn/com/glsx/stdinterface/api/StatisticsDriveClient.java
View file @
86cff86
...
@@ -32,4 +32,7 @@ public interface StatisticsDriveClient {
...
@@ -32,4 +32,7 @@ public interface StatisticsDriveClient {
*/
*/
@PostMapping
(
value
=
"/insertstatisticsdrivelist"
)
@PostMapping
(
value
=
"/insertstatisticsdrivelist"
)
R
insertStatisticsDriveList
(
@RequestBody
List
<
StatisticsDriveDto
>
statisticsDriveDtoList
);
R
insertStatisticsDriveList
(
@RequestBody
List
<
StatisticsDriveDto
>
statisticsDriveDtoList
);
@GetMapping
(
value
=
"/statisticsandinsertdrivedatalist"
)
R
statisticsAndInsertDriveDataEveryDay
();
}
}
src/main/java/cn/com/glsx/stdinterface/fallback/StatisticsDriveFallbackImpl.java
View file @
86cff86
...
@@ -33,4 +33,10 @@ public class StatisticsDriveFallbackImpl implements StatisticsDriveClient {
...
@@ -33,4 +33,10 @@ public class StatisticsDriveFallbackImpl implements StatisticsDriveClient {
log
.
warn
(
"insertStatisticsDriveList 熔断啦 {}"
,
cause
.
getMessage
());
log
.
warn
(
"insertStatisticsDriveList 熔断啦 {}"
,
cause
.
getMessage
());
return
R
.
ok
(
"服务异常"
);
return
R
.
ok
(
"服务异常"
);
}
}
@Override
public
R
statisticsAndInsertDriveDataEveryDay
()
{
log
.
warn
(
"statisticsAndInsertDriveDataEveryDay 熔断啦 {}"
,
cause
.
getMessage
());
return
R
.
ok
(
"服务异常"
);
}
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment