Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AmosBankPatrolRoot
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
1
Merge Requests
1
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
bank
AmosBankPatrolRoot
Commits
1f15992d
Commit
1f15992d
authored
Nov 05, 2020
by
吴俊凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.4.0.2版本修改代码提交
parent
e3c8c2da
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
34 deletions
+37
-34
AmosBankFeign.java
...ejoin/amos/patrol/service/remote/feign/AmosBankFeign.java
+12
-11
AmosRiskFeign.java
...ejoin/amos/patrol/service/remote/feign/AmosRiskFeign.java
+2
-2
PushFeign.java
...m/yeejoin/amos/patrol/service/remote/feign/PushFeign.java
+8
-8
application-dev.properties
...PatrolStart/src/main/resources/application-dev.properties
+10
-9
application-prod.properties
...atrolStart/src/main/resources/application-prod.properties
+1
-0
application-test.properties
...atrolStart/src/main/resources/application-test.properties
+1
-1
application.properties
...BankPatrolStart/src/main/resources/application.properties
+3
-3
No files found.
AmosBankPatrolService/src/main/java/com/yeejoin/amos/patrol/service/remote/feign/AmosBankFeign.java
View file @
1f15992d
package
com
.
yeejoin
.
amos
.
patrol
.
service
.
remote
.
feign
;
package
com
.
yeejoin
.
amos
.
patrol
.
service
.
remote
.
feign
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
@@ -13,23 +14,23 @@ import com.yeejoin.amos.patrol.common.entity.CommonResponse;
...
@@ -13,23 +14,23 @@ import com.yeejoin.amos.patrol.common.entity.CommonResponse;
//银行运控
//银行运控
@FeignClient
(
name
=
"${
AmosBank
.fegin.name}"
)
@FeignClient
(
name
=
"${
gateway
.fegin.name}"
)
public
interface
AmosBankFeign
{
public
interface
AmosBankFeign
{
@RequestMapping
(
value
=
"/api/protal/data"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/api/protal/data"
,
method
=
RequestMethod
.
GET
,
consumes
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
CommonResponse
pushSpcCheckResult
(
@RequestParam
(
"date"
)
String
permissionType
);
CommonResponse
pushSpcCheckResult
(
@RequestParam
(
"date"
)
String
permissionType
);
@RequestMapping
(
value
=
"/api/protal/hiddentrouble"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/api/protal/hiddentrouble"
,
method
=
RequestMethod
.
GET
,
consumes
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
CommonResponse
wakeUpOrRestartRiskFactorFlow
(
@RequestParam
(
"date"
)
String
permissionType
);
CommonResponse
wakeUpOrRestartRiskFactorFlow
(
@RequestParam
(
"date"
)
String
permissionType
);
@RequestMapping
(
value
=
"/rtsp/listVideoByPage"
,
method
=
RequestMethod
.
POST
,
consumes
=
"application/json"
)
@RequestMapping
(
value
=
"/rtsp/listVideoByPage"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
CommonResponse
getVideos
(
@RequestBody
MultiValueMap
<
String
,
Object
>
param
);
CommonResponse
getVideos
(
@RequestBody
MultiValueMap
<
String
,
Object
>
param
);
@RequestMapping
(
value
=
"/rtsp/listVideoByPage/{orgCode}/{parentId}/{current}/{pageSize}"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/rtsp/listVideoByPage/{orgCode}/{parentId}/{current}/{pageSize}"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
CommonResponse
getVideos
(
CommonResponse
getVideos
(
@PathVariable
(
"orgCode"
)
String
orgCode
,
@PathVariable
(
"orgCode"
)
String
orgCode
,
@PathVariable
(
"current"
)
Integer
current
,
@PathVariable
(
"current"
)
Integer
current
,
...
...
AmosBankPatrolService/src/main/java/com/yeejoin/amos/patrol/service/remote/feign/AmosRiskFeign.java
View file @
1f15992d
...
@@ -11,9 +11,9 @@ import org.springframework.web.bind.annotation.RequestMethod;
...
@@ -11,9 +11,9 @@ import org.springframework.web.bind.annotation.RequestMethod;
/**
/**
* 风险系统
* 风险系统
*/
*/
@FeignClient
(
name
=
"${
AmosRisk
.fegin.name}"
,
configuration
={
MultipartSupportConfig
.
class
})
@FeignClient
(
name
=
"${
gateway
.fegin.name}"
,
configuration
={
MultipartSupportConfig
.
class
})
public
interface
AmosRiskFeign
{
public
interface
AmosRiskFeign
{
@RequestMapping
(
value
=
"/api/risksource/data/patroldata"
,
method
=
RequestMethod
.
PUT
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@RequestMapping
(
value
=
"/api/risksource/data/patroldata"
,
method
=
RequestMethod
.
PUT
,
consumes
=
MediaType
.
APPLICATION_JSON_
UTF8_
VALUE
)
CommonResponse
checkStatusPushToB
(
@RequestBody
PointCheckInfoBusinessRespone
pb
);
CommonResponse
checkStatusPushToB
(
@RequestBody
PointCheckInfoBusinessRespone
pb
);
}
}
AmosBankPatrolService/src/main/java/com/yeejoin/amos/patrol/service/remote/feign/PushFeign.java
View file @
1f15992d
...
@@ -21,24 +21,24 @@ import com.yeejoin.amos.patrol.service.business.param.PushMsgParam;
...
@@ -21,24 +21,24 @@ import com.yeejoin.amos.patrol.service.business.param.PushMsgParam;
public
interface
PushFeign
{
public
interface
PushFeign
{
@RequestMapping
(
value
=
"/api/user/sendMessage"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/api/user/sendMessage"
,
method
=
RequestMethod
.
POST
)
CommonResponse
sendMessage
(
@RequestBody
List
<
PushMsgParam
>
responses
);
CommonResponse
sendMessage
(
@RequestBody
List
<
PushMsgParam
>
responses
);
@RequestMapping
(
value
=
"/api/user/sendMessageone"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/api/user/sendMessageone"
,
method
=
RequestMethod
.
POST
)
CommonResponse
sendMessageone
(
@RequestBody
PushMsgParam
responses
);
CommonResponse
sendMessageone
(
@RequestBody
PushMsgParam
responses
);
@RequestMapping
(
value
=
"/api/user/pushNoticeMany"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/api/user/pushNoticeMany"
,
method
=
RequestMethod
.
POST
)
CommonResponse
pushNoticeMany
(
@RequestBody
PushMsgParam
responses
);
CommonResponse
pushNoticeMany
(
@RequestBody
PushMsgParam
responses
);
@RequestMapping
(
value
=
"/api/user/buildPushPayload"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/api/user/buildPushPayload"
,
method
=
RequestMethod
.
POST
)
CommonResponse
buildPushPayload
(
@RequestBody
PushMsgParam
responses
);
CommonResponse
buildPushPayload
(
@RequestBody
PushMsgParam
responses
);
@RequestMapping
(
value
=
"/api/user/pushDevice"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/api/user/pushDevice"
,
method
=
RequestMethod
.
GET
)
CommonResponse
PushDevice
(
@RequestParam
(
"alias"
)
String
alias
);
CommonResponse
PushDevice
(
@RequestParam
(
"alias"
)
String
alias
);
@RequestMapping
(
value
=
"/api/user/PushDeviceRegistration"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/api/user/PushDeviceRegistration"
,
method
=
RequestMethod
.
GET
)
CommonResponse
PushDeviceRegistration
(
@RequestParam
(
"registrationId"
)
String
registrationId
,
@RequestParam
(
"alias"
)
String
alias
);
CommonResponse
PushDeviceRegistration
(
@RequestParam
(
"registrationId"
)
String
registrationId
,
@RequestParam
(
"alias"
)
String
alias
);
}
}
AmosBankPatrolStart/src/main/resources/application-dev.properties
View file @
1f15992d
#\u7aef\u53e3
#\u7aef\u53e3
#springcloud\u914d\u7f6e
#springcloud\u914d\u7f6e
eureka.client.serviceUrl.defaultZone
=
http://172.16.10.
175
:10001/eureka/
eureka.client.serviceUrl.defaultZone
=
http://172.16.10.
72
:10001/eureka/
eureka.client.register-with-eureka
=
true
eureka.client.register-with-eureka
=
true
eureka.client.fetch-registry
=
true
eureka.client.fetch-registry
=
true
eureka.client.healthcheck.enabled
=
true
eureka.client.healthcheck.enabled
=
true
...
@@ -11,14 +11,14 @@ ribbon.ReadTimeout=60000
...
@@ -11,14 +11,14 @@ ribbon.ReadTimeout=60000
ribbon.OkToRetryOnAllOperations
=
true
ribbon.OkToRetryOnAllOperations
=
true
ribbon.MaxAutoRetriesNextServer
=
2
ribbon.MaxAutoRetriesNextServer
=
2
ribbon.MaxAutoRetries
=
1
ribbon.MaxAutoRetries
=
1
server.port
=
90
01
server.port
=
90
10
#\u6570\u636e\u5e93\u914d\u7f6e
#\u6570\u636e\u5e93\u914d\u7f6e
#spring.datasource.url=jdbc:mysql://172.16.10.66:3306/amos_xian_bank?useSSL=false&&allowMultiQueries=true&serverTimezone=GMT&characterEncoding=utf8
#spring.datasource.url=jdbc:mysql://172.16.10.66:3306/amos_xian_bank?useSSL=false&&allowMultiQueries=true&serverTimezone=GMT&characterEncoding=utf8
#spring.datasource.username=root
#spring.datasource.username=root
#spring.datasource.password=root_123
#spring.datasource.password=root_123
spring.datasource.url
=
jdbc:mysql://172.16.10.
101:3306/amos_xian_bank?useSSL=false&&allowMultiQueries=true&serverTimezone=GMT%2b8
&characterEncoding=utf8
spring.datasource.url
=
jdbc:mysql://172.16.10.
66:3306/amos_xian_bank?useSSL=false&&allowMultiQueries=true&serverTimezone=GMT
&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
root_123
spring.datasource.password
=
root_123
...
@@ -47,16 +47,16 @@ Security.fegin.name=AMOS-API-PRIVILEGE
...
@@ -47,16 +47,16 @@ Security.fegin.name=AMOS-API-PRIVILEGE
#redis\u914d\u7f6e
#redis\u914d\u7f6e
spring.redis.database
=
1
spring.redis.database
=
1
spring.redis.host
=
1
27.0.0.1
spring.redis.host
=
1
72.16.11.20
spring.redis.port
=
6379
spring.redis.port
=
6379
spring.redis.password
=
spring.redis.password
=
1234560
spring.redis.jedis.pool.max-active
=
200
spring.redis.jedis.pool.max-active
=
200
spring.redis.jedis.pool.max-wait
=
-1
spring.redis.jedis.pool.max-wait
=
-1
spring.redis.jedis.pool.max-idle
=
10
spring.redis.jedis.pool.max-idle
=
10
spring.redis.jedis.pool.min-idle
=
0
spring.redis.jedis.pool.min-idle
=
0
spring.redis.timeout
=
1000
spring.redis.timeout
=
1000
spring.jackson.serialization.write-dates-as-timestamps
=
true
spring.jackson.serialization.write-dates-as-timestamps
=
true
spring.main.allow-bean-definition-overriding
=
true
#liquibase\u914d\u7f6e
#liquibase\u914d\u7f6e
...
@@ -91,7 +91,7 @@ params.isPush=true
...
@@ -91,7 +91,7 @@ params.isPush=true
#\u5b89\u5168\u670d\u52a1\u540d\u79f0\uff08\u6ce8\u518c\u4e2d\u5fc3\u540d\u79f0\uff09
#\u5b89\u5168\u670d\u52a1\u540d\u79f0\uff08\u6ce8\u518c\u4e2d\u5fc3\u540d\u79f0\uff09
#security.fegin.name=AmosSecurity-xjZjt
#security.fegin.name=AmosSecurity-xjZjt
#websocket\u670d\u52a1\u5730\u5740
#websocket\u670d\u52a1\u5730\u5740
params.remoteWebsocketUrl
=
http://172.16.1
0.101
:10600/
params.remoteWebsocketUrl
=
http://172.16.1
1.20
:10600/
#\u5de5\u4f5c\u6d41\u5730\u5740
#\u5de5\u4f5c\u6d41\u5730\u5740
#params.work.flow.address=
#params.work.flow.address=
#\u4ea4\u5927\u670d\u52a1\u5730\u5740
#\u4ea4\u5927\u670d\u52a1\u5730\u5740
...
@@ -104,4 +104,5 @@ params.token=http://yeejoin.3322.org:3302/demo.html?token=
...
@@ -104,4 +104,5 @@ params.token=http://yeejoin.3322.org:3302/demo.html?token=
spring.servlet.multipart.max-file-size
=
10480000
spring.servlet.multipart.max-file-size
=
10480000
spring.http.multipart.MaxRequestSize
=
50480000
spring.http.multipart.MaxRequestSize
=
50480000
upload.root.path
=
C:/upload
upload.root.path
=
C:/upload
upload.server.address
=
http://172.16.3.41:9999/
upload.server.address
=
http://172.16.3.41:9999/
\ No newline at end of file
gateway.fegin.name
=
AMOS-BANK-SERVER-GATEWAY
\ No newline at end of file
AmosBankPatrolStart/src/main/resources/application-prod.properties
View file @
1f15992d
...
@@ -59,6 +59,7 @@ spring.redis.timeout=1000
...
@@ -59,6 +59,7 @@ spring.redis.timeout=1000
AmosBank.fegin.name
=
AmosBank-xian12238
AmosBank.fegin.name
=
AmosBank-xian12238
Security.fegin.name
=
AMOS-API-PRIVILEGE
Security.fegin.name
=
AMOS-API-PRIVILEGE
gateway.fegin.name
=
AMOS-BANK-SERVER-GATEWAY
spring.jackson.serialization.write-dates-as-timestamps
=
true
spring.jackson.serialization.write-dates-as-timestamps
=
true
#liquibase
#liquibase
...
...
AmosBankPatrolStart/src/main/resources/application-test.properties
View file @
1f15992d
...
@@ -46,7 +46,7 @@ security.appKeyWeb=YH-PATROL2
...
@@ -46,7 +46,7 @@ security.appKeyWeb=YH-PATROL2
security.productApp
=
YH-PATROL2_APP
security.productApp
=
YH-PATROL2_APP
security.appKeyApp
=
YH-PATROL2
security.appKeyApp
=
YH-PATROL2
AmosBank.fegin.name
=
AmosBank-xian12238
AmosBank.fegin.name
=
AmosBank-xian12238
gateway.fegin.name
=
AMOS-BANK-SERVER-GATEWAYH
#redis
#redis
spring.redis.database
=
3
spring.redis.database
=
3
spring.redis.host
=
127.0.0.1
spring.redis.host
=
127.0.0.1
...
...
AmosBankPatrolStart/src/main/resources/application.properties
View file @
1f15992d
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
spring.application.name
=
YEEAMOSPATROL-2378
spring.application.name
=
YEEAMOSPATROL-2378
#server.port=9001
#server.port=9001
#spring.profiles.active=dev
#spring.profiles.active=dev
spring.profiles.active
=
prod
spring.profiles.active
=
dev
spring.jackson.dateFormat
=
yyyy-MM-dd HH:mm:ss
spring.jackson.dateFormat
=
yyyy-MM-dd HH:mm:ss
AmosRisk.fegin.name
=
YeeAmosRiskMode-237
AmosRisk.fegin.name
=
YeeAmosRiskMode-237
Push.fegin.name
=
AppMessagePushService15
Push.fegin.name
=
JPUSH
\ No newline at end of file
\ No newline at end of file
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