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
df590a18
Commit
df590a18
authored
May 15, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(大编辑):自测联调修改
1.最新日期进行更新 2.更新人进行更新
parent
5caca3b5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
CommonEquipDataProcessService.java
...biz/edit/process/equip/CommonEquipDataProcessService.java
+9
-1
SingleEquipChangeProcess.java
...e/jg/biz/edit/process/equip/SingleEquipChangeProcess.java
+4
-14
IdxBizJgMaintenanceRecordInfo.java
.../module/ymt/api/entity/IdxBizJgMaintenanceRecordInfo.java
+1
-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/process/equip/CommonEquipDataProcessService.java
View file @
df590a18
...
@@ -45,6 +45,7 @@ import org.elasticsearch.search.builder.SearchSourceBuilder;
...
@@ -45,6 +45,7 @@ import org.elasticsearch.search.builder.SearchSourceBuilder;
import
org.elasticsearch.search.sort.SortOrder
;
import
org.elasticsearch.search.sort.SortOrder
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
...
@@ -106,6 +107,8 @@ public class CommonEquipDataProcessService {
...
@@ -106,6 +107,8 @@ public class CommonEquipDataProcessService {
private
final
JgUseRegistrationServiceImpl
jgUseRegistrationService
;
private
final
JgUseRegistrationServiceImpl
jgUseRegistrationService
;
public
static
final
String
BASE_COLUMN_REC_DATE
=
"\"REC_DATE\""
;
public
static
final
String
BASE_COLUMN_REC_USERID
=
"\"REC_USER_ID\""
;
@PostConstruct
@PostConstruct
public
void
init
()
{
public
void
init
()
{
...
@@ -656,7 +659,7 @@ public class CommonEquipDataProcessService {
...
@@ -656,7 +659,7 @@ public class CommonEquipDataProcessService {
Object
newVal
=
field
.
get
(
newObj
);
Object
newVal
=
field
.
get
(
newObj
);
FieldDisplayDefine
displayDefine
=
field
.
getAnnotation
(
FieldDisplayDefine
.
class
);
FieldDisplayDefine
displayDefine
=
field
.
getAnnotation
(
FieldDisplayDefine
.
class
);
TableField
tableField
=
field
.
getAnnotation
(
TableField
.
class
);
TableField
tableField
=
field
.
getAnnotation
(
TableField
.
class
);
//
对比
逻辑
//
业务字段对比处理
逻辑
if
(!
Objects
.
equals
(
oldVal
,
newVal
))
{
if
(!
Objects
.
equals
(
oldVal
,
newVal
))
{
if
(
displayDefine
!=
null
&&
displayDefine
.
isExist
())
{
if
(
displayDefine
!=
null
&&
displayDefine
.
isExist
())
{
String
columnName
=
tableField
.
value
();
String
columnName
=
tableField
.
value
();
...
@@ -690,7 +693,12 @@ public class CommonEquipDataProcessService {
...
@@ -690,7 +693,12 @@ public class CommonEquipDataProcessService {
}
}
// 执行更新
// 执行更新
if
(!
changeData
.
isEmpty
())
{
if
(!
changeData
.
isEmpty
())
{
// 公共字段处理
wrapper
.
set
(
BASE_COLUMN_REC_DATE
,
new
Date
());
wrapper
.
set
(
BASE_COLUMN_REC_USERID
,
RequestContext
.
getExeUserId
());
// 查询where
wrapper
.
eq
(
whereKey
,
whereValue
);
wrapper
.
eq
(
whereKey
,
whereValue
);
// 更新
mapper
.
update
(
null
,
wrapper
);
mapper
.
update
(
null
,
wrapper
);
}
}
return
changeData
;
return
changeData
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/process/equip/SingleEquipChangeProcess.java
View file @
df590a18
...
@@ -12,7 +12,6 @@ import lombok.RequiredArgsConstructor;
...
@@ -12,7 +12,6 @@ import lombok.RequiredArgsConstructor;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -35,37 +34,31 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
...
@@ -35,37 +34,31 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
IdxBizJgUseInfo
useInfoNew
=
BeanUtil
.
copyProperties
(
useInfoOld
,
IdxBizJgUseInfo
.
class
);
IdxBizJgUseInfo
useInfoNew
=
BeanUtil
.
copyProperties
(
useInfoOld
,
IdxBizJgUseInfo
.
class
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
useInfoNew
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
useInfoNew
);
useInfoNew
.
setSequenceNbr
(
useInfoOld
.
getSequenceNbr
());
useInfoNew
.
setSequenceNbr
(
useInfoOld
.
getSequenceNbr
());
useInfoNew
.
setRecDate
(
new
Date
());
IdxBizJgRegisterInfo
registerInfoOld
=
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getIdxBizJgRegisterInfoService
().
getOne
(
new
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>().
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
record
));
IdxBizJgRegisterInfo
registerInfoOld
=
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getIdxBizJgRegisterInfoService
().
getOne
(
new
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>().
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
record
));
IdxBizJgRegisterInfo
registerInfoNew
=
BeanUtil
.
copyProperties
(
registerInfoOld
,
IdxBizJgRegisterInfo
.
class
);
IdxBizJgRegisterInfo
registerInfoNew
=
BeanUtil
.
copyProperties
(
registerInfoOld
,
IdxBizJgRegisterInfo
.
class
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
registerInfoNew
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
registerInfoNew
);
registerInfoNew
.
setSequenceNbr
(
registerInfoOld
.
getSequenceNbr
());
registerInfoNew
.
setSequenceNbr
(
registerInfoOld
.
getSequenceNbr
());
registerInfoNew
.
setRecDate
(
new
Date
());
IdxBizJgFactoryInfo
factoryInfoOld
=
commonEquipDataProcessService
.
getJgFactoryInfoMapper
().
selectOne
(
new
LambdaQueryWrapper
<
IdxBizJgFactoryInfo
>().
eq
(
IdxBizJgFactoryInfo:
:
getRecord
,
record
));
IdxBizJgFactoryInfo
factoryInfoOld
=
commonEquipDataProcessService
.
getJgFactoryInfoMapper
().
selectOne
(
new
LambdaQueryWrapper
<
IdxBizJgFactoryInfo
>().
eq
(
IdxBizJgFactoryInfo:
:
getRecord
,
record
));
IdxBizJgFactoryInfo
factoryInfoNew
=
BeanUtil
.
copyProperties
(
factoryInfoOld
,
IdxBizJgFactoryInfo
.
class
);
IdxBizJgFactoryInfo
factoryInfoNew
=
BeanUtil
.
copyProperties
(
factoryInfoOld
,
IdxBizJgFactoryInfo
.
class
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
factoryInfoNew
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
factoryInfoNew
);
factoryInfoNew
.
setSequenceNbr
(
factoryInfoOld
.
getSequenceNbr
());
factoryInfoNew
.
setSequenceNbr
(
factoryInfoOld
.
getSequenceNbr
());
factoryInfoNew
.
setRecDate
(
new
Date
());
IdxBizJgDesignInfo
designInfoOld
=
commonEquipDataProcessService
.
getIdxBizJgDesignInfoMapper
().
selectOne
(
new
LambdaQueryWrapper
<
IdxBizJgDesignInfo
>().
eq
(
IdxBizJgDesignInfo:
:
getRecord
,
record
));
IdxBizJgDesignInfo
designInfoOld
=
commonEquipDataProcessService
.
getIdxBizJgDesignInfoMapper
().
selectOne
(
new
LambdaQueryWrapper
<
IdxBizJgDesignInfo
>().
eq
(
IdxBizJgDesignInfo:
:
getRecord
,
record
));
IdxBizJgDesignInfo
designInfoNew
=
BeanUtil
.
copyProperties
(
factoryInfoOld
,
IdxBizJgDesignInfo
.
class
);
;
IdxBizJgDesignInfo
designInfoNew
=
BeanUtil
.
copyProperties
(
designInfoOld
,
IdxBizJgDesignInfo
.
class
)
;
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
designInfoNew
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
designInfoNew
);
designInfoNew
.
setSequenceNbr
(
designInfoOld
.
getSequenceNbr
());
designInfoNew
.
setSequenceNbr
(
designInfoOld
.
getSequenceNbr
());
designInfoNew
.
setRecDate
(
new
Date
());
IdxBizJgOtherInfo
otherInfoOld
=
commonEquipDataProcessService
.
getIdxBizJgOtherInfoMapper
().
selectOne
(
new
LambdaQueryWrapper
<
IdxBizJgOtherInfo
>().
eq
(
IdxBizJgOtherInfo:
:
getRecord
,
record
));
IdxBizJgOtherInfo
otherInfoOld
=
commonEquipDataProcessService
.
getIdxBizJgOtherInfoMapper
().
selectOne
(
new
LambdaQueryWrapper
<
IdxBizJgOtherInfo
>().
eq
(
IdxBizJgOtherInfo:
:
getRecord
,
record
));
IdxBizJgOtherInfo
otherInfoNew
=
BeanUtil
.
copyProperties
(
factory
InfoOld
,
IdxBizJgOtherInfo
.
class
);
IdxBizJgOtherInfo
otherInfoNew
=
BeanUtil
.
copyProperties
(
other
InfoOld
,
IdxBizJgOtherInfo
.
class
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
otherInfoNew
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
otherInfoNew
);
otherInfoNew
.
setSequenceNbr
(
otherInfoOld
.
getSequenceNbr
());
otherInfoNew
.
setSequenceNbr
(
otherInfoOld
.
getSequenceNbr
());
otherInfoNew
.
setRecDate
(
new
Date
());
IdxBizJgSupervisionInfo
idxBizJgSupervisionInfoOld
=
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getIdxBizJgSupervisionInfoMapper
().
selectOne
(
new
LambdaQueryWrapper
<
IdxBizJgSupervisionInfo
>().
eq
(
IdxBizJgSupervisionInfo:
:
getRecord
,
record
));
IdxBizJgSupervisionInfo
idxBizJgSupervisionInfoOld
=
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getIdxBizJgSupervisionInfoMapper
().
selectOne
(
new
LambdaQueryWrapper
<
IdxBizJgSupervisionInfo
>().
eq
(
IdxBizJgSupervisionInfo:
:
getRecord
,
record
));
IdxBizJgSupervisionInfo
idxBizJgSupervisionInfoNew
=
BeanUtil
.
copyProperties
(
factory
InfoOld
,
IdxBizJgSupervisionInfo
.
class
);
IdxBizJgSupervisionInfo
idxBizJgSupervisionInfoNew
=
BeanUtil
.
copyProperties
(
idxBizJgSupervision
InfoOld
,
IdxBizJgSupervisionInfo
.
class
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
idxBizJgSupervisionInfoNew
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
idxBizJgSupervisionInfoNew
);
idxBizJgSupervisionInfoNew
.
setSequenceNbr
(
idxBizJgSupervisionInfoOld
.
getSequenceNbr
());
idxBizJgSupervisionInfoNew
.
setSequenceNbr
(
idxBizJgSupervisionInfoOld
.
getSequenceNbr
());
idxBizJgSupervisionInfoNew
.
setRecDate
(
new
Date
());
String
jySeq
=
changeJson
.
getString
(
"jySeq"
);
String
jySeq
=
changeJson
.
getString
(
"jySeq"
);
String
maintenanceSeq
=
changeJson
.
getString
(
"maintenanceSeq"
);
String
maintenanceSeq
=
changeJson
.
getString
(
"maintenanceSeq"
);
...
@@ -73,9 +66,8 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
...
@@ -73,9 +66,8 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
if
(
jySeq
!=
null
)
{
if
(
jySeq
!=
null
)
{
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfoOld
=
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getInspectionDetectionInfoService
().
getById
(
jySeq
);
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfoOld
=
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getInspectionDetectionInfoService
().
getById
(
jySeq
);
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfoNew
=
BeanUtil
.
copyProperties
(
inspectionDetectionInfoOld
,
IdxBizJgInspectionDetectionInfo
.
class
);
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfoNew
=
BeanUtil
.
copyProperties
(
inspectionDetectionInfoOld
,
IdxBizJgInspectionDetectionInfo
.
class
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
i
dxBizJgSupervis
ionInfoNew
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
i
nspectionDetect
ionInfoNew
);
inspectionDetectionInfoNew
.
setSequenceNbr
(
inspectionDetectionInfoOld
.
getSequenceNbr
());
inspectionDetectionInfoNew
.
setSequenceNbr
(
inspectionDetectionInfoOld
.
getSequenceNbr
());
inspectionDetectionInfoNew
.
setRecDate
(
new
Date
());
List
<
FieldChangeMeta
>
inspectionFieldChangeMetas
=
commonEquipDataProcessService
.
simpleTrackAndUpdate
(
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getInspectionDetectionInfoService
().
getBaseMapper
(),
inspectionDetectionInfoOld
,
inspectionDetectionInfoNew
,
useInfoNew
.
getRecord
(),
"SEQUENCE_NBR"
,
inspectionDetectionInfoOld
.
getSequenceNbr
());
List
<
FieldChangeMeta
>
inspectionFieldChangeMetas
=
commonEquipDataProcessService
.
simpleTrackAndUpdate
(
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getInspectionDetectionInfoService
().
getBaseMapper
(),
inspectionDetectionInfoOld
,
inspectionDetectionInfoNew
,
useInfoNew
.
getRecord
(),
"SEQUENCE_NBR"
,
inspectionDetectionInfoOld
.
getSequenceNbr
());
allChangeColumns
.
addAll
(
inspectionFieldChangeMetas
);
allChangeColumns
.
addAll
(
inspectionFieldChangeMetas
);
commonEquipDataProcessService
.
updateEsDataOfEquip
(
record
,
inspectionDetectionInfoNew
);
commonEquipDataProcessService
.
updateEsDataOfEquip
(
record
,
inspectionDetectionInfoNew
);
...
@@ -85,7 +77,6 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
...
@@ -85,7 +77,6 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
IdxBizJgMaintenanceRecordInfo
idxBizJgMaintenanceRecordInfoNew
=
BeanUtil
.
copyProperties
(
idxBizJgMaintenanceRecordInfoOld
,
IdxBizJgMaintenanceRecordInfo
.
class
);
IdxBizJgMaintenanceRecordInfo
idxBizJgMaintenanceRecordInfoNew
=
BeanUtil
.
copyProperties
(
idxBizJgMaintenanceRecordInfoOld
,
IdxBizJgMaintenanceRecordInfo
.
class
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
idxBizJgMaintenanceRecordInfoNew
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
idxBizJgMaintenanceRecordInfoNew
);
idxBizJgMaintenanceRecordInfoNew
.
setSequenceNbr
(
idxBizJgMaintenanceRecordInfoOld
.
getSequenceNbr
());
idxBizJgMaintenanceRecordInfoNew
.
setSequenceNbr
(
idxBizJgMaintenanceRecordInfoOld
.
getSequenceNbr
());
idxBizJgMaintenanceRecordInfoNew
.
setRecDate
(
new
Date
());
List
<
FieldChangeMeta
>
idxBizJgMaintenanceFieldChangeMetas
=
commonEquipDataProcessService
.
simpleTrackAndUpdate
(
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getIdxBizJgMaintenanceRecordInfoService
().
getBaseMapper
(),
idxBizJgMaintenanceRecordInfoOld
,
idxBizJgMaintenanceRecordInfoNew
,
useInfoNew
.
getRecord
(),
"SEQUENCE_NBR"
,
idxBizJgMaintenanceRecordInfoOld
.
getSequenceNbr
());
List
<
FieldChangeMeta
>
idxBizJgMaintenanceFieldChangeMetas
=
commonEquipDataProcessService
.
simpleTrackAndUpdate
(
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getIdxBizJgMaintenanceRecordInfoService
().
getBaseMapper
(),
idxBizJgMaintenanceRecordInfoOld
,
idxBizJgMaintenanceRecordInfoNew
,
useInfoNew
.
getRecord
(),
"SEQUENCE_NBR"
,
idxBizJgMaintenanceRecordInfoOld
.
getSequenceNbr
());
allChangeColumns
.
addAll
(
idxBizJgMaintenanceFieldChangeMetas
);
allChangeColumns
.
addAll
(
idxBizJgMaintenanceFieldChangeMetas
);
}
}
...
@@ -94,7 +85,6 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
...
@@ -94,7 +85,6 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
IdxBizJgConstructionInfo
constructionInfoNew
=
BeanUtil
.
copyProperties
(
constructionInfoOld
,
IdxBizJgConstructionInfo
.
class
);
IdxBizJgConstructionInfo
constructionInfoNew
=
BeanUtil
.
copyProperties
(
constructionInfoOld
,
IdxBizJgConstructionInfo
.
class
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
constructionInfoNew
);
CommonEquipDataProcessService
.
castMap2Bean
(
changeJson
,
constructionInfoNew
);
constructionInfoNew
.
setSequenceNbr
(
constructionInfoOld
.
getSequenceNbr
());
constructionInfoNew
.
setSequenceNbr
(
constructionInfoOld
.
getSequenceNbr
());
constructionInfoNew
.
setRecDate
(
new
Date
());
List
<
FieldChangeMeta
>
constructionInfoFieldChangeMetas
=
commonEquipDataProcessService
.
simpleTrackAndUpdate
(
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getIdxBizJgConstructionInfoService
().
getBaseMapper
(),
constructionInfoOld
,
constructionInfoNew
,
useInfoNew
.
getRecord
(),
"SEQUENCE_NBR"
,
constructionInfoOld
.
getSequenceNbr
());
List
<
FieldChangeMeta
>
constructionInfoFieldChangeMetas
=
commonEquipDataProcessService
.
simpleTrackAndUpdate
(
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getIdxBizJgConstructionInfoService
().
getBaseMapper
(),
constructionInfoOld
,
constructionInfoNew
,
useInfoNew
.
getRecord
(),
"SEQUENCE_NBR"
,
constructionInfoOld
.
getSequenceNbr
());
allChangeColumns
.
addAll
(
constructionInfoFieldChangeMetas
);
allChangeColumns
.
addAll
(
constructionInfoFieldChangeMetas
);
}
}
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/entity/IdxBizJgMaintenanceRecordInfo.java
View file @
df590a18
...
@@ -174,5 +174,5 @@ public class IdxBizJgMaintenanceRecordInfo extends TzsBaseEntity implements IBas
...
@@ -174,5 +174,5 @@ public class IdxBizJgMaintenanceRecordInfo extends TzsBaseEntity implements IBas
*/
*/
@FieldDisplayDefine
(
value
=
"其他维保附件"
,
type
=
JSON
.
class
)
@FieldDisplayDefine
(
value
=
"其他维保附件"
,
type
=
JSON
.
class
)
@TableField
(
"\"ME_OTHER_ACCESSORIES\""
)
@TableField
(
"\"ME_OTHER_ACCESSORIES\""
)
private
String
ME_OTHER_ACCESSORIES
;
private
String
meOtherAccessories
;
}
}
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