瀏覽代碼

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

顾绍勇 5 年之前
父節點
當前提交
bfce40768c

+ 5
- 0
src/main/java/com/huiju/estateagents/entity/TaRaiseRecord.java 查看文件

114
      */
114
      */
115
     private String refundReason;
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 查看文件

214
                 if (orderInfo.get("refund_status").equals(WXPayConstants.SUCCESS)){
214
                 if (orderInfo.get("refund_status").equals(WXPayConstants.SUCCESS)){
215
                     taRaiseRecord.setPayStatus(CommConstant.PAY_STATUS_REFUNDED);
215
                     taRaiseRecord.setPayStatus(CommConstant.PAY_STATUS_REFUNDED);
216
                     if (!StringUtils.isEmpty(orderInfo.get("err_code"))){
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
                 if (!orderInfo.get("refund_status").equals(WXPayConstants.SUCCESS)){
220
                 if (!orderInfo.get("refund_status").equals(WXPayConstants.SUCCESS)){
221
                     taRaiseRecord.setPayStatus(CommConstant.PAY_STATUS_CHANGE);
221
                     taRaiseRecord.setPayStatus(CommConstant.PAY_STATUS_CHANGE);
222
-                    taRaiseRecord.setRefundReason("");
222
+                    taRaiseRecord.setRefundFailReason("");
223
                 }
223
                 }
224
 
224
 
225
                 taRaiseRecordMapper.updateById(taRaiseRecord);
225
                 taRaiseRecordMapper.updateById(taRaiseRecord);