Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
youka-api
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-youka-wallet
youka-api
Commits
ad2b84ae
Commit
ad2b84ae
authored
Jun 08, 2018
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
计算当日剩余额度精度调整
parent
1810e8d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
PayApiService.java
src/main/java/com/thinkgem/jeesite/modules/pay/service/PayApiService.java
+3
-3
No files found.
src/main/java/com/thinkgem/jeesite/modules/pay/service/PayApiService.java
View file @
ad2b84ae
...
...
@@ -720,9 +720,9 @@ public class PayApiService {
//获取用户对应等级费率以及每笔需要的手续费
RateEntity
gradeRate
=
getGradeRate
(
userEntity
.
getLevel
(),
request
.
getPayChannel
());
//获取扣除手续费后的金额
//获取扣除手续费后的金额
,已经转换为分
BigDecimal
amount
=
calculationAmount
(
gradeRate
,
request
.
getAmount
());
int
amountFen
=
amount
.
multiply
(
BigDecimal
.
valueOf
(
100.0
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
intValue
();
//通过用户code获取user_detail表中数据
UserDetailEntity
userDetail
=
userService
.
getUserDetailByCode
(
userEntity
.
getCode
());
PayBackDto
payBackDto
=
new
PayBackDto
();
...
...
@@ -733,7 +733,7 @@ public class PayApiService {
dto
.
setOrderId
(
MakeOrderNum
.
makeOrderNum
());
//非订单号
dto
.
setMerchantId
(
ComCode
.
MERCHANT_ID
);
//商户号
dto
.
setMerchantKey
(
ComCode
.
MERCHANT_KEY
);
dto
.
setAmount
(
amount
.
multiply
(
BigDecimal
.
valueOf
(
100
)).
intValue
()
);
//订单金额,单位为分
dto
.
setAmount
(
amount
Fen
);
//订单金额,单位为分
dto
.
setTrxType
(
3
);
//交易类型,默认传3
dto
.
setType
(
cardEntity
.
getCardType
().
equals
(
"D"
)?
6
:
5
);
//5 借记卡 只能 D0 6 贷记卡 D0 t1 ,表中 银行卡类型 D储蓄卡 C信用卡'
dto
.
setBankNo
(
cardEntity
.
getCardNo
());
//支付卡号
...
...
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