修复部分没更新bug
This commit is contained in:
parent
6cb7271c1b
commit
1fbd155e09
|
|
@ -165,7 +165,11 @@ public class AfterServiceRecordServiceImpl implements IAfterServiceRecordService
|
||||||
financialDetailService.updateFinancialDetail(financialDetail);
|
financialDetailService.updateFinancialDetail(financialDetail);
|
||||||
param.setOriginalRefund(refundMoney);
|
param.setOriginalRefund(refundMoney);
|
||||||
} else if (AdapayStatusEnum.failed.code.equals(response.getString("status"))) {
|
} else if (AdapayStatusEnum.failed.code.equals(response.getString("status"))) {
|
||||||
throw new BaseException("发起退款异常");
|
if("reverse_amt_over".equals(response.getString("error_code"))){
|
||||||
|
throw new BaseException("退款金额大于最后一次支付,请撤销改金额再发起");
|
||||||
|
}else {
|
||||||
|
throw new BaseException("发起退款异常");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (BaseAdaPayException e) {
|
} catch (BaseAdaPayException e) {
|
||||||
throw new BaseException(e.getMessage());
|
throw new BaseException(e.getMessage());
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,7 @@
|
||||||
<if test="customerReason != null">customer_reason = #{customerReason},</if>
|
<if test="customerReason != null">customer_reason = #{customerReason},</if>
|
||||||
<if test="orderDetailId != null">order_detail_id = #{orderDetailId},</if>
|
<if test="orderDetailId != null">order_detail_id = #{orderDetailId},</if>
|
||||||
<if test="operType != null">oper_type = #{operType},</if>
|
<if test="operType != null">oper_type = #{operType},</if>
|
||||||
|
<if test="originalRefund != null">original_refund = #{originalRefund},</if>
|
||||||
<if test="workerFeedbackResult != null">worker_feedback_result = #{workerFeedbackResult},</if>
|
<if test="workerFeedbackResult != null">worker_feedback_result = #{workerFeedbackResult},</if>
|
||||||
<if test="workerFeedbackReasonType != null">worker_feedback_reason_type = #{workerFeedbackReasonType},</if>
|
<if test="workerFeedbackReasonType != null">worker_feedback_reason_type = #{workerFeedbackReasonType},</if>
|
||||||
<if test="workerFeedbackReason != null">worker_feedback_reason = #{workerFeedbackReason},</if>
|
<if test="workerFeedbackReason != null">worker_feedback_reason = #{workerFeedbackReason},</if>
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 支付回调
|
* 支付回调
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue