Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-sportstest
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-sportstest
Commits
bdfa0c6a
Commit
bdfa0c6a
authored
Jan 02, 2025
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物品
parent
7261572c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
src/main/java/com/xiaomai/cases/polar/finance/order/OrderTools.java
+42
-0
src/main/java/com/xiaomai/cases/polar/goods/TestGoodsOrder.java
+0
-0
No files found.
src/main/java/com/xiaomai/cases/polar/finance/order/OrderTools.java
View file @
bdfa0c6a
...
...
@@ -926,6 +926,48 @@ public class OrderTools extends XMBaseTest {
return
response
;
}
/**
* @param
* @description:继续收款
* @param unpaidAmount:欠费金额
* @param getDetailId:订单ID
* @param paymentWay:支付方式 1-线下微信 2 3
* @param directReceive:true待补交 false待支付
* @author: yangfangfang
**/
public
JSONObject
pay_unpaid
(
BigDecimal
unpaidAmount
,
String
paymentWay
,
String
getDetailId
,
boolean
directReceive
,
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_pay"
)
.
setTerminal
(
Terminal
.
B
);
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"operationTime"
,
TimeUtils
.
getCurrentTime
());
jsonObject
.
put
(
"operatorId"
,
dataApi
.
getLoginInfo
().
getAdminId
());
JSONArray
paymentWays
=
new
JSONArray
();
JSONObject
jsonObject1
=
new
JSONObject
();
jsonObject1
.
put
(
"amount"
,
unpaidAmount
);
jsonObject1
.
put
(
"paymentWay"
,
paymentWay
);
JSONArray
voucherResourceIds
=
new
JSONArray
();
voucherResourceIds
.
add
(
""
);
jsonObject1
.
put
(
"voucherResourceIds"
,
voucherResourceIds
);
paymentWays
.
add
(
jsonObject1
);
jsonObject
.
put
(
"paymentWays"
,
paymentWays
);
jsonObject
.
put
(
"voucherId"
,
getDetailId
);
jsonObject
.
put
(
"directReceive"
,
directReceive
);
jsonObject
.
put
(
"brandId"
,
dataApi
.
getLoginInfo
().
getBrandId
());
jsonObject
.
put
(
"studioId"
,
dataApi
.
getLoginInfo
().
getStudioId
());
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
jsonObject
.
toJSONString
(),
dataheadrs
).
assetsSuccess
(
true
);
JSONObject
response
=
dataApi
.
getBodyInJSON
();
return
response
;
}
/**
...
...
src/main/java/com/xiaomai/cases/polar/goods/Test
RefundGoods
.java
→
src/main/java/com/xiaomai/cases/polar/goods/Test
GoodsOrder
.java
View file @
bdfa0c6a
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