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

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.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 订单自提申请记录
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("SA_ORDER_SELF_LOG_SEQ")
@TableName("SA_ORDER_SELF_LOG")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SaOrderSelfLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 销售订单主表
     */
    @TableField("PK_ORDER")
    private Long pkOrder;

    /**
     * 提货码
     */
    @TableField("SELF_CODE")
    private String selfCode;

    /**
     * 联系方式
     */
    @TableField("PHONE")
    private String phone;

    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;

    /**
     * 审核状态（0=已申请，1=审核中,2=审核通过,3=审核驳回）
     */
    @TableField("APPROVE_STATUS")
    @Transaction(transactionKey = EnumsPrefixConstants.APPROVE_RECHARGE_OPERATION)
    private Integer approveStatus;

    /**
     * 驳回原因
     */
    @TableField("REJECT_MSG")
    private String rejectMsg;

}
