Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
c7dbaa5c
Commit
c7dbaa5c
authored
Sep 22, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
duty值班优化
parent
56123f68
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
View3dController.java
...eejoin/amos/fas/business/controller/View3dController.java
+1
-1
DutyModeServerFallback.java
...ejoin/amos/fas/business/feign/DutyModeServerFallback.java
+1
-1
IDutyModeServer.java
.../com/yeejoin/amos/fas/business/feign/IDutyModeServer.java
+1
-0
View3dServiceImpl.java
...oin/amos/fas/business/service/impl/View3dServiceImpl.java
+2
-2
IView3dService.java
...ejoin/amos/fas/business/service/intfc/IView3dService.java
+1
-1
pom.xml
pom.xml
+1
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/View3dController.java
View file @
c7dbaa5c
...
...
@@ -170,7 +170,7 @@ public class View3dController extends BaseController {
product
=
getProduct
();
staticOrgCode
=
orgCode
;
token
=
getToken
();
return
view3dService
.
getStatisticsDuty
(
getAppKey
(),
getProduct
(),
orgCode
);
return
view3dService
.
getStatisticsDuty
(
getAppKey
(),
getProduct
(),
token
,
orgCode
);
}
@Permission
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/feign/DutyModeServerFallback.java
View file @
c7dbaa5c
...
...
@@ -6,7 +6,7 @@ import com.yeejoin.amos.fas.core.util.CommonResponseUtil;
public
class
DutyModeServerFallback
implements
IDutyModeServer
{
@Override
public
CommonResponse
dutyListByDay
(
String
appKey
,
String
product
,
String
orgCode
,
String
dutyDate
)
{
public
CommonResponse
dutyListByDay
(
String
appKey
,
String
product
,
String
token
,
String
orgCode
,
String
dutyDate
)
{
return
CommonResponseUtil
.
failure
(
"fegin调用失败!!!"
);
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/feign/IDutyModeServer.java
View file @
c7dbaa5c
...
...
@@ -13,6 +13,7 @@ public interface IDutyModeServer {
public
CommonResponse
dutyListByDay
(
@RequestHeader
(
name
=
"appKey"
,
required
=
true
)
String
appKey
,
@RequestHeader
(
name
=
"product"
,
required
=
true
)
String
product
,
@RequestHeader
(
name
=
"token"
,
required
=
true
)
String
token
,
@RequestHeader
(
name
=
"orgCode"
,
required
=
true
)
String
orgCode
,
@RequestBody
String
param
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/View3dServiceImpl.java
View file @
c7dbaa5c
...
...
@@ -492,12 +492,12 @@ public class View3dServiceImpl implements IView3dService {
}
@Override
public
CommonResponse
getStatisticsDuty
(
String
appKey
,
String
product
,
String
orgCode
)
{
public
CommonResponse
getStatisticsDuty
(
String
appKey
,
String
product
,
String
token
,
String
orgCode
)
{
Date
curDate
=
new
Date
();
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
JSONObject
param
=
new
JSONObject
();
param
.
put
(
"dutyDate"
,
curDate
);
return
dutyModeServer
.
dutyListByDay
(
appKey
,
product
,
orgCode
,
param
.
toJSONString
());
return
dutyModeServer
.
dutyListByDay
(
appKey
,
product
,
token
,
orgCode
,
param
.
toJSONString
());
}
@Override
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IView3dService.java
View file @
c7dbaa5c
...
...
@@ -104,7 +104,7 @@ public interface IView3dService {
* 今日值班统计
* @return
*/
CommonResponse
getStatisticsDuty
(
String
appKey
,
String
product
,
String
orgCode
);
CommonResponse
getStatisticsDuty
(
String
appKey
,
String
product
,
String
token
,
String
orgCode
);
/**
* 设备状态消息最新5条
...
...
pom.xml
View file @
c7dbaa5c
...
...
@@ -35,7 +35,7 @@
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-component-rule
</artifactId>
<version>
1.2.0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
...
...
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