处理退款状态

This commit is contained in:
TinyAnts 2023-04-03 17:00:34 +08:00
parent 6010b19826
commit fe9e4557ab
2 changed files with 5 additions and 0 deletions

View File

@ -109,6 +109,7 @@ public class FinanceRechargerServiceImpl implements IFinanceRechargerService {
vo.setAvatar(UrlUtils.toAbsoluteUrl(vo.getAvatar()));
vo.setPayWay(PaymentEnum.getPayWayMsg(Integer.parseInt(vo.getPayWay())));
vo.setIsRefund(0);
if (vo.getPayStatus().equals(1)) {
RefundRecord refundRecord = refundRecordMapper.selectOne(
new QueryWrapper<RefundRecord>()
@ -116,6 +117,7 @@ public class FinanceRechargerServiceImpl implements IFinanceRechargerService {
.eq("order_id", vo.getId())
.last("limit 1"));
if (StringUtils.isNotNull(refundRecord)) {
vo.setIsRefund(1);
vo.setRefundStatusMsg(RefundEnum.getRefundStatusMsg(refundRecord.getRefundStatus()));
}
}

View File

@ -37,6 +37,9 @@ public class FinanceRechargeListVo implements Serializable {
@ApiModelProperty("退款状态: [0=未退款 , 1=已退款]")
private Integer refundStatus;
@ApiModelProperty("是否有退款: [0=否 , 1=是]")
private Integer isRefund;
@ApiModelProperty("退款状态描述")
private String refundStatusMsg;