Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
enterprise-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
赵啸非
enterprise-platform
Commits
3318e751
Commit
3318e751
authored
Oct 30, 2023
by
王晓旭
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/enterprise-platform
parents
62af4abc
38e1d2c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
enterprise-manager/src/main/java/com/mortals/xhx/module/product/web/ProductController.java
...com/mortals/xhx/module/product/web/ProductController.java
+1
-1
No files found.
enterprise-manager/src/main/java/com/mortals/xhx/module/product/web/ProductController.java
View file @
3318e751
...
@@ -80,7 +80,7 @@ public class ProductController extends BaseCRUDJsonBodyMappingController<Product
...
@@ -80,7 +80,7 @@ public class ProductController extends BaseCRUDJsonBodyMappingController<Product
@Override
@Override
protected
int
editAfter
(
Long
id
,
Map
<
String
,
Object
>
model
,
ProductEntity
entity
,
Context
context
)
throws
AppException
{
protected
int
editAfter
(
Long
id
,
Map
<
String
,
Object
>
model
,
ProductEntity
entity
,
Context
context
)
throws
AppException
{
String
categoryIds
=
productCategoryService
.
find
(
new
ProductCategoryQuery
().
productId
(
entity
.
getId
())).
stream
().
map
(
i
->
i
.
getCategoryId
().
toString
()).
collect
(
Collectors
.
joining
(
","
));
String
categoryIds
=
productCategoryService
.
find
(
new
ProductCategoryQuery
().
productId
(
entity
.
getId
())).
stream
().
map
(
i
->
i
.
getCategoryId
().
toString
()).
collect
(
Collectors
.
joining
(
","
));
String
companyIds
=
companyProductService
.
find
(
new
CompanyProductQuery
().
productId
(
entity
.
getId
())).
stream
().
map
(
i
->
i
.
get
Product
Id
().
toString
()).
collect
(
Collectors
.
joining
(
","
));
String
companyIds
=
companyProductService
.
find
(
new
CompanyProductQuery
().
productId
(
entity
.
getId
())).
stream
().
map
(
i
->
i
.
get
Company
Id
().
toString
()).
collect
(
Collectors
.
joining
(
","
));
if
(!
ObjectUtils
.
isEmpty
(
categoryIds
))
{
if
(!
ObjectUtils
.
isEmpty
(
categoryIds
))
{
entity
.
setCategoryId
(
categoryIds
);
entity
.
setCategoryId
(
categoryIds
);
...
...
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