退单问题修复,售后记录查询问题修复
This commit is contained in:
parent
b99cf43949
commit
cbfb18a235
|
|
@ -156,12 +156,14 @@ public class AfterServiceRecordServiceImpl implements IAfterServiceRecordService
|
|||
try {
|
||||
response = adapayService.payReverse(orderMaster.getDeptId(), financialMaster.getPaymentId(), String.valueOf(refundMoney));
|
||||
if (AdapayStatusEnum.succeeded.code.equals(response.getString("status"))) {
|
||||
if (AdapayStatusEnum.succeeded.code.equals(response.getString("status"))) {
|
||||
financialDetailService.updateFinancialDetail(financialDetail);
|
||||
}
|
||||
financialMaster.setPayMoney(financialMaster.getPayMoney().subtract(refundMoney));
|
||||
financialMasterService.updateFinancialMaster(financialMaster);
|
||||
financialDetailService.updateFinancialDetail(financialDetail);
|
||||
} else if (AdapayStatusEnum.failed.code.equals(response.getString("status"))) {
|
||||
throw new BaseException(response.getString("error_msg"));
|
||||
}
|
||||
} catch (BaseAdaPayException e) {
|
||||
throw new BaseException("发起退款异常!");
|
||||
throw new BaseException(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@
|
|||
<if test="refund != null "> and refund = #{refund}</if>
|
||||
<if test="agreedRefund != null "> and agreed_refund = #{agreedRefund}</if>
|
||||
<if test="customerFinalCheck != null "> and customer_final_check = #{customerFinalCheck}</if>
|
||||
<if test="customerFinalCheck == null">
|
||||
and ( customer_final_check = '0' or customer_final_check is null )
|
||||
</if>
|
||||
<!-- <if test="customerFinalCheck == null">-->
|
||||
<!-- and ( customer_final_check = '0' or customer_final_check is null )-->
|
||||
<!-- </if>-->
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue