package cn.iocoder.yudao.module.aftersales.dal.dataobject.compensation;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import cn.iocoder.yudao.module.aftersales.enums.AfterSaleCompensationAuditStatusEnum;
|
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
|
*
|
* 对应 xlsx 售后 2「故障赔付、服务补偿…全流程追溯」
|
*/
|
@TableName("after_sale_compensation")
|
@KeySequence("after_sale_compensation_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class AfterSaleCompensationDO extends BaseDO {
|
|
/**
|
* 赔付单编号
|
*/
|
@TableId
|
private Long id;
|
/**
|
* 赔付单号
|
*/
|
private String compensationNo;
|
/**
|
* 赔付类型: 1-故障赔付 2-服务补偿
|
*/
|
private Integer compensationType;
|
/**
|
* 关联售后工单编号,关联 after_sale_ticket.id
|
*/
|
private Long ticketId;
|
/**
|
* 客户编号
|
*/
|
private Long customerId;
|
/**
|
* 关联销售订单编号
|
*/
|
private Long saleOrderId;
|
/**
|
* 赔付金额
|
*/
|
private BigDecimal amount;
|
/**
|
* 赔付对象
|
*/
|
private String payee;
|
/**
|
* 赔付原因
|
*/
|
private String reason;
|
/**
|
* 审批状态
|
*
|
* 枚举 {@link AfterSaleCompensationAuditStatusEnum}
|
*/
|
private Integer auditStatus;
|
/**
|
* 审批流程实例编号
|
*/
|
private String processInstanceId;
|
/**
|
* 审核人
|
*/
|
private Long auditUserId;
|
/**
|
* 审核时间
|
*/
|
private LocalDateTime auditTime;
|
/**
|
* 审核备注
|
*/
|
private String auditRemark;
|
/**
|
* 支付状态(账务联动预留,接财务后使用)
|
*/
|
private Integer payStatus;
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|