Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
6fc4f7b8
Commit
6fc4f7b8
authored
Dec 11, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充客户详情2的返回值
parent
c61dd7b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
CustomerController.java
...ustomer/controller/admin/customer/CustomerController.java
+11
-1
No files found.
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customer/CustomerController.java
View file @
6fc4f7b8
...
...
@@ -489,7 +489,17 @@ public class CustomerController {
if
(
Objects
.
isNull
(
respVO
))
{
throw
exception
(
CUSTOMER_NOT_EXISTS
);
}
if
(
CollectionUtil
.
isNotEmpty
(
respVO
.
getProductList
()))
{
// 对商品数据进行分组返回
Map
<
Long
,
List
<
ProductRespVO
>>
productRespVOMap
=
respVO
.
getProductList
().
stream
().
collect
(
Collectors
.
groupingBy
(
ProductRespVO:
:
getTypeId
));
List
<
CustomerProductTypeGroupVO
>
products
=
productRespVOMap
.
entrySet
().
stream
().
map
(
entry
->
{
CustomerProductTypeGroupVO
productTypeGroupVO
=
new
CustomerProductTypeGroupVO
();
productTypeGroupVO
.
setTypeId
(
entry
.
getKey
());
productTypeGroupVO
.
setProductIds
(
entry
.
getValue
().
stream
().
map
(
ProductRespVO:
:
getId
).
collect
(
Collectors
.
toList
()));
return
productTypeGroupVO
;
}).
collect
(
Collectors
.
toList
());
respVO
.
setProducts
(
products
);
}
Long
founder
=
respVO
.
getFounder
();
if
(
founder
!=
null
)
{
if
(
Boolean
.
TRUE
.
equals
(
respVO
.
getIsWebOrderConsigneeSync
()))
{
...
...
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