Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
94215d93
Commit
94215d93
authored
May 07, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
皮肤修改模板同步添加属性
parent
2c59b94e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
base-manager/src/main/java/com/mortals/xhx/module/skin/service/impl/SkinFieldServiceImpl.java
...ls/xhx/module/skin/service/impl/SkinFieldServiceImpl.java
+2
-1
No files found.
base-manager/src/main/java/com/mortals/xhx/module/skin/service/impl/SkinFieldServiceImpl.java
View file @
94215d93
...
@@ -76,8 +76,9 @@ public class SkinFieldServiceImpl extends AbstractCRUDServiceImpl<SkinFieldDao,
...
@@ -76,8 +76,9 @@ public class SkinFieldServiceImpl extends AbstractCRUDServiceImpl<SkinFieldDao,
Map
<
Long
,
Set
<
String
>>
collect
=
this
.
find
(
skinFieldQuery
,
context
).
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getSkinId
(),
Collectors
.
mapping
(
y
->
y
.
getFieldCode
(),
Collectors
.
toSet
())));
Map
<
Long
,
Set
<
String
>>
collect
=
this
.
find
(
skinFieldQuery
,
context
).
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getSkinId
(),
Collectors
.
mapping
(
y
->
y
.
getFieldCode
(),
Collectors
.
toSet
())));
for
(
Map
.
Entry
<
Long
,
Set
<
String
>>
entry
:
collect
.
entrySet
())
{
for
(
Map
.
Entry
<
Long
,
Set
<
String
>>
entry
:
collect
.
entrySet
())
{
Long
key
=
entry
.
getKey
();
Long
key
=
entry
.
getKey
();
Set
<
String
>
value
=
entry
.
getValue
();
if
(
key
==
0L
)
continue
;
if
(
key
==
0L
)
continue
;
if
(
entity
.
getFieldCode
().
equals
(
entry
.
getValu
e
()))
continue
;
if
(
value
.
contains
(
entity
.
getFieldCod
e
()))
continue
;
//新增属性
//新增属性
SkinFieldEntity
target
=
new
SkinFieldEntity
();
SkinFieldEntity
target
=
new
SkinFieldEntity
();
BeanUtils
.
copyProperties
(
target
,
entity
,
BeanUtil
.
getNullPropertyNames
(
entity
));
BeanUtils
.
copyProperties
(
target
,
entity
,
BeanUtil
.
getNullPropertyNames
(
entity
));
...
...
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