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
a6c80144
Commit
a6c80144
authored
Aug 06, 2021
by
李成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加公有数据字典类扫描
parent
a3efd40c
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
60 additions
and
47 deletions
+60
-47
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+9
-9
pom.xml
amos-boot-system-fas/pom.xml
+1
-1
YeeAmosFireAutoSysStart.java
...c/main/java/com/yeejoin/amos/YeeAmosFireAutoSysStart.java
+1
-1
application-dev.properties
...-system-fas/src/main/resources/application-dev.properties
+8
-8
application.properties
...boot-system-fas/src/main/resources/application.properties
+4
-3
pom.xml
amos-boot-system-knowledgebase/pom.xml
+2
-0
KnowledgebaseApplication.java
.../main/java/com/yeejoin/amos/KnowledgebaseApplication.java
+2
-1
application-dev.properties
...owledgebase/src/main/resources/application-dev.properties
+9
-9
application.properties
...m-knowledgebase/src/main/resources/application.properties
+4
-2
pom.xml
amos-boot-system-patrol/pom.xml
+1
-1
PatrolApplication.java
...rol/src/main/java/com/yeejoin/amos/PatrolApplication.java
+4
-4
application-dev.properties
...stem-patrol/src/main/resources/application-dev.properties
+13
-8
application.properties
...t-system-patrol/src/main/resources/application.properties
+2
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-fas-biz/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
a6c80144
...
@@ -65,8 +65,8 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
...
@@ -65,8 +65,8 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
@Qualifier
(
"contingencyAction"
)
@Qualifier
(
"contingencyAction"
)
@Autowired
@Autowired
private
CustomerAction
customerAction
;
private
CustomerAction
customerAction
;
@Value
(
"${now.gateway.address}"
)
//
@Value("${now.gateway.address}")
private
String
gateWayAddress
;
//
private String gateWayAddress;
// @Value("${number.plan.projectName}")
// @Value("${number.plan.projectName}")
// private String projectName;
// private String projectName;
private
final
PlanOperationRecordMapper
planOperationRecordMapper
;
private
final
PlanOperationRecordMapper
planOperationRecordMapper
;
...
@@ -542,13 +542,13 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
...
@@ -542,13 +542,13 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
if
(
ValidationUtil
.
isEmpty
(
planList
))
{
if
(
ValidationUtil
.
isEmpty
(
planList
))
{
return
;
return
;
}
}
planList
.
forEach
(
x
->{
//
planList.forEach(x->{
String
picture
=
x
.
getPicture
();
//
String picture = x.getPicture();
if
(
StringUtils
.
isNotEmpty
(
picture
))
{
//
if (StringUtils.isNotEmpty(picture)) {
x
.
setPicture
(
gateWayAddress
+
picture
);
//
x.setPicture(gateWayAddress+picture);
}
//
}
//
});
//
});
List
<
Long
>
idList
=
new
ArrayList
<>();
List
<
Long
>
idList
=
new
ArrayList
<>();
planList
.
forEach
(
e
->
idList
.
add
(
e
.
getId
()));
planList
.
forEach
(
e
->
idList
.
add
(
e
.
getId
()));
Map
<
Object
,
List
<
PlanDoc
>>
docMapList
=
null
;
Map
<
Object
,
List
<
PlanDoc
>>
docMapList
=
null
;
...
...
amos-boot-system-fas/pom.xml
View file @
a6c80144
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</parent>
</parent>
<artifactId>
amos-boot-system-fas
</artifactId>
<artifactId>
amos-boot-system-fas
</artifactId>
<version>
3.0.1.3
</version>
<dependencies>
<dependencies>
...
...
amos-boot-system-fas/src/main/java/com/yeejoin/amos/YeeAmosFireAutoSysStart.java
View file @
a6c80144
...
@@ -54,7 +54,7 @@ import com.yeejoin.amos.fas.context.IotContext;
...
@@ -54,7 +54,7 @@ import com.yeejoin.amos.fas.context.IotContext;
@EnableAsync
@EnableAsync
@EnableEurekaClient
@EnableEurekaClient
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
})
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
})
@MapperScan
(
basePackages
=
{
"com.yeejoin.amos.fas.business.dao.mapper"
,
"org.typroject.tyboot.*.*.face.orm.dao"
,
"com.yeejoin.amos.api.*.face.orm.dao"
})
@MapperScan
(
basePackages
=
{
"com.yeejoin.amos.fas.business.dao.mapper"
,
"org.typroject.tyboot.*.*.face.orm.dao"
,
"com.yeejoin.amos.api.*.face.orm.dao"
,
"com.yeejoin.amos.boot.biz.common.dao.mapper"
})
public
class
YeeAmosFireAutoSysStart
implements
ApplicationContextAware
{
public
class
YeeAmosFireAutoSysStart
implements
ApplicationContextAware
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
YeeAmosFireAutoSysStart
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
YeeAmosFireAutoSysStart
.
class
);
...
...
amos-boot-system-fas/src/main/resources/application-dev.properties
View file @
a6c80144
#DB properties:
#DB properties:
spring.datasource.url
=
jdbc:mysql://172.16.1
1.20:3306/autosys_business_v3.0.0.2
?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.url
=
jdbc:mysql://172.16.1
0.66:3306/safety-business-3.0.1
?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
root_123
spring.datasource.password
=
root_123
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
...
@@ -30,10 +30,10 @@ eureka.instance.metadata-map.management.api-docs=http://localhost:${server.port}
...
@@ -30,10 +30,10 @@ eureka.instance.metadata-map.management.api-docs=http://localhost:${server.port}
#redis
#redis
spring.redis.database
=
1
spring.redis.database
=
0
spring.redis.host
=
172.16.1
1.20
spring.redis.host
=
172.16.1
0.85
spring.redis.port
=
6379
spring.redis.port
=
6379
spring.redis.password
=
1234560
spring.redis.password
=
amos2019Redis
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
...
@@ -51,9 +51,9 @@ params.isPush=false
...
@@ -51,9 +51,9 @@ params.isPush=false
## emqx
## emqx
emqx.clean-session
=
true
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.1
1.33
:1883
emqx.broker
=
tcp://172.16.1
0.85
:1883
emqx.user-name
=
admin
emqx.user-name
=
super
emqx.password
=
public
emqx.password
=
a123456
#文件服务器地址
#文件服务器地址
file.downLoad.url
=
http://39.98.
246.31:8888
/
file.downLoad.url
=
http://39.98.
45.134:9000
/
amos-boot-system-fas/src/main/resources/application.properties
View file @
a6c80144
spring.application.name
=
AMOS-AUTOSYS
-lcl
spring.application.name
=
AMOS-AUTOSYS
server.servlet.context-path
=
/fireAutoSys
server.servlet.context-path
=
/fireAutoSys
server.port
=
8085
server.port
=
8085
#environment
#environment
...
@@ -97,9 +97,10 @@ data.type.hydrant=3105
...
@@ -97,9 +97,10 @@ data.type.hydrant=3105
outSystem.fegin.name
=
unKnow
outSystem.fegin.name
=
unKnow
outSystem.user.password
=
a1234560
outSystem.user.password
=
a1234560
privilege.fegin.name
=
AMOS-API-PRIVILEGE
privilege.fegin.name
=
AMOS-API-PRIVILEGE
## redis失效时间
redis.cache.failure.time
=
10800
#当前gateway的IP地址
#当前gateway的IP地址
now.gateway.address
=
http://172.16.10.72:10005/
#
now.gateway.address=http://172.16.10.72:10005/
...
...
amos-boot-system-knowledgebase/pom.xml
View file @
a6c80144
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
<version>
1.0.0
</version>
<version>
1.0.0
</version>
</parent>
</parent>
<artifactId>
amos-boot-system-knowledgebase
</artifactId>
<artifactId>
amos-boot-system-knowledgebase
</artifactId>
<version>
1.0.1.9
</version>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<groupId>
com.amosframework.boot
</groupId>
...
...
amos-boot-system-knowledgebase/src/main/java/com/yeejoin/amos/KnowledgebaseApplication.java
View file @
a6c80144
...
@@ -24,7 +24,8 @@ import org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler;
...
@@ -24,7 +24,8 @@ import org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler;
@MapperScan
({
"com.yeejoin.amos.knowledgebase.face.orm.dao*"
,
@MapperScan
({
"com.yeejoin.amos.knowledgebase.face.orm.dao*"
,
"org.typroject.tyboot.face.*.orm.dao*"
,
"org.typroject.tyboot.face.*.orm.dao*"
,
"org.typroject.tyboot.core.auth.face.orm.dao*"
,
"org.typroject.tyboot.core.auth.face.orm.dao*"
,
"org.typroject.tyboot.component.*.face.orm.dao*"
})
"org.typroject.tyboot.component.*.face.orm.dao*"
,
"com.yeejoin.amos.boot.biz.common.dao.mapper"
})
@SpringBootApplication
(
scanBasePackages
=
{
"com.yeejoin.amos"
,
"org.typroject"
})
@SpringBootApplication
(
scanBasePackages
=
{
"com.yeejoin.amos"
,
"org.typroject"
})
public
class
KnowledgebaseApplication
{
public
class
KnowledgebaseApplication
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
KnowledgebaseApplication
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
KnowledgebaseApplication
.
class
);
...
...
amos-boot-system-knowledgebase/src/main/resources/application-dev.properties
View file @
a6c80144
##开发环境配置文件
##开发环境配置文件
# jdbc_config
# jdbc_config
spring.datasource.url
=
jdbc:mysql://
172.16.10.66:3306/knowledge_base
?characterEncoding=utf8&serverTimezone=Asia/Shanghai
spring.datasource.url
=
jdbc:mysql://
localhost:3306/safety-knowledge-3.0.0
?characterEncoding=utf8&serverTimezone=Asia/Shanghai
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
root_123
spring.datasource.password
=
root_123
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
...
@@ -30,17 +30,16 @@ eureka.client.service-url.defaultZone =http://172.16.10.72:10001/eureka/
...
@@ -30,17 +30,16 @@ eureka.client.service-url.defaultZone =http://172.16.10.72:10001/eureka/
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
management.endpoint.health.show-details
=
always
management.endpoint.health.show-details
=
always
management.endpoints.web.exposure.include
=
*
management.endpoints.web.exposure.include
=
*
eureka.instance.health-check-url
=
http://172.16.3.75:${server.port}${server.servlet.context-path}
/actuator/health
eureka.instance.health-check-url
-path
=
/actuator/health
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.status-page-url
=
http://172.16.3.75:${server.port}${server.servlet.context-path}
/actuator/info
eureka.instance.status-page-url
-path
=
/actuator/info
eureka.instance.metadata-map.management.api-docs
=
http://
172.16.3.75
:${server.port}${server.servlet.context-path}/swagger-ui.html
eureka.instance.metadata-map.management.api-docs
=
http://
localhost
:${server.port}${server.servlet.context-path}/swagger-ui.html
#ES
#ES
spring.data.elasticsearch.cluster-name
=
elasticsearch
spring.data.elasticsearch.cluster-name
=
elasticsearch
spring.data.elasticsearch.cluster-nodes
=
127.0.0.1:9300
spring.data.elasticsearch.cluster-nodes
=
172.16.10.66:9300
spring.elasticsearch.rest.uris
=
http://127.0.0.1:9200
spring.elasticsearch.rest.uris
=
http://172.16.10.66:9200
#emqx v4.0
#emqx v4.0
emqx.clean-session
=
true
emqx.clean-session
=
true
...
@@ -51,9 +50,9 @@ emqx.password=a123456
...
@@ -51,9 +50,9 @@ emqx.password=a123456
emqx.max-inflight
=
1000
emqx.max-inflight
=
1000
#DIY
#DIY
diy-config.report.record-data
=
fals
e
diy-config.report.record-data
=
tru
e
#pic server uri
#pic server uri
pic-server.uri
=
http://39.98.
246.31:8888
/
pic-server.uri
=
http://39.98.
45.134:9000
/
#pic router mark
#pic router mark
pic-server.router
=
/fileURI/
pic-server.router
=
/fileURI/
\ No newline at end of file
amos-boot-system-knowledgebase/src/main/resources/application.properties
View file @
a6c80144
...
@@ -18,4 +18,6 @@ logging.config=classpath:logback-${spring.profiles.active}.xml
...
@@ -18,4 +18,6 @@ logging.config=classpath:logback-${spring.profiles.active}.xml
# mybatis-plus
# mybatis-plus
mybatis-plus.type-aliases-super-type
=
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
mybatis-plus.type-aliases-super-type
=
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
mybatis-plus.global-config.db-config.id-type
=
id_worker
mybatis-plus.global-config.db-config.id-type
=
id_worker
mybatis-plus.mapper-locations
=
classpath:mapper/*
mybatis-plus.mapper-locations
=
classpath:mapper/*
\ No newline at end of file
## redis失效时间
redis.cache.failure.time
=
10800
\ No newline at end of file
amos-boot-system-patrol/pom.xml
View file @
a6c80144
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</parent>
</parent>
<artifactId>
amos-boot-system-patrol
</artifactId>
<artifactId>
amos-boot-system-patrol
</artifactId>
<version>
3.0.6
</version>
<dependencies>
<dependencies>
<dependency>
<dependency>
...
...
amos-boot-system-patrol/src/main/java/com/yeejoin/amos/PatrolApplication.java
View file @
a6c80144
...
@@ -45,11 +45,11 @@ import org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler;
...
@@ -45,11 +45,11 @@ import org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler;
@EnableAsync
@EnableAsync
@EnableEurekaClient
@EnableEurekaClient
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
})
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
})
@MapperScan
(
basePackages
=
{
"com.yeejoin.amos.patrol.business.dao.mapper"
,
"org.typroject.tyboot.core.auth.face.orm.dao"
})
@MapperScan
(
basePackages
=
{
"com.yeejoin.amos.patrol.business.dao.mapper"
,
"org.typroject.tyboot.core.auth.face.orm.dao"
,
"com.yeejoin.amos.boot.biz.common.dao.mapper"
})
public
class
YeeAMOSPatrolStart
/* implements ApplicationContextAware*/
public
class
PatrolApplication
{
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
YeeAMOSPatrolStart
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
PatrolApplication
.
class
);
...
@@ -69,7 +69,7 @@ public class YeeAMOSPatrolStart/* implements ApplicationContextAware*/
...
@@ -69,7 +69,7 @@ public class YeeAMOSPatrolStart/* implements ApplicationContextAware*/
public
static
void
main
(
String
[]
args
)
throws
UnknownHostException
public
static
void
main
(
String
[]
args
)
throws
UnknownHostException
{
{
logger
.
info
(
"start Service.........."
);
logger
.
info
(
"start Service.........."
);
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
YeeAMOSPatrolStart
.
class
,
args
);
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
PatrolApplication
.
class
,
args
);
GlobalExceptionHandler
.
setAlwaysOk
(
true
);
GlobalExceptionHandler
.
setAlwaysOk
(
true
);
Environment
env
=
context
.
getEnvironment
();
Environment
env
=
context
.
getEnvironment
();
String
ip
=
InetAddress
.
getLocalHost
().
getHostAddress
();
String
ip
=
InetAddress
.
getLocalHost
().
getHostAddress
();
...
...
amos-boot-system-patrol/src/main/resources/application-dev.properties
View file @
a6c80144
eureka.client.serviceUrl.defaultZone
=
http://172.16.10.72:10001/eureka/
eureka.client.serviceUrl.defaultZone
=
http://172.16.10.72:10001/eureka/
eureka.client.register-with-eureka
=
true
eureka.client.registry-fetch-interval-seconds
=
5
eureka.client.fetch-registry
=
true
eureka.client.healthcheck.enabled
=
true
eureka.client.fetchRegistry
=
true
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
management.endpoint.health.show-details
=
always
management.endpoints.web.exposure.include
=
*
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.lease-expiration-duration-in-seconds
=
10
eureka.instance.lease-renewal-interval-in-seconds
=
5
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.status-page-url-path
=
/actuator/info
ribbon.eureka.enabled
=
true
ribbon.eureka.enabled
=
true
ribbon.ConnectTimeout
=
5000
ribbon.ConnectTimeout
=
5000
ribbon.ReadTimeout
=
6000
ribbon.ReadTimeout
=
6000
...
@@ -22,8 +27,8 @@ spring.datasource.testWhileIdle = true
...
@@ -22,8 +27,8 @@ spring.datasource.testWhileIdle = true
spring.datasource.validationQuery
=
SELECT 1
spring.datasource.validationQuery
=
SELECT 1
#Photo--图片服务器地址
#Photo--图片服务器地址
file.ip
=
39.98.
246.31
file.ip
=
39.98.
45.134
file.port
=
8888
file.port
=
9000
security.password
=
a1234560
security.password
=
a1234560
security.loginId
=
jc_wjk006
security.loginId
=
jc_wjk006
...
@@ -90,4 +95,4 @@ emqx.password=a123456
...
@@ -90,4 +95,4 @@ emqx.password=a123456
emqx.max-inflight
=
1000
emqx.max-inflight
=
1000
upload.root.path
=
D:/nginx/upload/
upload.root.path
=
D:/nginx/upload/
upload.server.address
=
http://39.100.241.164:9999/
upload.server.address
=
http://39.98.45.134:9000/
\ No newline at end of file
\ No newline at end of file
amos-boot-system-patrol/src/main/resources/application.properties
View file @
a6c80144
...
@@ -46,3 +46,5 @@ amosRefresh.danger.topic =patrolDangerInsertOrUpdate
...
@@ -46,3 +46,5 @@ amosRefresh.danger.topic =patrolDangerInsertOrUpdate
amosRefresh.patrol.topic
=
patrolCheckInsert
amosRefresh.patrol.topic
=
patrolCheckInsert
#停止通过WEB公开所有端点
#停止通过WEB公开所有端点
management.endpoints.web.exposure.exclude
=
*
management.endpoints.web.exposure.exclude
=
*
## redis失效时间
redis.cache.failure.time
=
10800
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