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
81176386
Commit
81176386
authored
Jun 13, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):设备编辑管道履历修改
parent
c95cd65e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
25 deletions
+27
-25
ChangeLogInsertListener.java
...e/jg/biz/edit/event/listener/ChangeLogInsertListener.java
+27
-25
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/ChangeLogInsertListener.java
View file @
81176386
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.biz.edit.event.listener;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.biz.edit.event.listener;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.module.jg.api.dto.BizRelationDataDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.ESDataChangeLogDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.ESDataChangeLogDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.FieldChangeMeta
;
import
com.yeejoin.amos.boot.module.jg.api.dto.FieldChangeMeta
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgResumeInfoDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgResumeInfoDto
;
...
@@ -102,36 +103,37 @@ public class ChangeLogInsertListener {
...
@@ -102,36 +103,37 @@ public class ChangeLogInsertListener {
@Async
@Async
protected
void
insertCertLog
(
JgBizChangeLog
changeLog
,
BaseBizDataChangeEvent
event
)
{
protected
void
insertCertLog
(
JgBizChangeLog
changeLog
,
BaseBizDataChangeEvent
event
)
{
try
{
try
{
String
bizId
=
event
.
getBizRelationData
().
getBizId
();
BizRelationDataDto
data
=
event
.
getBizRelationData
();
String
bizId
=
data
.
getBizId
();
String
businessTypeName
=
BusinessTypeEnum
.
findNameByEnumName
(
changeLog
.
getBizType
()).
orElse
(
"设备编辑"
);
String
businessTypeName
=
BusinessTypeEnum
.
findNameByEnumName
(
changeLog
.
getBizType
()).
orElse
(
"设备编辑"
);
String
approvalUnit
=
event
.
getBizRelationData
()
.
getUnitName
();
String
approvalUnit
=
data
.
getUnitName
();
String
approvalUnitCode
=
event
.
getBizRelationData
()
.
getUnitCode
();
String
approvalUnitCode
=
data
.
getUnitCode
();
String
recUserName
=
event
.
getBizRelationData
()
.
getRecUserName
();
String
recUserName
=
data
.
getRecUserName
();
String
recUserId
=
event
.
getRequestContext
().
getExcutedUserId
();
String
recUserId
=
event
.
getRequestContext
().
getExcutedUserId
();
String
changeLogId
=
String
.
valueOf
(
changeLog
.
getSequenceNbr
());
String
changeLogId
=
String
.
valueOf
(
changeLog
.
getSequenceNbr
());
Date
now
=
new
Date
();
String
equId
=
(
data
.
getProjectContraptionIds
()
==
null
||
data
.
getProjectContraptionIds
().
isEmpty
())
event
.
getData
().
stream
()
?
event
.
getData
().
stream
()
.
map
(
FieldChangeMeta:
:
getChangeId
)
.
map
(
FieldChangeMeta:
:
getChangeId
)
.
filter
(
Objects:
:
nonNull
)
.
filter
(
Objects:
:
nonNull
)
.
distinc
t
()
.
findFirs
t
()
.
forEach
(
equId
->
{
.
orElse
(
null
)
JgResumeInfoDto
dto
=
new
JgResumeInfoDto
();
:
data
.
getProjectContraptionIds
().
iterator
().
next
();
dto
.
setApplyNo
(
bizId
);
JgResumeInfoDto
dto
=
new
JgResumeInfoDto
(
);
dto
.
setBusinessType
(
businessTypeName
);
dto
.
setApplyNo
(
bizId
);
dto
.
setBusinessId
(
bizId
);
dto
.
setBusinessType
(
businessTypeName
);
dto
.
setEquId
(
equ
Id
);
dto
.
setBusinessId
(
biz
Id
);
dto
.
setResumeType
(
"1"
);
dto
.
setEquId
(
equId
);
dto
.
setChangeContent
(
"设备编辑
"
);
dto
.
setResumeType
(
"1
"
);
dto
.
setChangeLogId
(
changeLogId
);
dto
.
setChangeContent
(
"设备编辑"
);
dto
.
setApprovalUnit
(
approvalUnit
);
dto
.
setChangeLogId
(
changeLogId
);
dto
.
setApprovalUnitCode
(
approvalUnitCode
);
dto
.
setApprovalUnit
(
approvalUnit
);
dto
.
setRecDate
(
now
);
dto
.
setApprovalUnitCode
(
approvalUnitCode
);
dto
.
setRecUserName
(
recUserName
);
dto
.
setRecDate
(
new
Date
()
);
dto
.
setRecUserId
(
recUserId
);
dto
.
setRecUserName
(
recUserName
);
dto
.
setStatus
(
"正常"
);
dto
.
setRecUserId
(
recUserId
);
dto
.
setRoutePath
(
routePath
);
dto
.
setStatus
(
"正常"
);
jgResumeInfoService
.
createWithModel
(
dto
);
dto
.
setRoutePath
(
routePath
);
}
);
jgResumeInfoService
.
createWithModel
(
dto
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"插入设备履历日志异常,bizType: {}, 错误: {}"
,
changeLog
.
getBizType
(),
e
.
getMessage
(),
e
);
log
.
error
(
"插入设备履历日志异常,bizType: {}, 错误: {}"
,
changeLog
.
getBizType
(),
e
.
getMessage
(),
e
);
}
}
...
...
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