Selaa lähdekoodia

Merge remote-tracking branch 'origin/dev' into dev

顾绍勇 5 vuotta sitten
vanhempi
commit
bfce40768c

+ 5
- 0
src/main/java/com/huiju/estateagents/entity/TaRaiseRecord.java Näytä tiedosto

@@ -114,6 +114,11 @@ public class TaRaiseRecord implements Serializable {
114 114
      */
115 115
     private String refundReason;
116 116
 
117
+    /**
118
+     * 退费失败原因
119
+     */
120
+    private String refundFailReason;
121
+
117 122
     /**
118 123
      * 创建时间
119 124
      */

+ 2
- 2
src/main/java/com/huiju/estateagents/service/impl/WxPayServiceImpl.java Näytä tiedosto

@@ -214,12 +214,12 @@ public class WxPayServiceImpl implements IWxPayService {
214 214
                 if (orderInfo.get("refund_status").equals(WXPayConstants.SUCCESS)){
215 215
                     taRaiseRecord.setPayStatus(CommConstant.PAY_STATUS_REFUNDED);
216 216
                     if (!StringUtils.isEmpty(orderInfo.get("err_code"))){
217
-                        taRaiseRecord.setRefundReason(WXPayRefundReason.getMsg(orderInfo.get("err_code")));
217
+                        taRaiseRecord.setRefundFailReason(WXPayRefundReason.getMsg(orderInfo.get("err_code")));
218 218
                     }
219 219
                 }
220 220
                 if (!orderInfo.get("refund_status").equals(WXPayConstants.SUCCESS)){
221 221
                     taRaiseRecord.setPayStatus(CommConstant.PAY_STATUS_CHANGE);
222
-                    taRaiseRecord.setRefundReason("");
222
+                    taRaiseRecord.setRefundFailReason("");
223 223
                 }
224 224
 
225 225
                 taRaiseRecordMapper.updateById(taRaiseRecord);