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
c27198ce
Commit
c27198ce
authored
Jun 14, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):A200,B012,B016需求修改
parent
da78372f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
77 additions
and
47 deletions
+77
-47
application-dev.properties
...e-96333-biz/src/main/resources/application-dev.properties
+12
-12
ChargingMediumConverter.java
...boot/module/jg/api/converter/ChargingMediumConverter.java
+12
-0
EquipInfoCylinderExcelDto.java
...mos/boot/module/jg/api/dto/EquipInfoCylinderExcelDto.java
+33
-28
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+6
-2
PressureVesselListener.java
...mos/boot/module/jg/biz/config/PressureVesselListener.java
+12
-3
PlatformUserTopicMessage.java
...boot/module/jg/biz/listener/PlatformUserTopicMessage.java
+1
-1
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+1
-1
压力容器设备导入模版.xlsx
...odule-jg-biz/src/main/resources/templates/压力容器设备导入模版.xlsx
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/resources/application-dev.properties
View file @
c27198ce
#DB properties:
#DB properties:
spring.datasource.url
=
jdbc:vastbase://
36.46.137.116
:5432/tzs_amos_tzs_biz_init?currentSchema=amos_tzs_biz&allowMultiQueries=true
spring.datasource.url
=
jdbc:vastbase://
172.16.10.243
:5432/tzs_amos_tzs_biz_init?currentSchema=amos_tzs_biz&allowMultiQueries=true
spring.datasource.username
=
admin
spring.datasource.username
=
admin
spring.datasource.password
=
Yeejoin@2023
spring.datasource.password
=
Yeejoin@2023
eureka.client.service-url.defaultZone
=
http://172.16.10.2
10
:10001/eureka/
eureka.client.service-url.defaultZone
=
http://172.16.10.2
43
: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.
17
:${server.port}${server.servlet.context-path}/actuator/health
eureka.instance.health-check-url
=
http://172.16.3.
70
:${server.port}${server.servlet.context-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.
17
:${server.port}${server.servlet.context-path}/actuator/info
eureka.instance.status-page-url
=
http://172.16.3.
70
:${server.port}${server.servlet.context-path}/actuator/info
eureka.instance.metadata-map.management.api-docs
=
http://172.16.3.
17
:${server.port}${server.servlet.context-path}/doc.html
eureka.instance.metadata-map.management.api-docs
=
http://172.16.3.
70
:${server.port}${server.servlet.context-path}/doc.html
eureka.instance.ip-address
=
172.16.3.
17
eureka.instance.ip-address
=
172.16.3.
70
## ES properties:
## ES properties:
elasticsearch.username
=
elastic
elasticsearch.username
=
elastic
elasticsearch.password
=
a123456
elasticsearch.password
=
a123456
spring.elasticsearch.rest.uris
=
http://172.16.10.2
10
:9200
spring.elasticsearch.rest.uris
=
http://172.16.10.2
43
:9200
## unit(h)
## unit(h)
alertcall.es.synchrony.time
=
48
alertcall.es.synchrony.time
=
48
#redis properties:
#redis properties:
spring.redis.mode
=
singleton
spring.redis.mode
=
singleton
spring.redis.database
=
1
spring.redis.database
=
1
spring.redis.host
=
172.16.10.2
10
spring.redis.host
=
172.16.10.2
43
spring.redis.port
=
1
6379
spring.redis.port
=
6379
spring.redis.password
=
yeejoin@2020
spring.redis.password
=
yeejoin@2020
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-wait
=
-1
spring.redis.lettuce.pool.max-wait
=
-1
...
@@ -70,20 +70,20 @@ tzs.wechat.tempId.supervise=P5XGbszS2Pc6kynvGjzPpZ--ikAwDZo6O7WdJ2EUxtE
...
@@ -70,20 +70,20 @@ tzs.wechat.tempId.supervise=P5XGbszS2Pc6kynvGjzPpZ--ikAwDZo6O7WdJ2EUxtE
tzs.wechat.test.userId
=
3413513
tzs.wechat.test.userId
=
3413513
##new properties
##new properties
org.filter.group.seq
=
1564150103147573249
org.filter.group.seq
=
1564150103147573249
fileserver.domain
=
http://172.16.10.2
10
:19000/
fileserver.domain
=
http://172.16.10.2
43
:19000/
log.level
=
INFO
log.level
=
INFO
duty.seats.role.ids
=
1585956200472674305,1585956257590706177
duty.seats.role.ids
=
1585956200472674305,1585956257590706177
## ???? properties:
## ???? properties:
rule.definition.load
=
false
rule.definition.load
=
false
##rule.definition.model-package=com.yeejoin.amos.boot.module.jcs.api.dto
##rule.definition.model-package=com.yeejoin.amos.boot.module.jcs.api.dto
rule.definition.default-agency
=
tzs
rule.definition.default-agency
=
tzs
rule.definition.local-ip
=
172.16.10.2
10
rule.definition.local-ip
=
172.16.10.2
43
#\u6C14\u74F6\u5145\u88C5\u4FE1\u606F\u5B9A\u65F6\u540C\u6B65\u81F3es
#\u6C14\u74F6\u5145\u88C5\u4FE1\u606F\u5B9A\u65F6\u540C\u6B65\u81F3es
tzs.cylinder.fill.cron
=
0 0 12 * * ?
tzs.cylinder.fill.cron
=
0 0 12 * * ?
#\u6C14\u74F6\u57FA\u672C\u4FE1\u606F\u5B9A\u65F6\u540C\u6B65\u81F3es
#\u6C14\u74F6\u57FA\u672C\u4FE1\u606F\u5B9A\u65F6\u540C\u6B65\u81F3es
tzs.cylinder.info.cron
=
0 0 1 * * ?
tzs.cylinder.info.cron
=
0 0 1 * * ?
# ??????????
# ??????????
minio.url.path
=
http://172.16.10.2
10
:9000/
minio.url.path
=
http://172.16.10.2
43
:9000/
## ɼǰ
## ɼǰ
regulatory_code_prefix
=
https://nav.sspai.top/tzs?code=
regulatory_code_prefix
=
https://nav.sspai.top/tzs?code=
outSystem.user.password
=
a1234560
outSystem.user.password
=
a1234560
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/converter/ChargingMediumConverter.java
View file @
c27198ce
...
@@ -18,11 +18,23 @@ public class ChargingMediumConverter implements Converter<String> {
...
@@ -18,11 +18,23 @@ public class ChargingMediumConverter implements Converter<String> {
EXCEL_TO_JAVA_MAP
.
put
(
"液化石油气"
,
"LIQUEFIED_PETROLEUM_GAS"
);
EXCEL_TO_JAVA_MAP
.
put
(
"液化石油气"
,
"LIQUEFIED_PETROLEUM_GAS"
);
EXCEL_TO_JAVA_MAP
.
put
(
"压缩天然气"
,
"COMPRESSED_NATURAL_GAS"
);
EXCEL_TO_JAVA_MAP
.
put
(
"压缩天然气"
,
"COMPRESSED_NATURAL_GAS"
);
EXCEL_TO_JAVA_MAP
.
put
(
"氢气"
,
"HYDROGEN"
);
EXCEL_TO_JAVA_MAP
.
put
(
"氢气"
,
"HYDROGEN"
);
EXCEL_TO_JAVA_MAP
.
put
(
"空气"
,
"AIR"
);
EXCEL_TO_JAVA_MAP
.
put
(
"氧气"
,
"OXYGEN"
);
EXCEL_TO_JAVA_MAP
.
put
(
"丙烷"
,
"PROPANE"
);
EXCEL_TO_JAVA_MAP
.
put
(
"丁烷"
,
"BUTANCE"
);
EXCEL_TO_JAVA_MAP
.
put
(
"液化二氧化碳"
,
"LIQUEFIED_CARBON_DIOXIDE"
);
EXCEL_TO_JAVA_MAP
.
put
(
"液氧"
,
"LIQUID_OXYGEN"
);
JAVA_TO_EXCEL_MAP
.
put
(
"LIQUEFIED_NATURAL_GAS"
,
"液化天然气"
);
JAVA_TO_EXCEL_MAP
.
put
(
"LIQUEFIED_NATURAL_GAS"
,
"液化天然气"
);
JAVA_TO_EXCEL_MAP
.
put
(
"LIQUEFIED_PETROLEUM_GAS"
,
"液化石油气"
);
JAVA_TO_EXCEL_MAP
.
put
(
"LIQUEFIED_PETROLEUM_GAS"
,
"液化石油气"
);
JAVA_TO_EXCEL_MAP
.
put
(
"COMPRESSED_NATURAL_GAS"
,
"压缩天然气"
);
JAVA_TO_EXCEL_MAP
.
put
(
"COMPRESSED_NATURAL_GAS"
,
"压缩天然气"
);
JAVA_TO_EXCEL_MAP
.
put
(
"HYDROGEN"
,
"氢气"
);
JAVA_TO_EXCEL_MAP
.
put
(
"HYDROGEN"
,
"氢气"
);
JAVA_TO_EXCEL_MAP
.
put
(
"AIR"
,
"空气"
);
JAVA_TO_EXCEL_MAP
.
put
(
"OXYGEN"
,
"氧气"
);
JAVA_TO_EXCEL_MAP
.
put
(
"PROPANE"
,
"丙烷"
);
JAVA_TO_EXCEL_MAP
.
put
(
"BUTANCE"
,
"丁烷"
);
JAVA_TO_EXCEL_MAP
.
put
(
"LIQUEFIED_CARBON_DIOXIDE"
,
"液化二氧化碳"
);
JAVA_TO_EXCEL_MAP
.
put
(
"LIQUID_OXYGEN"
,
"液氧"
);
}
}
@Override
@Override
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/EquipInfoCylinderExcelDto.java
View file @
c27198ce
...
@@ -144,122 +144,127 @@ public class EquipInfoCylinderExcelDto extends BaseDto {
...
@@ -144,122 +144,127 @@ public class EquipInfoCylinderExcelDto extends BaseDto {
@NotBlank
(
message
=
"检测机构名称不能为空"
)
@NotBlank
(
message
=
"检测机构名称不能为空"
)
private
String
inspectOrgName
;
private
String
inspectOrgName
;
@ApiModelProperty
(
value
=
"检测机构代码"
)
@ExcelProperty
(
value
=
"检测机构代码"
,
index
=
24
)
@NotBlank
(
message
=
"检测机构代码不能为空"
)
private
String
inspectOrgCode
;
@ApiModelProperty
(
value
=
"检测人员名称"
)
@ApiModelProperty
(
value
=
"检测人员名称"
)
@ExcelProperty
(
value
=
"检测人员名称"
,
index
=
2
4
)
@ExcelProperty
(
value
=
"检测人员名称"
,
index
=
2
5
)
@NotBlank
(
message
=
"检测人员名称不能为空"
)
@NotBlank
(
message
=
"检测人员名称不能为空"
)
private
String
inspectStaff
;
private
String
inspectStaff
;
@ApiModelProperty
(
value
=
"检测日期"
)
@ApiModelProperty
(
value
=
"检测日期"
)
@ExcelProperty
(
value
=
"检测日期"
,
index
=
2
5
)
@ExcelProperty
(
value
=
"检测日期"
,
index
=
2
6
)
@NotBlank
(
message
=
"检测日期不能为空"
)
@NotBlank
(
message
=
"检测日期不能为空"
)
@DateTimeFormat
(
"yyyy-MM-dd"
)
@DateTimeFormat
(
"yyyy-MM-dd"
)
private
String
inspectDate
;
private
String
inspectDate
;
//技术参数
//技术参数
@ExcelProperty
(
value
=
"额定质量(kg)"
,
index
=
2
6
)
@ExcelProperty
(
value
=
"额定质量(kg)"
,
index
=
2
7
)
@ApiModelProperty
(
value
=
"额定质量(kg)"
)
@ApiModelProperty
(
value
=
"额定质量(kg)"
)
private
String
ratedQuality
;
private
String
ratedQuality
;
@ExcelProperty
(
value
=
"使用环境温度(℃)"
,
index
=
2
7
)
@ExcelProperty
(
value
=
"使用环境温度(℃)"
,
index
=
2
8
)
@ApiModelProperty
(
value
=
"使用环境温度(℃)"
)
@ApiModelProperty
(
value
=
"使用环境温度(℃)"
)
private
String
ambientTemperature
;
private
String
ambientTemperature
;
@ExcelProperty
(
value
=
"单瓶容积(m3)"
,
index
=
2
8
)
@ExcelProperty
(
value
=
"单瓶容积(m3)"
,
index
=
2
9
)
@ApiModelProperty
(
value
=
"单瓶容积(m3)"
)
@ApiModelProperty
(
value
=
"单瓶容积(m3)"
)
@NotBlank
(
message
=
"单瓶容积(m3)不能为空"
)
@NotBlank
(
message
=
"单瓶容积(m3)不能为空"
)
private
String
singleBottleVolume
;
private
String
singleBottleVolume
;
@ExcelProperty
(
value
=
"型号"
,
index
=
29
)
@ExcelProperty
(
value
=
"型号"
,
index
=
30
)
@ApiModelProperty
(
value
=
"型号"
)
@ApiModelProperty
(
value
=
"型号"
)
private
String
modelNumber
;
private
String
modelNumber
;
@ExcelProperty
(
value
=
"充装介质"
,
index
=
3
0
,
converter
=
ChargingMediumConverter
.
class
)
@ExcelProperty
(
value
=
"充装介质"
,
index
=
3
1
,
converter
=
ChargingMediumConverter
.
class
)
@ApiModelProperty
(
value
=
"充装介质"
)
@ApiModelProperty
(
value
=
"充装介质"
)
@NotBlank
(
message
=
"充装介质不能为空"
)
@NotBlank
(
message
=
"充装介质不能为空"
)
private
String
chargingMedium
;
private
String
chargingMedium
;
@ExcelProperty
(
value
=
"规格"
,
index
=
3
1
)
@ExcelProperty
(
value
=
"规格"
,
index
=
3
2
)
@ApiModelProperty
(
value
=
"规格"
)
@ApiModelProperty
(
value
=
"规格"
)
private
String
specification
;
private
String
specification
;
@ExcelProperty
(
value
=
"外径"
,
index
=
3
2
)
@ExcelProperty
(
value
=
"外径"
,
index
=
3
3
)
@ApiModelProperty
(
value
=
"外径"
)
@ApiModelProperty
(
value
=
"外径"
)
private
String
outsideDiameter
;
private
String
outsideDiameter
;
@ExcelProperty
(
value
=
"壁厚"
,
index
=
3
3
)
@ExcelProperty
(
value
=
"壁厚"
,
index
=
3
4
)
@ApiModelProperty
(
value
=
"壁厚"
)
@ApiModelProperty
(
value
=
"壁厚"
)
private
String
wallThickness
;
private
String
wallThickness
;
@ExcelProperty
(
value
=
"长度"
,
index
=
3
4
)
@ExcelProperty
(
value
=
"长度"
,
index
=
3
5
)
@ApiModelProperty
(
value
=
"长度"
)
@ApiModelProperty
(
value
=
"长度"
)
private
String
length
;
private
String
length
;
@ExcelProperty
(
value
=
"公称工作压力(MPa)"
,
index
=
3
5
)
@ExcelProperty
(
value
=
"公称工作压力(MPa)"
,
index
=
3
6
)
@ApiModelProperty
(
value
=
"公称工作压力(MPa)"
)
@ApiModelProperty
(
value
=
"公称工作压力(MPa)"
)
@NotBlank
(
message
=
"公称工作压力(MPa)不能为空"
)
@NotBlank
(
message
=
"公称工作压力(MPa)不能为空"
)
private
String
nominalWorkingPressure
;
private
String
nominalWorkingPressure
;
@ExcelProperty
(
value
=
"材料(管路)"
,
index
=
3
6
)
@ExcelProperty
(
value
=
"材料(管路)"
,
index
=
3
7
)
@ApiModelProperty
(
value
=
"材料(管路)"
)
@ApiModelProperty
(
value
=
"材料(管路)"
)
private
String
piping
;
private
String
piping
;
@ExcelProperty
(
value
=
"无损检测方法(气瓶)"
,
index
=
3
7
,
converter
=
NondestructConverter
.
class
)
@ExcelProperty
(
value
=
"无损检测方法(气瓶)"
,
index
=
3
8
,
converter
=
NondestructConverter
.
class
)
@ApiModelProperty
(
value
=
"无损检测方法(气瓶)"
)
@ApiModelProperty
(
value
=
"无损检测方法(气瓶)"
)
private
String
qpLossless
;
//5988
private
String
qpLossless
;
//5988
@ExcelProperty
(
value
=
"材料(瓶体)"
,
index
=
3
8
)
@ExcelProperty
(
value
=
"材料(瓶体)"
,
index
=
3
9
)
@ApiModelProperty
(
value
=
"材料(瓶体)"
)
@ApiModelProperty
(
value
=
"材料(瓶体)"
)
private
String
bottleBody
;
private
String
bottleBody
;
@ExcelProperty
(
value
=
"材料(端塞)"
,
index
=
39
)
@ExcelProperty
(
value
=
"材料(端塞)"
,
index
=
40
)
@ApiModelProperty
(
value
=
"材料(端塞)"
)
@ApiModelProperty
(
value
=
"材料(端塞)"
)
private
String
endPlug
;
private
String
endPlug
;
@ExcelProperty
(
value
=
"无损检测比例(管路)(%)"
,
index
=
4
0
)
@ExcelProperty
(
value
=
"无损检测比例(管路)(%)"
,
index
=
4
1
)
@ApiModelProperty
(
value
=
"无损检测比例(管路)(%)"
)
@ApiModelProperty
(
value
=
"无损检测比例(管路)(%)"
)
private
String
glRatio
;
private
String
glRatio
;
@ExcelProperty
(
value
=
"无损检测比例(气瓶)(%)"
,
index
=
4
1
)
@ExcelProperty
(
value
=
"无损检测比例(气瓶)(%)"
,
index
=
4
2
)
@ApiModelProperty
(
value
=
"无损检测比例(气瓶)(%)"
)
@ApiModelProperty
(
value
=
"无损检测比例(气瓶)(%)"
)
private
String
qpRatio
;
private
String
qpRatio
;
@ExcelProperty
(
value
=
"无损检测方法(管路)"
,
index
=
4
2
,
converter
=
NondestructConverter
.
class
)
@ExcelProperty
(
value
=
"无损检测方法(管路)"
,
index
=
4
3
,
converter
=
NondestructConverter
.
class
)
@ApiModelProperty
(
value
=
"无损检测方法(管路)"
)
@ApiModelProperty
(
value
=
"无损检测方法(管路)"
)
private
String
glLossless
;
private
String
glLossless
;
@ExcelProperty
(
value
=
"耐压实验压力(气瓶)(Mpa)"
,
index
=
4
3
)
@ExcelProperty
(
value
=
"耐压实验压力(气瓶)(Mpa)"
,
index
=
4
4
)
@ApiModelProperty
(
value
=
"耐压实验压力(气瓶)(Mpa)"
)
@ApiModelProperty
(
value
=
"耐压实验压力(气瓶)(Mpa)"
)
private
String
qpPressure
;
private
String
qpPressure
;
@ExcelProperty
(
value
=
"耐压实验压力(管路)(Mpa)"
,
index
=
4
4
)
@ExcelProperty
(
value
=
"耐压实验压力(管路)(Mpa)"
,
index
=
4
5
)
@ApiModelProperty
(
value
=
"耐压实验压力(管路)(Mpa)"
)
@ApiModelProperty
(
value
=
"耐压实验压力(管路)(Mpa)"
)
private
String
glPressure
;
private
String
glPressure
;
@ExcelProperty
(
value
=
"气密性试验压力(气瓶)(Mpa)"
,
index
=
4
5
)
@ExcelProperty
(
value
=
"气密性试验压力(气瓶)(Mpa)"
,
index
=
4
6
)
@ApiModelProperty
(
value
=
"气密性试验压力(气瓶)(Mpa)"
)
@ApiModelProperty
(
value
=
"气密性试验压力(气瓶)(Mpa)"
)
private
String
qpAirTightness
;
private
String
qpAirTightness
;
@ExcelProperty
(
value
=
"气体置换后压力(MPa)"
,
index
=
4
6
)
@ExcelProperty
(
value
=
"气体置换后压力(MPa)"
,
index
=
4
7
)
@ApiModelProperty
(
value
=
"气体置换后压力(MPa)"
)
@ApiModelProperty
(
value
=
"气体置换后压力(MPa)"
)
private
String
displacementPressure
;
private
String
displacementPressure
;
@ExcelProperty
(
value
=
"热处理方式"
,
index
=
4
7
)
@ExcelProperty
(
value
=
"热处理方式"
,
index
=
4
8
)
@ApiModelProperty
(
value
=
"热处理方式"
)
@ApiModelProperty
(
value
=
"热处理方式"
)
private
String
heatTreatmentMethod
;
private
String
heatTreatmentMethod
;
@ExcelProperty
(
value
=
"气密性实验压力(管路)(MPa)"
,
index
=
4
8
)
@ExcelProperty
(
value
=
"气密性实验压力(管路)(MPa)"
,
index
=
4
9
)
@ApiModelProperty
(
value
=
"气密性实验压力(管路)(MPa)"
)
@ApiModelProperty
(
value
=
"气密性实验压力(管路)(MPa)"
)
private
String
glAirTightness
;
private
String
glAirTightness
;
@ExcelProperty
(
value
=
"气瓶安装位置"
,
index
=
49
)
@ExcelProperty
(
value
=
"气瓶安装位置"
,
index
=
50
)
@ApiModelProperty
(
value
=
"气瓶安装位置"
)
@ApiModelProperty
(
value
=
"气瓶安装位置"
)
private
String
installationPosition
;
private
String
installationPosition
;
@ExcelProperty
(
value
=
"瓶体内含氧量(%)"
,
index
=
5
0
)
@ExcelProperty
(
value
=
"瓶体内含氧量(%)"
,
index
=
5
1
)
@ApiModelProperty
(
value
=
"瓶体内含氧量(%)"
)
@ApiModelProperty
(
value
=
"瓶体内含氧量(%)"
)
private
String
oxygen
;
private
String
oxygen
;
@ExcelProperty
(
value
=
"热处理温度(℃)"
,
index
=
5
1
)
@ExcelProperty
(
value
=
"热处理温度(℃)"
,
index
=
5
2
)
@ApiModelProperty
(
value
=
"热处理温度(℃)"
)
@ApiModelProperty
(
value
=
"热处理温度(℃)"
)
private
String
qpHeatTreatmentTemperature
;
private
String
qpHeatTreatmentTemperature
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
c27198ce
...
@@ -2,8 +2,12 @@
...
@@ -2,8 +2,12 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.jg.api.mapper.CommonMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.jg.api.mapper.CommonMapper"
>
<select
id=
"getUnitListByType"
resultType=
"java.util.Map"
>
<select
id=
"getUnitListByType"
resultType=
"java.util.Map"
>
SELECT use_unit_code useCode,
SELECT use_unit_code AS useCode,
use_unit useUnit
CASE
WHEN unit_type = '个人主体'
THEN CONCAT(use_unit, '_', SUBSTRING(use_unit_code, LENGTH(use_unit_code) - 3, 4))
ELSE use_unit
END AS useUnit
FROM tz_base_enterprise_info
FROM tz_base_enterprise_info
WHERE is_delete = '0'
WHERE is_delete = '0'
<if
test=
"type != null and type != 'all'"
>
<if
test=
"type != null and type != 'all'"
>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/config/PressureVesselListener.java
View file @
c27198ce
...
@@ -132,6 +132,8 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
...
@@ -132,6 +132,8 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
checkNotBlank
(
data
.
getProduceDate
(),
"制造日期不能为空"
);
checkNotBlank
(
data
.
getProduceDate
(),
"制造日期不能为空"
);
checkDateFormatCorrect
(
data
.
getProduceDate
(),
"制造日期格式不正确"
);
checkDateFormatCorrect
(
data
.
getProduceDate
(),
"制造日期格式不正确"
);
checkNotBlank
(
data
.
getInspectOrgName
(),
"检测机构名称不能为空"
);
checkNotBlank
(
data
.
getInspectOrgName
(),
"检测机构名称不能为空"
);
checkNotBlank
(
data
.
getInspectOrgCode
(),
"检测机构代码不能为空"
);
checkInspectOrg
(
data
.
getInspectOrgCode
());
checkNotBlank
(
data
.
getInspectStaff
(),
"检测人员名称不能为空"
);
checkNotBlank
(
data
.
getInspectStaff
(),
"检测人员名称不能为空"
);
checkNotBlank
(
data
.
getInspectDate
(),
"检测日期不能为空"
);
checkNotBlank
(
data
.
getInspectDate
(),
"检测日期不能为空"
);
checkDateFormatCorrect
(
data
.
getInspectDate
(),
"检测日期格式不正确"
);
checkDateFormatCorrect
(
data
.
getInspectDate
(),
"检测日期格式不正确"
);
...
@@ -168,6 +170,13 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
...
@@ -168,6 +170,13 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
}
}
}
}
private
void
checkInspectOrg
(
String
inspectOrgCode
){
List
<
Map
<
String
,
Object
>>
InspectOrgList
=
commonService
.
getUnitListByType
(
"inspection"
,
""
);
if
(
findUseCode
(
InspectOrgList
,
inspectOrgCode
)
==
null
)
{
result
.
append
(
"未查询到该检验机构"
);
}
}
// 检查字段是否为空,如果为空则追加错误信息到result
// 检查字段是否为空,如果为空则追加错误信息到result
private
void
checkNotBlank
(
String
value
,
String
errorMessage
)
{
private
void
checkNotBlank
(
String
value
,
String
errorMessage
)
{
if
(
StringUtils
.
isBlank
(
value
))
{
if
(
StringUtils
.
isBlank
(
value
))
{
...
@@ -250,7 +259,7 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
...
@@ -250,7 +259,7 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfo
=
new
IdxBizJgInspectionDetectionInfo
();
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfo
=
new
IdxBizJgInspectionDetectionInfo
();
BeanUtils
.
copyProperties
(
data
,
inspectionDetectionInfo
);
BeanUtils
.
copyProperties
(
data
,
inspectionDetectionInfo
);
List
<
Map
<
String
,
Object
>>
InspectOrgList
=
commonService
.
getUnitListByType
(
"inspection"
,
""
);
List
<
Map
<
String
,
Object
>>
InspectOrgList
=
commonService
.
getUnitListByType
(
"inspection"
,
""
);
inspectionDetectionInfo
.
setInspectOrgCode
(
findUseCode
(
InspectOrgList
,
data
.
getInspectOrgName
()
));
inspectionDetectionInfo
.
setInspectOrgCode
(
data
.
getInspectOrgCode
(
));
inspectionDetectionInfo
.
setRecord
(
record
);
inspectionDetectionInfo
.
setRecord
(
record
);
inspectionDetectionInfo
.
setRecDate
(
date
);
inspectionDetectionInfo
.
setRecDate
(
date
);
inspectionDetectionInfo
.
setInspectType
(
"ZZJDJY"
);
inspectionDetectionInfo
.
setInspectType
(
"ZZJDJY"
);
...
@@ -348,9 +357,9 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
...
@@ -348,9 +357,9 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
return
result
.
toString
();
return
result
.
toString
();
}
}
public
String
findUseCode
(
List
<
Map
<
String
,
Object
>>
unitList
,
String
inspectOrg
Nam
e
)
{
public
String
findUseCode
(
List
<
Map
<
String
,
Object
>>
unitList
,
String
inspectOrg
Cod
e
)
{
Optional
<
Map
<
String
,
Object
>>
optional
=
unitList
.
stream
()
Optional
<
Map
<
String
,
Object
>>
optional
=
unitList
.
stream
()
.
filter
(
map
->
map
.
containsKey
(
"useUnit"
)
&&
map
.
get
(
"useUnit"
).
equals
(
inspectOrgNam
e
))
.
filter
(
map
->
map
.
get
(
"useCode"
).
equals
(
inspectOrgCod
e
))
.
findFirst
();
.
findFirst
();
return
optional
.
map
(
map
->
(
String
)
map
.
get
(
"useCode"
)).
orElse
(
null
);
return
optional
.
map
(
map
->
(
String
)
map
.
get
(
"useCode"
)).
orElse
(
null
);
}
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/listener/PlatformUserTopicMessage.java
View file @
c27198ce
...
@@ -79,7 +79,7 @@ public class PlatformUserTopicMessage extends EmqxListener {
...
@@ -79,7 +79,7 @@ public class PlatformUserTopicMessage extends EmqxListener {
private
void
processDataResult
(
JSONObject
dataResultObject
)
{
private
void
processDataResult
(
JSONObject
dataResultObject
)
{
try
{
try
{
String
companyType
=
"
行政审批局
"
;
String
companyType
=
"
监管机构
"
;
String
companyTypeValue
=
dataResultObject
.
getString
(
"companyType"
);
String
companyTypeValue
=
dataResultObject
.
getString
(
"companyType"
);
if
(
StringUtils
.
isNotEmpty
(
companyTypeValue
)
&&
companyTypeValue
.
contains
(
companyType
))
{
if
(
StringUtils
.
isNotEmpty
(
companyTypeValue
)
&&
companyTypeValue
.
contains
(
companyType
))
{
commonService
.
creatApproveTree
();
commonService
.
creatApproveTree
();
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
View file @
c27198ce
...
@@ -1712,7 +1712,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -1712,7 +1712,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
List
<
Map
<
String
,
Object
>>
inspectionAndTestingInstitutions
=
commonMapper
.
getUnitListByType
(
INSPECTION_AND_TESTING_INSTITUTIONS
);
List
<
Map
<
String
,
Object
>>
inspectionAndTestingInstitutions
=
commonMapper
.
getUnitListByType
(
INSPECTION_AND_TESTING_INSTITUTIONS
);
Optional
<
Map
<
String
,
Object
>>
optional
=
inspectionAndTestingInstitutions
.
stream
().
filter
(
x
->
x
.
get
(
"useCode"
).
equals
(
inspectionDetectionInfo
.
getInspectOrgCode
())).
findFirst
();
Optional
<
Map
<
String
,
Object
>>
optional
=
inspectionAndTestingInstitutions
.
stream
().
filter
(
x
->
x
.
get
(
"useCode"
).
equals
(
inspectionDetectionInfo
.
getInspectOrgCode
())).
findFirst
();
Map
<
String
,
Object
>
mapOrDefault
=
optional
.
orElse
(
Collections
.
emptyMap
());
Map
<
String
,
Object
>
mapOrDefault
=
optional
.
orElse
(
Collections
.
emptyMap
());
inspectionDetectionInfo
.
setInspectOrgName
((
String
)
mapOrDefault
.
getOrDefault
(
"useUnit"
,
inspectionDetectionInfo
.
getInspectOrg
Cod
e
()));
inspectionDetectionInfo
.
setInspectOrgName
((
String
)
mapOrDefault
.
getOrDefault
(
"useUnit"
,
inspectionDetectionInfo
.
getInspectOrg
Nam
e
()));
inspectionDetectionInfo
.
setRecord
(
record
);
inspectionDetectionInfo
.
setRecord
(
record
);
inspectionDetectionInfo
.
setRecDate
(
date
);
inspectionDetectionInfo
.
setRecDate
(
date
);
inspectionDetectionInfo
.
setSequenceNbr
(
OPERATESAVE
.
equals
(
operateType
)
?
null
:
String
.
valueOf
(
equipmentInfoForm
.
get
(
"INSPECTIONDETECTIONINFO_SEQ"
)));
inspectionDetectionInfo
.
setSequenceNbr
(
OPERATESAVE
.
equals
(
operateType
)
?
null
:
String
.
valueOf
(
equipmentInfoForm
.
get
(
"INSPECTIONDETECTIONINFO_SEQ"
)));
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/templates/压力容器设备导入模版.xlsx
View file @
c27198ce
No preview for this file type
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