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
09b144f1
Commit
09b144f1
authored
Oct 21, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
8e0832ee
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
514 additions
and
0 deletions
+514
-0
CompanyWalletDetailV2DTO.java
...xfc/platform/order/pojo/dto/CompanyWalletDetailV2DTO.java
+137
-0
CompanyWalletDetailV2Biz.java
...com/xxfc/platform/order/biz/CompanyWalletDetailV2Biz.java
+377
-0
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/dto/CompanyWalletDetailV2DTO.java
0 → 100644
View file @
09b144f1
package
com
.
xxfc
.
platform
.
order
.
pojo
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.math.BigDecimal
;
/**
* 门店收支明细DTO
* @author libin
* @version 1.0
* @description
* @data 2019/12/25 14:53
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public
class
CompanyWalletDetailV2DTO
{
@ApiModelProperty
(
"订单号"
)
private
String
orderNo
;
@ApiModelProperty
(
"是否取消订单:0-否;1-是"
)
private
Integer
isCanelOrder
=
0
;
@ApiModelProperty
(
"出发门店"
)
private
Integer
startCompanyId
;
@ApiModelProperty
(
"结束门店"
)
private
Integer
endCompanyId
;
@ApiModelProperty
(
"所属门店"
)
private
Integer
vehicleCompanyId
;
@ApiModelProperty
(
"平台门店"
)
private
Integer
platformCompanyId
;
@ApiModelProperty
(
"平台门店"
)
private
Long
platformBranchId
;
@ApiModelProperty
(
"消费金额"
)
private
BigDecimal
orderAmount
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
"收车服务费"
)
private
BigDecimal
closedVehicleAmout
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
"不计免赔费"
)
private
BigDecimal
damageSafeAmount
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
"其他费用-延迟用车不记免赔"
)
private
BigDecimal
damageSafeAmount2
=
BigDecimal
.
ZERO
;
//算出来
@ApiModelProperty
(
"分销金额"
)
private
BigDecimal
comssion
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
"定损费"
)
private
BigDecimal
lossSpecifiedAmount
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
"违章费"
)
private
BigDecimal
breakRulesRegulation
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
"违约金"
)
private
BigDecimal
violateAmount
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
"更换还车公司费用"
)
private
BigDecimal
chageAmount
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
"订单抽成比例"
)
private
BigDecimal
orderExtract
=
new
BigDecimal
(
1
);
@ApiModelProperty
(
"平台抽成比例"
)
private
BigDecimal
platformExtract
=
new
BigDecimal
(
1
);
//算出来
@ApiModelProperty
(
"车辆费用"
)
private
BigDecimal
vehicleAmount
;
public
BigDecimal
getVehicleAmount
(){
return
orderAmount
.
subtract
(
closedVehicleAmout
).
subtract
(
damageSafeAmount
).
subtract
(
comssion
);
}
@ApiModelProperty
(
"订单抽成"
)
private
BigDecimal
orderComssion
;
public
BigDecimal
getOrderComssion
(){
return
(
getVehicleAmount
().
multiply
(
orderExtract
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
)).
add
(
chageAmount
);
}
@ApiModelProperty
(
"平台抽成"
)
private
BigDecimal
platformComssion
;
public
BigDecimal
getPlatformComssion
(){
return
getVehicleAmount
().
multiply
(
platformExtract
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
}
//算出来
@ApiModelProperty
(
"车辆租赁费"
)
private
BigDecimal
rentVehicleAmount
;
public
BigDecimal
getRentVehicleAmount
(){
return
getVehicleAmount
().
subtract
(
getOrderComssion
()).
subtract
(
getPlatformComssion
());
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/CompanyWalletDetailV2Biz.java
0 → 100644
View file @
09b144f1
This diff is collapsed.
Click to expand it.
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