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
6178cac1
Commit
6178cac1
authored
Feb 23, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(设备代码):注销详情返回接口修改
parent
8a04f905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
JgScrapCancelServiceImpl.java
.../module/jg/biz/service/impl/JgScrapCancelServiceImpl.java
+11
-4
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/service/impl/JgScrapCancelServiceImpl.java
View file @
6178cac1
...
...
@@ -53,6 +53,8 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
/**
* 设备报废注销服务实现类
...
...
@@ -533,11 +535,16 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
installationInfo
.
put
(
"equCode"
,
one
.
getEquCode
());
Map
<
String
,
Object
>
detailFieldCamelCaseByRecord
=
idxBizJgRegisterInfoService
.
getDetailFieldCamelCaseByRecord
(
jgScrapCancelEq
.
getEquId
());
String
equList
=
String
.
valueOf
(
detailFieldCamelCaseByRecord
.
getOrDefault
(
"equList"
,
""
));
BeanUtils
.
copyProperties
(
installationInfo
,
detailFieldCamelCaseByRecord
);
detailFieldCamelCaseByRecord
.
put
(
"equList"
,
equList
);
detailFieldCamelCaseByRecord
.
put
(
"EQU_LIST_CODE"
,
equList
);
Map
<
String
,
Object
>
collect
=
Stream
.
concat
(
installationInfo
.
entrySet
().
stream
(),
detailFieldCamelCaseByRecord
.
entrySet
().
stream
()
)
.
filter
(
entry
->
entry
.
getValue
()
!=
null
)
.
collect
(
Collectors
.
toMap
(
Map
.
Entry
::
getKey
,
Map
.
Entry
::
getValue
,
(
existing
,
replacement
)
->
existing
));
collect
.
put
(
"equList"
,
equList
);
collect
.
put
(
"EQU_LIST_CODE"
,
equList
);
return
new
HashMap
<
String
,
Object
>()
{{
this
.
put
(
PAGE_KEY
,
detailFieldCamelCaseByRecord
);
this
.
put
(
PAGE_KEY
,
collect
);
}};
}
return
new
HashMap
<
String
,
Object
>()
{{
...
...
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