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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
ChangeLogInsertListener.java
...e/jg/biz/edit/event/listener/ChangeLogInsertListener.java
+12
-10
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;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.date.DateUtil
;
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.FieldChangeMeta
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgResumeInfoDto
;
...
...
@@ -102,19 +103,21 @@ public class ChangeLogInsertListener {
@Async
protected
void
insertCertLog
(
JgBizChangeLog
changeLog
,
BaseBizDataChangeEvent
event
)
{
try
{
String
bizId
=
event
.
getBizRelationData
().
getBizId
();
BizRelationDataDto
data
=
event
.
getBizRelationData
();
String
bizId
=
data
.
getBizId
();
String
businessTypeName
=
BusinessTypeEnum
.
findNameByEnumName
(
changeLog
.
getBizType
()).
orElse
(
"设备编辑"
);
String
approvalUnit
=
event
.
getBizRelationData
()
.
getUnitName
();
String
approvalUnitCode
=
event
.
getBizRelationData
()
.
getUnitCode
();
String
recUserName
=
event
.
getBizRelationData
()
.
getRecUserName
();
String
approvalUnit
=
data
.
getUnitName
();
String
approvalUnitCode
=
data
.
getUnitCode
();
String
recUserName
=
data
.
getRecUserName
();
String
recUserId
=
event
.
getRequestContext
().
getExcutedUserId
();
String
changeLogId
=
String
.
valueOf
(
changeLog
.
getSequenceNbr
());
Date
now
=
new
Date
();
event
.
getData
().
stream
()
String
equId
=
(
data
.
getProjectContraptionIds
()
==
null
||
data
.
getProjectContraptionIds
().
isEmpty
())
?
event
.
getData
().
stream
()
.
map
(
FieldChangeMeta:
:
getChangeId
)
.
filter
(
Objects:
:
nonNull
)
.
distinct
()
.
forEach
(
equId
->
{
.
findFirst
()
.
orElse
(
null
)
:
data
.
getProjectContraptionIds
().
iterator
().
next
();
JgResumeInfoDto
dto
=
new
JgResumeInfoDto
();
dto
.
setApplyNo
(
bizId
);
dto
.
setBusinessType
(
businessTypeName
);
...
...
@@ -125,13 +128,12 @@ public class ChangeLogInsertListener {
dto
.
setChangeLogId
(
changeLogId
);
dto
.
setApprovalUnit
(
approvalUnit
);
dto
.
setApprovalUnitCode
(
approvalUnitCode
);
dto
.
setRecDate
(
now
);
dto
.
setRecDate
(
new
Date
()
);
dto
.
setRecUserName
(
recUserName
);
dto
.
setRecUserId
(
recUserId
);
dto
.
setStatus
(
"正常"
);
dto
.
setRoutePath
(
routePath
);
jgResumeInfoService
.
createWithModel
(
dto
);
});
}
catch
(
Exception
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