记得上下班打卡 | git大法好,push需谨慎

Commit ac520d53 authored by 胡佳晨's avatar 胡佳晨

商品取消订单 退券

商铺拒绝退款 增加 退款次数和退款时间
用户订单详情增加 最后一次退款订单状态
parent 3b20eae1
...@@ -31,7 +31,7 @@ public class GoblinAppOrderDetailsVo implements Serializable, Cloneable { ...@@ -31,7 +31,7 @@ public class GoblinAppOrderDetailsVo implements Serializable, Cloneable {
private int canRefund; private int canRefund;
@ApiModelProperty(value = "退款订单数量") @ApiModelProperty(value = "退款订单数量")
private int refundSize; private int refundSize;
@ApiModelProperty(value = "退款订单状态[退款/退货状态[0-商铺发起退款|1-退款申请(用户发送退款请求)|2-退款成功(商家同意退款)|3-退款拒绝(商家拒绝退款)|4-退货申请(用户发起退货请求)|5-退货拒绝(商家拒绝退货)|6-退货审核通过等待用户填写物流(商家审核通过,等待用户寄回商品)|7-待收货(用户已确认)|8-退货完成(商家收货并且同意退款给用户)|9-退货失败(商家不同意退款)]") @ApiModelProperty(value = "退款订单状态[退款/退货状态[-1-无状态|0-商铺发起退款|1-退款申请(用户发送退款请求)|2-退款成功(商家同意退款)|3-退款拒绝(商家拒绝退款)|4-退货申请(用户发起退货请求)|5-退货拒绝(商家拒绝退货)|6-退货审核通过等待用户填写物流(商家审核通过,等待用户寄回商品)|7-待收货(用户已确认)|8-退货完成(商家收货并且同意退款给用户)|9-退货失败(商家不同意退款)]")
private int refundStatus; private int refundStatus;
private static final GoblinAppOrderDetailsVo obj = new GoblinAppOrderDetailsVo(); private static final GoblinAppOrderDetailsVo obj = new GoblinAppOrderDetailsVo();
......
...@@ -127,8 +127,12 @@ public class GoblinOrderAppServiceImpl implements IGoblinOrderAppService { ...@@ -127,8 +127,12 @@ public class GoblinOrderAppServiceImpl implements IGoblinOrderAppService {
} }
} }
List<String> orderRefundIds = redisUtils.getBackOrderByOrderId(orderId); List<String> orderRefundIds = redisUtils.getBackOrderByOrderId(orderId);
GoblinBackOrderVo backOrderVo = redisUtils.getBackOrderVo(orderRefundIds.get(orderRefundIds.size()-1)); if (orderRefundIds.size() == 0) {
vo.setRefundStatus(backOrderVo.getStatus()); GoblinBackOrderVo backOrderVo = redisUtils.getBackOrderVo(orderRefundIds.get(orderRefundIds.size() - 1));
vo.setRefundStatus(backOrderVo.getStatus());
} else {
vo.setRefundStatus(-1);
}
vo.setRefundSize(orderRefundIds.size()); vo.setRefundSize(orderRefundIds.size());
vo.setRestTime(getRestTime(orderVo)); vo.setRestTime(getRestTime(orderVo));
vo.setStoreOrderVo(orderVo); vo.setStoreOrderVo(orderVo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment