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
a46c73ad
Commit
a46c73ad
authored
Jul 03, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):有证历史登记报错问题处理
parent
8d947879
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
ChangeEquipImpactCertListener.java
...iz/edit/event/listener/ChangeEquipImpactCertListener.java
+22
-0
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+2
-2
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+3
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/event/listener/ChangeEquipImpactCertListener.java
View file @
a46c73ad
...
@@ -15,8 +15,10 @@ import com.yeejoin.amos.boot.module.jg.biz.service.impl.JgInstallationNoticeEqSe
...
@@ -15,8 +15,10 @@ import com.yeejoin.amos.boot.module.jg.biz.service.impl.JgInstallationNoticeEqSe
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgInstallationNoticeServiceImpl
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgInstallationNoticeServiceImpl
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgUseRegistrationManageServiceImpl
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgUseRegistrationManageServiceImpl
;
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.IdxBizJgRegisterInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgUseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgUseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgRegisterInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgUseInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgUseInfoMapper
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -52,6 +54,7 @@ public class ChangeEquipImpactCertListener {
...
@@ -52,6 +54,7 @@ public class ChangeEquipImpactCertListener {
private
final
IdxBizJgProjectContraptionServiceImplService
jgProjectContraptionService
;
private
final
IdxBizJgProjectContraptionServiceImplService
jgProjectContraptionService
;
private
final
JgInstallationNoticeEqServiceImpl
jgInstallationNoticeEqService
;
private
final
JgInstallationNoticeEqServiceImpl
jgInstallationNoticeEqService
;
private
final
IdxBizJgUseInfoMapper
useInfoMapper
;
private
final
IdxBizJgUseInfoMapper
useInfoMapper
;
private
final
IdxBizJgRegisterInfoMapper
registerInfoMapper
;
/**
/**
* 事件监听:只把事件放入队列
* 事件监听:只把事件放入队列
...
@@ -296,6 +299,25 @@ public class ChangeEquipImpactCertListener {
...
@@ -296,6 +299,25 @@ public class ChangeEquipImpactCertListener {
private
void
handleNewEquipEdit
(
BaseBizDataChangeEvent
event
)
{
private
void
handleNewEquipEdit
(
BaseBizDataChangeEvent
event
)
{
log
.
info
(
"处理 handleNewEquipEdit 类型逻辑"
);
log
.
info
(
"处理 handleNewEquipEdit 类型逻辑"
);
if
(
event
.
getBizRelationData
().
getBizIsFinished
()){
String
useOrgCode
=
""
;
for
(
FieldChangeMeta
meta
:
event
.
getData
())
{
String
columnKey
=
meta
.
getColumnKey
();
if
(
columnKey
.
equals
(
"useOrgCode"
)){
useOrgCode
=
meta
.
getColumnOldValue
();
}
else
{
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>
queryRegisterWrapper
=
new
QueryWrapper
<
IdxBizJgRegisterInfo
>().
lambda
();
queryRegisterWrapper
.
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
event
.
getBizRelationData
().
getBizId
());
IdxBizJgRegisterInfo
registerInfo
=
registerInfoMapper
.
selectOne
(
queryRegisterWrapper
);
useOrgCode
=
registerInfo
.
getUseOrgCode
();
}
}
JgUseRegistrationManage
jgUseRegistrationManage
=
jgUseRegistrationManageService
.
lambdaQuery
()
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
useOrgCode
)
.
eq
(
JgUseRegistrationManage:
:
getIsDelete
,
0
)
.
one
();
this
.
handleFieldChange
(
event
.
getData
(),
jgUseRegistrationManage
);
}
}
}
private
void
handleNewProjectEdit
(
List
<
FieldChangeMeta
>
fieldChangeMetaList
,
String
projectContraptionId
)
{
private
void
handleNewProjectEdit
(
List
<
FieldChangeMeta
>
fieldChangeMetaList
,
String
projectContraptionId
)
{
...
...
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/JgInstallationNoticeServiceImpl.java
View file @
a46c73ad
...
@@ -413,7 +413,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -413,7 +413,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
installationInfo
.
put
(
"equDefineName"
,
projectContraption
.
getEquDefineName
());
installationInfo
.
put
(
"equDefineName"
,
projectContraption
.
getEquDefineName
());
equipListMaps
=
projectContraptionService
.
getBaseMapper
().
selectEquipList
(
projectContraptionId
);
equipListMaps
=
projectContraptionService
.
getBaseMapper
().
selectEquipList
(
projectContraptionId
);
equipListMaps
.
forEach
(
item
->
equipListMaps
.
forEach
(
item
->
item
.
put
(
"deviceLevel"
,
Optional
.
ofNullable
(
dataDictionaryMapper
.
getByCode
(
String
.
valueOf
(
item
.
get
(
"deviceLevel"
)),
"8300"
))
item
.
put
(
"deviceLevel"
,
Optional
.
ofNullable
(
dataDictionaryMapper
.
getByCode
(
String
.
valueOf
(
item
.
get
(
"deviceLevel"
)),
projectContraption
.
getEquCategory
()
))
.
map
(
DataDictionary:
:
getName
)
.
map
(
DataDictionary:
:
getName
)
.
orElse
(
""
)));
.
orElse
(
""
)));
}
else
{
}
else
{
...
@@ -2024,7 +2024,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -2024,7 +2024,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
List
<
Map
<
String
,
Object
>>
deviceList
=
projectContraptionService
.
getBaseMapper
().
selectEquipList
(
projectContraptionSeq
);
List
<
Map
<
String
,
Object
>>
deviceList
=
projectContraptionService
.
getBaseMapper
().
selectEquipList
(
projectContraptionSeq
);
deviceList
.
forEach
(
device
->
{
deviceList
.
forEach
(
device
->
{
String
deviceLevel
=
String
.
valueOf
(
device
.
get
(
"deviceLevel"
));
String
deviceLevel
=
String
.
valueOf
(
device
.
get
(
"deviceLevel"
));
device
.
put
(
"deviceLevel"
,
dataDictionaryMapper
.
getByCode
(
deviceLevel
,
"8300"
).
getName
());
device
.
put
(
"deviceLevel"
,
dataDictionaryMapper
.
getByCode
(
deviceLevel
,
projectContraption
.
getEquCategory
()
).
getName
());
device
.
put
(
"sequenceNbr"
,
projectContraptionSeq
);
device
.
put
(
"sequenceNbr"
,
projectContraptionSeq
);
device
.
put
(
"equListName"
,
projectContraption
.
getEquListName
());
device
.
put
(
"equListName"
,
projectContraption
.
getEquListName
());
});
});
...
...
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/JgUseRegistrationServiceImpl.java
View file @
a46c73ad
...
@@ -1951,7 +1951,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1951,7 +1951,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 更新es的下次检验日期
// 更新es的下次检验日期
param
.
put
(
"NEXT_INSPECT_DATE"
,
this
.
castDate2TimeStr
(
dataMap
.
getString
(
"nextInspectDate"
)));
param
.
put
(
"NEXT_INSPECT_DATE"
,
this
.
castDate2TimeStr
(
dataMap
.
getString
(
"nextInspectDate"
)));
param
.
put
(
"USE_INNER_CODE"
,
useInfo
.
getUseInnerCode
());
param
.
put
(
"USE_INNER_CODE"
,
useInfo
.
getUseInnerCode
());
if
(!
Arrays
.
asList
(
"temp"
,
"tempEdit"
).
contains
(
dataMap
.
get
(
"historySubmitType"
)))
{
String
historySubmitType
=
String
.
valueOf
(
dataMap
.
get
(
"historySubmitType"
));
if
(!
"temp"
.
equals
(
historySubmitType
)
&&
!
"tempEdit"
.
equals
(
historySubmitType
))
{
param
.
put
(
"IS_INTO_MANAGEMENT"
,
true
);
param
.
put
(
"IS_INTO_MANAGEMENT"
,
true
);
}
}
param
.
put
(
"USE_PLACE_CODE"
,
jsonObject
.
get
(
"province"
)
+
"#"
+
jsonObject
.
get
(
"city"
)
+
"#"
+
jsonObject
.
get
(
"county"
)
+
"#"
+
jsonObject
.
get
(
"factoryUseSiteStreet"
));
param
.
put
(
"USE_PLACE_CODE"
,
jsonObject
.
get
(
"province"
)
+
"#"
+
jsonObject
.
get
(
"city"
)
+
"#"
+
jsonObject
.
get
(
"county"
)
+
"#"
+
jsonObject
.
get
(
"factoryUseSiteStreet"
));
...
@@ -1963,6 +1964,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1963,6 +1964,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
param
.
put
(
"EQU_CODE"
,
dataMap
.
get
(
"equCode"
));
param
.
put
(
"EQU_CODE"
,
dataMap
.
get
(
"equCode"
));
param
.
put
(
"USE_ORG_CODE"
,
jgUseRegistration
.
getUseRegistrationCode
());
param
.
put
(
"USE_ORG_CODE"
,
jgUseRegistration
.
getUseRegistrationCode
());
param
.
put
(
"CYLINDER_CATEGORY"
,
dataMap
.
get
(
"cylinderCategory"
));
param
.
put
(
"CYLINDER_CATEGORY"
,
dataMap
.
get
(
"cylinderCategory"
));
param
.
put
(
"FACTORY_NUM"
,
MapUtil
.
getStr
(
dataMap
,
"factoryNum"
));
objMap
.
put
((
String
)
dataMap
.
get
(
"equipId"
),
param
);
objMap
.
put
((
String
)
dataMap
.
get
(
"equipId"
),
param
);
tzsServiceFeignClient
.
commonUpdateEsDataByIds
(
objMap
);
tzsServiceFeignClient
.
commonUpdateEsDataByIds
(
objMap
);
}
}
...
...
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