Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
a9755e76
Commit
a9755e76
authored
Dec 09, 2020
by
缪晖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拼单参与人数字段添加
parent
d6959505
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+1
-0
order-application-service/src/main/java/cn/freemud/entities/vo/QueryCollageOrderResponseVo.java
+5
-0
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderResponseVo.java
+5
-0
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
a9755e76
...
@@ -2010,6 +2010,7 @@ public class OrderAdapter {
...
@@ -2010,6 +2010,7 @@ public class OrderAdapter {
productVos
.
sort
(
Comparator
.
comparing
(
ProductVo:
:
getSequence
));
productVos
.
sort
(
Comparator
.
comparing
(
ProductVo:
:
getSequence
));
responseVo
.
setProducts
(
productVos
);
responseVo
.
setProducts
(
productVos
);
responseVo
.
setProductNum
(
productVos
.
stream
().
mapToInt
(
ProductVo:
:
getQty
).
sum
());
responseVo
.
setProductNum
(
productVos
.
stream
().
mapToInt
(
ProductVo:
:
getQty
).
sum
());
responseVo
.
setOrderUserNum
(
productVos
.
stream
().
filter
(
product
->
StringUtils
.
isNotEmpty
(
product
.
getUserId
())).
map
(
ProductVo:
:
getUserId
).
distinct
().
count
());
}
}
}
}
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/QueryCollageOrderResponseVo.java
View file @
a9755e76
...
@@ -266,6 +266,11 @@ public class QueryCollageOrderResponseVo {
...
@@ -266,6 +266,11 @@ public class QueryCollageOrderResponseVo {
*/
*/
private
Byte
marketingType
;
private
Byte
marketingType
;
/**
* 订单参与人数(普通订单-0;拼单订单-实际参与人数)
*/
private
Long
orderUserNum
;
//private List<ProductVo> products;
//private List<ProductVo> products;
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderResponseVo.java
View file @
a9755e76
...
@@ -389,6 +389,11 @@ public class QueryOrderResponseVo {
...
@@ -389,6 +389,11 @@ public class QueryOrderResponseVo {
*/
*/
private
Byte
marketingType
;
private
Byte
marketingType
;
/**
* 订单参与人数(普通订单-0;拼单订单-实际参与人数)
*/
private
Long
orderUserNum
;
@Data
@Data
public
static
class
OrderStatusFlow
{
public
static
class
OrderStatusFlow
{
/**
/**
...
...
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