package com.hzs.common.domain.sale.order;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 退款表
 *
 * @author hzs
 * @since 2023-08-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("SA_REFUND_SEQ")
@TableName("SA_REFUND")
public class SaRefund extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 退单编号
     */
    @TableField("REFUND_CODE")
    private String refundCode;

    /**
     * 订单ID
     */
    @TableField("PK_ORDER")
    private Long pkOrder;

    /**
     * 退单金额
     */
    @TableField("REFUND_AMOUNT")
    private BigDecimal refundAmount;

    /**
     * 退单业绩
     */
    @TableField("REFUND_ACHIEVE")
    private BigDecimal refundAchieve;

    /**
     * 退单考核业绩
     */
    @TableField("REFUND_ASS_ACHIEVE")
    private BigDecimal refundAssAchieve;

    /**
     * 退款邮费
     */
    @TableField("POSTAGE")
    private BigDecimal postage;

    /**
     * 售后类型编码（与三方同步取EJxhhServiceType）
     */
    @TableField("SERVICE_CODE")
    private String serviceCode;

    /**
     * 售后状态（0=售后申请，1=处理中，2=已处理，3=申请失败）
     */
    @TableField("REFUND_STATUS")
    private Integer refundStatus;

    /**
     * 退款备注
     */
    @TableField("REFUND_REMARK")
    private String refundRemark;


}
