mall中退货设计
...大约 1 分钟
mall中退货设计
1. 简介
退货也是在商城系统中的一部分,
2. 流程
2.1 客户端发起退货申请
退货是针对每一件商品的、(每一件商品在下单时,要计算单件商品实际支付的金额,在退货时才知道每件商品应该退多少金额)
退货申请的参数
public class OmsOrderReturnApply implements Serializable {
private Long id;
@ApiModelProperty(value = "订单id")
private Long orderId;
@ApiModelProperty(value = "收货地址表id")
private Long companyAddressId;
@ApiModelProperty(value = "退货商品id")
private Long productId;
@ApiModelProperty(value = "订单编号")
private String orderSn;
@ApiModelProperty(value = "申请时间")
private Date createTime;
@ApiModelProperty(value = "会员用户名")
private String memberUsername;
@ApiModelProperty(value = "退款金额")
private BigDecimal returnAmount;
@ApiModelProperty(value = "退货人姓名")
private String returnName;
@ApiModelProperty(value = "退货人电话")
private String returnPhone;
@ApiModelProperty(value = "申请状态:0->待处理;1->退货中;2->已完成;3->已拒绝")
private Integer status;
@ApiModelProperty(value = "处理时间")
private Date handleTime;
@ApiModelProperty(value = "商品图片")
private String productPic;
@ApiModelProperty(value = "商品名称")
private String productName;
@ApiModelProperty(value = "商品品牌")
private String productBrand;
@ApiModelProperty(value = "商品销售属性:颜色:红色;尺码:xl;")
private String productAttr;
@ApiModelProperty(value = "退货数量")
private Integer productCount;
@ApiModelProperty(value = "商品单价")
private BigDecimal productPrice;
@ApiModelProperty(value = "商品实际支付单价")
private BigDecimal productRealPrice;
@ApiModelProperty(value = "原因")
private String reason;
@ApiModelProperty(value = "描述")
private String description;
@ApiModelProperty(value = "凭证图片,以逗号隔开")
private String proofPics;
@ApiModelProperty(value = "处理备注")
private String handleNote;
@ApiModelProperty(value = "处理人员")
private String handleMan;
@ApiModelProperty(value = "收货人")
private String receiveMan;
@ApiModelProperty(value = "收货时间")
private Date receiveTime;
@ApiModelProperty(value = "收货备注")
private String receiveNote;
}
发起退货代码
并没有检验是否已申请
@Override
public int create(OmsOrderReturnApplyParam returnApply) {
OmsOrderReturnApply realApply = new OmsOrderReturnApply();
BeanUtils.copyProperties(returnApply,realApply);
realApply.setCreateTime(new Date());
realApply.setStatus(0);
return returnApplyMapper.insert(realApply);
}
赞助