修复部分没更新bug

This commit is contained in:
clunt 2022-10-17 00:50:13 +08:00
parent 6cb7271c1b
commit 1fbd155e09
3 changed files with 7 additions and 1 deletions

View File

@ -165,7 +165,11 @@ public class AfterServiceRecordServiceImpl implements IAfterServiceRecordService
financialDetailService.updateFinancialDetail(financialDetail);
param.setOriginalRefund(refundMoney);
} 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) {
throw new BaseException(e.getMessage());

View File

@ -97,6 +97,7 @@
<if test="customerReason != null">customer_reason = #{customerReason},</if>
<if test="orderDetailId != null">order_detail_id = #{orderDetailId},</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="workerFeedbackReasonType != null">worker_feedback_reason_type = #{workerFeedbackReasonType},</if>
<if test="workerFeedbackReason != null">worker_feedback_reason = #{workerFeedbackReason},</if>

View File

@ -18,6 +18,7 @@ import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.Date;
/**
* 支付回调