Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
farming
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
郑云飞
farming
Commits
19ebf622
Commit
19ebf622
authored
Dec 08, 2023
by
zhengyunfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部分退款
parent
e0aa0910
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
src/main/java/com/yunniu/farming/webadmin/service/impl/WxServiceImpl.java
+1
-1
src/main/resources/mappings/OrderMainMapper.xml
+2
-0
No files found.
src/main/java/com/yunniu/farming/webadmin/service/impl/WxServiceImpl.java
View file @
19ebf622
...
@@ -257,7 +257,7 @@ public class WxServiceImpl implements WxService {
...
@@ -257,7 +257,7 @@ public class WxServiceImpl implements WxService {
parameters
.
put
(
"out_trade_no"
,
order
.
getSorderno
());
// 商户订单号
parameters
.
put
(
"out_trade_no"
,
order
.
getSorderno
());
// 商户订单号
parameters
.
put
(
"refund_fee_type"
,
"CNY"
);
// 默认人民币:CNY
parameters
.
put
(
"refund_fee_type"
,
"CNY"
);
// 默认人民币:CNY
parameters
.
put
(
"total_fee"
,
decimalFormat
.
format
(
tradeMoney
*
100
));
// 订单总金额
parameters
.
put
(
"total_fee"
,
decimalFormat
.
format
(
tradeMoney
*
100
));
// 订单总金额
if
(
order
.
getIrefundstatus
().
equals
(
OrderMain
.
STATUS_
REFUND_ONLY
))
{
if
(
order
.
getIrefundstatus
().
equals
(
OrderMain
.
STATUS_
APPLICATION
))
{
parameters
.
put
(
"refund_fee"
,
decimalFormat
.
format
(
tradeMoney
*
100
));
// 订单总金额
parameters
.
put
(
"refund_fee"
,
decimalFormat
.
format
(
tradeMoney
*
100
));
// 订单总金额
}
else
{
}
else
{
parameters
.
put
(
"refund_fee"
,
decimalFormat
.
format
(
order
.
getIrefundmoney
()
*
100
));
// 退款金额
parameters
.
put
(
"refund_fee"
,
decimalFormat
.
format
(
order
.
getIrefundmoney
()
*
100
));
// 退款金额
...
...
src/main/resources/mappings/OrderMainMapper.xml
View file @
19ebf622
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
<result
column=
"ipaystatus"
property=
"ipaystatus"
jdbcType=
"INTEGER"
/>
<result
column=
"ipaystatus"
property=
"ipaystatus"
jdbcType=
"INTEGER"
/>
<result
column=
"group_order_id"
property=
"groupOrderId"
jdbcType=
"INTEGER"
/>
<result
column=
"group_order_id"
property=
"groupOrderId"
jdbcType=
"INTEGER"
/>
<result
column=
"irefundstatus"
property=
"irefundstatus"
jdbcType=
"INTEGER"
/>
<result
column=
"irefundstatus"
property=
"irefundstatus"
jdbcType=
"INTEGER"
/>
<result
column=
"irefundmoney"
property=
"irefundmoney"
jdbcType=
"INTEGER"
/>
<result
column=
"tpaytime"
property=
"tpaytime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"tpaytime"
property=
"tpaytime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"trefundtime"
property=
"trefundtime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"trefundtime"
property=
"trefundtime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"istatus"
property=
"istatus"
jdbcType=
"INTEGER"
/>
<result
column=
"istatus"
property=
"istatus"
jdbcType=
"INTEGER"
/>
...
@@ -126,6 +127,7 @@
...
@@ -126,6 +127,7 @@
ordermain.dactscore,
ordermain.dactscore,
ordermain.ipaystatus,
ordermain.ipaystatus,
ordermain.irefundstatus,
ordermain.irefundstatus,
ordermain.irefundmoney,
ordermain.srefundreason,
ordermain.srefundreason,
ordermain.srefundpic,
ordermain.srefundpic,
ordermain.couriernumber,
ordermain.couriernumber,
...
...
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