Commit 19ebf622 by zhengyunfei

部分退款

parent e0aa0910
...@@ -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)); // 退款金额
......
...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment