Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
771f1841
Commit
771f1841
authored
Nov 21, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
租车会员统计
parent
d877326c
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
129 additions
and
92 deletions
+129
-92
OrderReceivedStatisticsBase.java
...fc/platform/order/entity/OrderReceivedStatisticsBase.java
+3
-1
OrderMemberReceivedStatisticsBiz.java
.../platform/order/biz/OrderMemberReceivedStatisticsBiz.java
+125
-91
OrderRentVehicleReceivedStatisticsBiz.java
...form/order/biz/OrderRentVehicleReceivedStatisticsBiz.java
+1
-0
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/entity/OrderReceivedStatisticsBase.java
View file @
771f1841
...
@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -14,7 +15,8 @@ import java.util.Date;
...
@@ -14,7 +15,8 @@ import java.util.Date;
* @data 2019/11/11 15:49
* @data 2019/11/11 15:49
*/
*/
@Data
@Data
public
class
OrderReceivedStatisticsBase
{
public
class
OrderReceivedStatisticsBase
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
*
*/
*/
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderMemberReceivedStatisticsBiz.java
View file @
771f1841
This diff is collapsed.
Click to expand it.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderRentVehicleReceivedStatisticsBiz.java
View file @
771f1841
...
@@ -114,6 +114,7 @@ public class OrderRentVehicleReceivedStatisticsBiz extends BaseBiz<OrderRentVehi
...
@@ -114,6 +114,7 @@ public class OrderRentVehicleReceivedStatisticsBiz extends BaseBiz<OrderRentVehi
}
}
}
}
//无状态组合统计对象生成
Map
<
Integer
,
BigDecimal
>
companyAmountMap
=
companyAmoutList
.
stream
().
collect
(
Collectors
.
groupingBy
(
CompanyAmountBo:
:
getCompanyId
,
Map
<
Integer
,
BigDecimal
>
companyAmountMap
=
companyAmoutList
.
stream
().
collect
(
Collectors
.
groupingBy
(
CompanyAmountBo:
:
getCompanyId
,
CollectorsUtil
.
summingBigDecimal
(
CompanyAmountBo:
:
getAmount
)));
CollectorsUtil
.
summingBigDecimal
(
CompanyAmountBo:
:
getAmount
)));
Set
<
Map
.
Entry
<
Integer
,
BigDecimal
>>
companyAmountSet
=
companyAmountMap
.
entrySet
();
Set
<
Map
.
Entry
<
Integer
,
BigDecimal
>>
companyAmountSet
=
companyAmountMap
.
entrySet
();
...
...
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