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
d10f703c
Commit
d10f703c
authored
Oct 11, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
2897117a
8d9ff4a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
OrderMsgBiz.java
...n/java/com/xxfc/platform/order/biz/inner/OrderMsgBiz.java
+20
-6
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderMsgBiz.java
View file @
d10f703c
package
com
.
xxfc
.
platform
.
order
.
biz
.
inner
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
...
...
@@ -10,11 +11,10 @@ import com.xxfc.platform.app.entity.Cofig;
import
com.xxfc.platform.app.feign.ConfigFeign
;
import
com.xxfc.platform.order.biz.OrderAccountBiz
;
import
com.xxfc.platform.order.biz.OrderRefundBiz
;
import
com.xxfc.platform.order.contant.enumerate.AccountTypeEnum
;
import
com.xxfc.platform.order.contant.enumerate.OrderTypeEnum
;
import
com.xxfc.platform.order.contant.enumerate.RefundStatusEnum
;
import
com.xxfc.platform.order.contant.enumerate.RefundTypeEnum
;
import
com.xxfc.platform.order.contant.enumerate.*
;
import
com.xxfc.platform.order.entity.*
;
import
com.xxfc.platform.order.pojo.account.OrderAccountDeduction
;
import
com.xxfc.platform.order.pojo.account.OrderAccountDetail
;
import
com.xxfc.platform.universal.constant.DictionaryKey
;
import
com.xxfc.platform.universal.dto.SmsTemplateDTO
;
import
com.xxfc.platform.universal.entity.Dictionary
;
...
...
@@ -425,9 +425,23 @@ public class OrderMsgBiz {
setOrderId
(
baseOrder
.
getId
());
setAccountType
(
AccountTypeEnum
.
OUT_PART_DEPOSIT
.
getCode
());
}});
originalAmount
=
orvd
.
getDeposit
();
violateAmount
=
orderAccount
.
getDeductAmount
();
OrderAccountDetail
oad
=
BeanUtil
.
toBean
(
orderAccount
.
getAccountDetail
(),
OrderAccountDetail
.
class
);
OrderAccountDeduction
trafficDeduction
=
new
OrderAccountDeduction
()
{{
setAmount
(
BigDecimal
.
ZERO
);
}};
//违章保证金
for
(
OrderAccountDeduction
deductionTemp
:
oad
.
getDeductions
())
{
if
(
deductionTemp
.
getType
().
equals
(
DeductionTypeEnum
.
VIOLATE_TRAFFIC_KEEP
.
getCode
()))
{
trafficDeduction
=
deductionTemp
;
}
}
//(原押金 - 违章保证金 )+ 订单退款金额
originalAmount
=
oad
.
getOriginDepositAmount
().
subtract
(
trafficDeduction
.
getAmount
()).
add
(
oad
.
getOrderAmount
());
//退款金额
refundAmount
=
orderAccount
.
getAccountAmount
();
// 扣款 = originalAmount - refundAmount
violateAmount
=
originalAmount
.
subtract
(
refundAmount
);
residueAmount
=
orvd
.
getReturnPayResidue
();
}
else
if
(
RefundStatusEnum
.
REFUND_DEPOSIT
.
getCode
().
equals
(
baseOrder
.
getRefundStatus
())){
smstype
=
SmsTemplateDTO
.
REFUND_B
;
...
...
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