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
8a89354f
Commit
8a89354f
authored
Sep 09, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refeat(jyjc): 报检规则4.0开发
1.报检规则联调自测,大型游乐设施AB级过滤
parent
af39bcc7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
12 deletions
+27
-12
InspectionApplicationPushEventListener.java
...vent/listener/InspectionApplicationPushEventListener.java
+1
-1
EnableRuleDataPreparationService.java
.../event/rule/service/EnableRuleDataPreparationService.java
+16
-10
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+10
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/event/listener/InspectionApplicationPushEventListener.java
View file @
8a89354f
...
@@ -361,7 +361,7 @@ public class InspectionApplicationPushEventListener {
...
@@ -361,7 +361,7 @@ public class InspectionApplicationPushEventListener {
equipData
.
setUseCertFilePath
(
jgRegisterInfo
.
getLastUseCertFilePath
());
equipData
.
setUseCertFilePath
(
jgRegisterInfo
.
getLastUseCertFilePath
());
}
}
// 登记机关
// 登记机关
if
(
equipData
.
getUseRegistrationCode
()
!=
null
)
{
if
(
StringUtils
.
isNotBlank
(
equipData
.
getUseRegistrationCode
())
)
{
LambdaQueryWrapper
<
JgUseRegistrationManage
>
queryWrapper
=
new
LambdaQueryWrapper
<
JgUseRegistrationManage
>()
LambdaQueryWrapper
<
JgUseRegistrationManage
>
queryWrapper
=
new
LambdaQueryWrapper
<
JgUseRegistrationManage
>()
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
equipData
.
getUseRegistrationCode
())
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
equipData
.
getUseRegistrationCode
())
.
eq
(
JgUseRegistrationManage:
:
getIsDelete
,
0
)
.
eq
(
JgUseRegistrationManage:
:
getIsDelete
,
0
)
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/event/rule/service/EnableRuleDataPreparationService.java
View file @
8a89354f
...
@@ -2,7 +2,6 @@ package com.yeejoin.amos.boot.module.jyjc.biz.event.rule.service;
...
@@ -2,7 +2,6 @@ package com.yeejoin.amos.boot.module.jyjc.biz.event.rule.service;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
...
@@ -20,10 +19,10 @@ import com.yeejoin.amos.boot.module.jyjc.biz.event.publisher.EventPublisher;
...
@@ -20,10 +19,10 @@ import com.yeejoin.amos.boot.module.jyjc.biz.event.publisher.EventPublisher;
import
com.yeejoin.amos.boot.module.jyjc.biz.rule.InspectionEquipInfo
;
import
com.yeejoin.amos.boot.module.jyjc.biz.rule.InspectionEquipInfo
;
import
com.yeejoin.amos.boot.module.jyjc.biz.service.impl.RuleCommonServiceImpl
;
import
com.yeejoin.amos.boot.module.jyjc.biz.service.impl.RuleCommonServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.
Registration
Info
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.
IdxBizJgRegister
Info
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgProjectContraptionMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgProjectContraptionMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.
Registration
InfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.
IdxBizJgRegister
InfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzBaseEnterpriseInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzBaseEnterpriseInfoMapper
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -52,7 +51,7 @@ public class EnableRuleDataPreparationService {
...
@@ -52,7 +51,7 @@ public class EnableRuleDataPreparationService {
private
final
SnowflakeIdUtil
sequence
;
private
final
SnowflakeIdUtil
sequence
;
private
final
Registration
InfoMapper
registrationInfoMapper
;
private
final
IdxBizJgRegister
InfoMapper
registrationInfoMapper
;
private
final
RuleCommonServiceImpl
ruleCommonService
;
private
final
RuleCommonServiceImpl
ruleCommonService
;
...
@@ -138,7 +137,7 @@ public class EnableRuleDataPreparationService {
...
@@ -138,7 +137,7 @@ public class EnableRuleDataPreparationService {
inspectionEquipInfo
.
setTechParams
(
new
HashMap
<>());
inspectionEquipInfo
.
setTechParams
(
new
HashMap
<>());
}
else
{
}
else
{
// 非管道逻辑
// 非管道逻辑
Registration
Info
registrationInfo
=
fetchRegistrationInfo
(
equipInfoModel
.
getRecord
());
IdxBizJgRegister
Info
registrationInfo
=
fetchRegistrationInfo
(
equipInfoModel
.
getRecord
());
if
(
registrationInfo
==
null
)
{
if
(
registrationInfo
==
null
)
{
log
.
error
(
"未找到设备,报检规则匹配流程结束!"
);
log
.
error
(
"未找到设备,报检规则匹配流程结束!"
);
return
;
return
;
...
@@ -149,6 +148,8 @@ public class EnableRuleDataPreparationService {
...
@@ -149,6 +148,8 @@ public class EnableRuleDataPreparationService {
inspectionEquipInfo
.
setTechParams
(
this
.
getTechParams
(
registrationInfo
,
equipInfoModel
));
inspectionEquipInfo
.
setTechParams
(
this
.
getTechParams
(
registrationInfo
,
equipInfoModel
));
// 是否球罐 0 1 转 boolean
// 是否球罐 0 1 转 boolean
inspectionEquipInfo
.
setIsBallValve
(!
"0"
.
equals
(
registrationInfo
.
getWhetherSphericalTank
()));
inspectionEquipInfo
.
setIsBallValve
(!
"0"
.
equals
(
registrationInfo
.
getWhetherSphericalTank
()));
// 标签
inspectionEquipInfo
.
setEquipTag1
(
registrationInfo
.
getTag1
());
}
}
if
(
PRESSURE_EQU_LIST
.
contains
(
equipInfoModel
.
getEquList
()))
{
if
(
PRESSURE_EQU_LIST
.
contains
(
equipInfoModel
.
getEquList
()))
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
equipInfoModel
.
getUserId
(),
equipInfoModel
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
equipInfoModel
.
getUserId
(),
equipInfoModel
.
getToken
())).
toString
(),
ReginParams
.
class
);
...
@@ -189,7 +190,7 @@ public class EnableRuleDataPreparationService {
...
@@ -189,7 +190,7 @@ public class EnableRuleDataPreparationService {
}
}
private
Map
<
String
,
Object
>
getTechParams
(
Registration
Info
registrationInfo
,
InspectionEquipInfoModel
equipInfoModel
)
{
private
Map
<
String
,
Object
>
getTechParams
(
IdxBizJgRegister
Info
registrationInfo
,
InspectionEquipInfoModel
equipInfoModel
)
{
if
(
NEED_TECH_PARAM_EQU_CATEGORY
.
contains
(
equipInfoModel
.
getEquCategory
()))
{
if
(
NEED_TECH_PARAM_EQU_CATEGORY
.
contains
(
equipInfoModel
.
getEquCategory
()))
{
return
applicationPushEventListener
.
populateEquipInfoWithTechParams
(
registrationInfo
.
getEquList
(),
registrationInfo
.
getRecord
());
return
applicationPushEventListener
.
populateEquipInfoWithTechParams
(
registrationInfo
.
getEquList
(),
registrationInfo
.
getRecord
());
}
}
...
@@ -218,11 +219,16 @@ public class EnableRuleDataPreparationService {
...
@@ -218,11 +219,16 @@ public class EnableRuleDataPreparationService {
return
inspectionApplicationNoAcceptLogMapper
.
selectOne
(
wrapper
);
return
inspectionApplicationNoAcceptLogMapper
.
selectOne
(
wrapper
);
}
}
private
Registration
Info
fetchRegistrationInfo
(
String
record
)
{
private
IdxBizJgRegister
Info
fetchRegistrationInfo
(
String
record
)
{
return
registrationInfoMapper
.
selectOne
(
return
registrationInfoMapper
.
selectOne
(
Wrappers
.<
RegistrationInfo
>
lambdaQuery
().
select
(
RegistrationInfo:
:
getRecord
,
RegistrationInfo:
:
getEquCategory
,
new
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>()
RegistrationInfo:
:
getEquDefine
,
RegistrationInfo:
:
getEquList
,
RegistrationInfo:
:
getWhetherSphericalTank
)
.
select
(
IdxBizJgRegisterInfo:
:
getRecord
,
.
eq
(
RegistrationInfo:
:
getRecord
,
record
));
IdxBizJgRegisterInfo:
:
getEquCategory
,
IdxBizJgRegisterInfo:
:
getEquDefine
,
IdxBizJgRegisterInfo:
:
getEquList
,
IdxBizJgRegisterInfo:
:
getWhetherSphericalTank
,
IdxBizJgRegisterInfo:
:
getTag1
)
.
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
record
));
}
}
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
8a89354f
...
@@ -635,6 +635,11 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -635,6 +635,11 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
BeanUtil
.
beanToMap
(
equip
,
objectHashMap
,
false
,
false
);
BeanUtil
.
beanToMap
(
equip
,
objectHashMap
,
false
,
false
);
objectHashMap
.
put
(
"record"
,
equip
.
getSEQUENCE_NBR
());
objectHashMap
.
put
(
"record"
,
equip
.
getSEQUENCE_NBR
());
objectHashMap
.
put
(
"ADDRESS"
,
concatDetailAddress
(
equip
));
objectHashMap
.
put
(
"ADDRESS"
,
concatDetailAddress
(
equip
));
objectHashMap
.
forEach
((
k
,
v
)->{
if
(
ObjectUtils
.
isEmpty
(
v
)
||
"null"
.
equals
(
v
)){
objectHashMap
.
put
(
k
,
""
);
}
});
arrayList
.
add
(
objectHashMap
);
arrayList
.
add
(
objectHashMap
);
});
});
return
arrayList
;
return
arrayList
;
...
@@ -1479,6 +1484,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -1479,6 +1484,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
String
test
=
QueryParser
.
escape
(
map
.
getString
(
"USE_INNER_CODE"
));
String
test
=
QueryParser
.
escape
(
map
.
getString
(
"USE_INNER_CODE"
));
boolMust
.
must
(
QueryBuilders
.
matchPhraseQuery
(
"USE_INNER_CODE"
,
test
));
boolMust
.
must
(
QueryBuilders
.
matchPhraseQuery
(
"USE_INNER_CODE"
,
test
));
}
}
// 大型游乐设施时按照设备分类过滤
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"tag1"
))
&&
EquipmentClassifityEnum
.
YLSS
.
getCode
().
equals
(
map
.
getString
(
"EQU_LIST_CODE"
))){
boolMust
.
must
(
QueryBuilders
.
termQuery
(
"tag1.keyword"
,
QueryParser
.
escape
(
map
.
getString
(
"tag1"
))));
}
this
.
setFilterOfInFlowing
(
boolMust
,
map
.
getString
(
"EQU_LIST_CODE"
),
map
.
getString
(
"inspectionType"
),
map
.
getString
(
"EQU_CATEGORY_CODE"
));
this
.
setFilterOfInFlowing
(
boolMust
,
map
.
getString
(
"EQU_LIST_CODE"
),
map
.
getString
(
"inspectionType"
),
map
.
getString
(
"EQU_CATEGORY_CODE"
));
builder
.
query
(
boolMust
);
builder
.
query
(
boolMust
);
builder
.
sort
(
"REC_DATE"
,
SortOrder
.
DESC
);
builder
.
sort
(
"REC_DATE"
,
SortOrder
.
DESC
);
...
@@ -1567,7 +1576,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -1567,7 +1576,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
private
Object
removeSplitLine
(
JSONObject
item
)
{
private
Object
removeSplitLine
(
JSONObject
item
)
{
String
fullAddress
=
item
.
getString
(
"USE_PLACE"
)
+
item
.
getString
(
"ADDRESS"
);
String
fullAddress
=
item
.
getString
(
"USE_PLACE"
)
+
item
.
getString
(
"ADDRESS"
);
fullAddress
=
fullAddress
.
replace
(
"/"
,
""
);
fullAddress
=
fullAddress
.
replace
(
"/"
,
""
)
.
replace
(
"null"
,
""
)
;
return
fullAddress
;
return
fullAddress
;
}
}
...
...
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