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
eb0b9a8a
Commit
eb0b9a8a
authored
Jan 18, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:公共更新es方法 空指针异常
parent
607c86da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+10
-7
No files found.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
eb0b9a8a
...
...
@@ -2505,15 +2505,18 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
//整合新旧数据
Bean
.
copyExistPropertis
(
newData
,
oldData
);
//处理施工单位信息[去重]
if
(!
ValidationUtil
.
isEmpty
(
oldUscUnitCreditCode
))
{
if
(!
oldUscUnitCreditCode
.
contains
(
newUscUnitCreditCode
)){
oldData
.
setUSC_UNIT_CREDIT_CODE
(
oldUscUnitCreditCode
+
","
+
newUscUnitCreditCode
);
oldData
.
setUSC_UNIT_NAME
(
oldUscUnitName
+
","
+
newUscUnitName
);
if
(!
ValidationUtil
.
isEmpty
(
newUscUnitCreditCode
)){
if
(!
ValidationUtil
.
isEmpty
(
oldUscUnitCreditCode
))
{
if
(!
oldUscUnitCreditCode
.
contains
(
newUscUnitCreditCode
)){
oldData
.
setUSC_UNIT_CREDIT_CODE
(
oldUscUnitCreditCode
+
","
+
newUscUnitCreditCode
);
oldData
.
setUSC_UNIT_NAME
(
oldUscUnitName
+
","
+
newUscUnitName
);
}
}
else
{
oldData
.
setUSC_UNIT_CREDIT_CODE
(
newUscUnitCreditCode
);
oldData
.
setUSC_UNIT_NAME
(
newUscUnitName
);
}
}
else
{
oldData
.
setUSC_UNIT_CREDIT_CODE
(
newUscUnitCreditCode
);
oldData
.
setUSC_UNIT_NAME
(
newUscUnitName
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
oldData
))
{
oldData
.
setREC_DATE
(
System
.
currentTimeMillis
());
...
...
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