package cn.iocoder.yudao.module.aftersales.dal.dataobject.returnobj;
|
|
// 注:package 名使用 returnobj 避免与 Java 关键字 return 冲突
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import cn.iocoder.yudao.module.aftersales.enums.AfterSaleReturnStatusEnum;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
/**
|
* 售后退货申请 DO
|
*/
|
@TableName("after_sale_return")
|
@KeySequence("after_sale_return_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class AfterSaleReturnDO extends BaseDO {
|
|
/**
|
* 退货申请编号
|
*/
|
@TableId
|
private Long id;
|
/**
|
* 退货单号
|
*/
|
private String no;
|
/**
|
* 关联工单编号,关联 after_sale_ticket.id
|
*/
|
private Long ticketId;
|
/**
|
* 客户编号
|
*/
|
private Long customerId;
|
/**
|
* 关联销售订单编号
|
*/
|
private Long saleOrderId;
|
/**
|
* 退货类型: 1-退款退货 2-换货 3-仅退款
|
*/
|
private Integer returnType;
|
/**
|
* 退货原因
|
*/
|
private String returnReason;
|
/**
|
* 缺陷分类
|
*/
|
private String defectCategory;
|
/**
|
* 应退总金额
|
*/
|
private BigDecimal totalReturnPrice;
|
/**
|
* 实退金额
|
*/
|
private BigDecimal actualRefundPrice;
|
/**
|
* 退货状态
|
*
|
* 枚举 {@link AfterSaleReturnStatusEnum}
|
*/
|
private Integer status;
|
/**
|
* 审核人
|
*/
|
private Long auditUserId;
|
/**
|
* 审核时间
|
*/
|
private LocalDateTime auditTime;
|
/**
|
* MES 退货单编号,关联 mes_wm_return_sales.id
|
*/
|
private Long mesReturnId;
|
/**
|
* MES 退货单号(冗余)
|
*/
|
private String mesReturnCode;
|
/**
|
* 质检结论: 合格/特采/退货/报废
|
*/
|
private String qualityResult;
|
/**
|
* 质检报告附件URL
|
*/
|
private String qualityReportUrl;
|
/**
|
* 退货入库完成时间
|
*/
|
private LocalDateTime returnInboundTime;
|
/**
|
* 退款/换货完成时间
|
*/
|
private LocalDateTime refundTime;
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|