Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
b31372ef
Commit
b31372ef
authored
May 27, 2022
by
terrfly
Browse files
分账执行API, 解决提示订单不存在的问题
parent
43c9a6bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/ctrl/division/PayOrderDivisionExecController.java
View file @
b31372ef
...
...
@@ -30,7 +30,6 @@ import com.jeequan.jeepay.pay.rqrs.division.PayOrderDivisionExecRQ;
import
com.jeequan.jeepay.pay.rqrs.division.PayOrderDivisionExecRS
;
import
com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg
;
import
com.jeequan.jeepay.pay.service.ConfigContextQueryService
;
import
com.jeequan.jeepay.pay.service.ConfigContextService
;
import
com.jeequan.jeepay.pay.service.PayOrderDivisionProcessService
;
import
com.jeequan.jeepay.service.impl.MchDivisionReceiverGroupService
;
import
com.jeequan.jeepay.service.impl.MchDivisionReceiverService
;
...
...
@@ -102,7 +101,7 @@ public class PayOrderDivisionExecController extends ApiController {
}
//处理分账请求
ChannelRetMsg
channelRetMsg
=
payOrderDivisionProcessService
.
processPayOrderDivision
(
bizRQ
.
getPayOrderId
(),
bizRQ
.
getUseSysAutoDivisionReceivers
(),
receiverList
,
false
);
ChannelRetMsg
channelRetMsg
=
payOrderDivisionProcessService
.
processPayOrderDivision
(
payOrder
.
getPayOrderId
(),
bizRQ
.
getUseSysAutoDivisionReceivers
(),
receiverList
,
false
);
PayOrderDivisionExecRS
bizRS
=
new
PayOrderDivisionExecRS
();
bizRS
.
setState
(
channelRetMsg
.
getChannelState
()
==
ChannelRetMsg
.
ChannelState
.
CONFIRM_SUCCESS
?
PayOrderDivisionRecord
.
STATE_SUCCESS
:
PayOrderDivisionRecord
.
STATE_FAIL
);
...
...
@@ -148,13 +147,13 @@ public class PayOrderDivisionExecController extends ApiController {
if
(
receiver
.
getDivisionProfit
()
!=
null
){
if
(
receiver
.
getDivisionProfit
().
compareTo
(
BigDecimal
.
ZERO
)
<
0
){
throw
new
BizException
(
"分账用户receiverId=["
+
receiver
.
getReceiverId
()
==
null
?
""
:
receiver
.
getReceiverId
()+
"],"
+
"receiverGroupId=["
+
receiver
.
getReceiverGroupId
()
==
null
?
""
:
receiver
.
getReceiverGroupId
()+
"] 分账比例不得小于0%"
);
throw
new
BizException
(
"分账用户receiverId=["
+
(
receiver
.
getReceiverId
()
==
null
?
""
:
receiver
.
getReceiverId
()
)
+
"],"
+
"receiverGroupId=["
+
(
receiver
.
getReceiverGroupId
()
==
null
?
""
:
receiver
.
getReceiverGroupId
()
)
+
"] 分账比例不得小于0%"
);
}
if
(
receiver
.
getDivisionProfit
().
compareTo
(
BigDecimal
.
ONE
)
>
0
){
throw
new
BizException
(
"分账用户receiverId=["
+
receiver
.
getReceiverId
()
==
null
?
""
:
receiver
.
getReceiverId
()+
"],"
+
"receiverGroupId=["
+
receiver
.
getReceiverGroupId
()
==
null
?
""
:
receiver
.
getReceiverGroupId
()+
"] 分账比例不得高于100%"
);
throw
new
BizException
(
"分账用户receiverId=["
+
(
receiver
.
getReceiverId
()
==
null
?
""
:
receiver
.
getReceiverId
()
)
+
"],"
+
"receiverGroupId=["
+
(
receiver
.
getReceiverGroupId
()
==
null
?
""
:
receiver
.
getReceiverGroupId
()
)
+
"] 分账比例不得高于100%"
);
}
}
}
...
...
Write
Preview
Supports
Markdown
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