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
57b52486
Commit
57b52486
authored
Oct 10, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝转账
parent
749dc5b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
8 deletions
+41
-8
FundPayVo.java
...c/main/java/com/xxfc/platform/universal/vo/FundPayVo.java
+22
-0
OrderPayBiz.java
...ain/java/com/xxfc/platform/universal/biz/OrderPayBiz.java
+19
-8
No files found.
xx-universal/xx-universal-api/src/main/java/com/xxfc/platform/universal/vo/FundPayVo.java
0 → 100644
View file @
57b52486
package
com
.
xxfc
.
platform
.
universal
.
vo
;
import
lombok.Data
;
@Data
public
class
FundPayVo
{
//转账单号
private
String
outBizNo
;
//转账账号
private
String
payeeAccount
;
private
String
amount
;
//转账方单号
private
String
payerShowName
;
//转账备注
private
String
remark
;
}
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/biz/OrderPayBiz.java
View file @
57b52486
...
@@ -21,6 +21,7 @@ import com.github.wxiaoqi.security.common.util.result.JsonResultUtil;
...
@@ -21,6 +21,7 @@ import com.github.wxiaoqi.security.common.util.result.JsonResultUtil;
import
com.xxfc.platform.universal.entity.Dictionary
;
import
com.xxfc.platform.universal.entity.Dictionary
;
import
com.xxfc.platform.universal.entity.OrderPay
;
import
com.xxfc.platform.universal.entity.OrderPay
;
import
com.xxfc.platform.universal.mapper.OrderPayMapper
;
import
com.xxfc.platform.universal.mapper.OrderPayMapper
;
import
com.xxfc.platform.universal.vo.FundPayVo
;
import
com.xxfc.platform.universal.vo.OrderPayVo
;
import
com.xxfc.platform.universal.vo.OrderPayVo
;
import
com.xxfc.platform.universal.weixin.api.WXPay
;
import
com.xxfc.platform.universal.weixin.api.WXPay
;
import
com.xxfc.platform.universal.weixin.util.HTTPUtils
;
import
com.xxfc.platform.universal.weixin.util.HTTPUtils
;
...
@@ -375,16 +376,15 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
...
@@ -375,16 +376,15 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
* @param alipayClient
* @param alipayClient
* @throws AlipayApiException
* @throws AlipayApiException
*/
*/
public
void
fundTrans
(
AlipayClient
alipayClient
)
throws
AlipayApiException
{
public
void
fundTrans
(
AlipayClient
alipayClient
,
FundPayVo
fundPayVo
)
throws
AlipayApiException
{
AlipayFundTransToaccountTransferRequest
request
=
new
AlipayFundTransToaccountTransferRequest
();
AlipayFundTransToaccountTransferRequest
request
=
new
AlipayFundTransToaccountTransferRequest
();
request
.
setBizContent
(
"{"
+
request
.
setBizContent
(
"{"
+
"\"out_biz_no\":\"
3142321423432
\","
+
"\"out_biz_no\":\"
"
+
fundPayVo
.
getOutBizNo
()
+
"
\","
+
"\"payee_type\":\"ALIPAY_LOGONID\","
+
"\"payee_type\":\"ALIPAY_LOGONID\","
+
"\"payee_account\":\"abc@sina.com\","
+
"\"payee_account\":\""
+
fundPayVo
.
getPayeeAccount
()
+
"\","
+
"\"amount\":\"12.23\","
+
"\"amount\":\""
+
fundPayVo
.
getAmount
()
+
"\","
+
"\"payer_show_name\":\"上海交通卡退款\","
+
"\"payer_show_name\":\""
+
fundPayVo
.
getPayerShowName
()+
"\","
+
"\"payee_real_name\":\"张三\","
+
"\"remark\":\""
+
fundPayVo
.
getRemark
()
+
"\""
+
"\"remark\":\"转账备注\""
+
" }"
);
" }"
);
AlipayFundTransToaccountTransferResponse
response
=
alipayClient
.
execute
(
request
);
AlipayFundTransToaccountTransferResponse
response
=
alipayClient
.
execute
(
request
);
if
(
response
.
isSuccess
()){
if
(
response
.
isSuccess
()){
...
@@ -509,6 +509,17 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
...
@@ -509,6 +509,17 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
OrderPayBiz
orderPayBiz
=
new
OrderPayBiz
();
OrderPayBiz
orderPayBiz
=
new
OrderPayBiz
();
orderPayBiz
.
alipayOrderRefund
(
"20190806134440000001"
,
"2019080622001421530542309594"
,
3
,
"xxxx"
,
""
);
AlipayClient
alipayClient
=
orderPayBiz
.
getAlipayClient
();
FundPayVo
fundPayVo
=
new
FundPayVo
();
fundPayVo
.
setAmount
(
"0.50"
);
fundPayVo
.
setOutBizNo
(
"201910101554"
);
fundPayVo
.
setPayeeAccount
(
"15362885034"
);
fundPayVo
.
setPayerShowName
(
"欣欣房车网络科技"
);
fundPayVo
.
setRemark
(
"测试转账"
);
try
{
orderPayBiz
.
fundTrans
(
alipayClient
,
fundPayVo
);
}
catch
(
AlipayApiException
e
)
{
e
.
printStackTrace
();
}
}
}
}
}
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