package com.hzs.common.domain.activity.base;

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.*;
import lombok.experimental.Accessors;

/**
 * 活动审批日志
 *
 * @author hzs
 * @since 2023-04-22
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("AC_APPROVAL_LOG_SEQ")
@TableName("AC_APPROVAL_LOG")
public class AcApprovalLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 业务ID
     */
    @TableField("PK_BUSINESS")
    private Long pkBusiness;

    /**
     * 审批类型（700=提货）
     */
    @TableField("APPROVAL_TYPE")
    private Integer approvalType;

    /**
     * 修改前数据
     */
    @TableField("BEFORE_DATA")
    private String beforeData;

    /**
     * 修改后数据
     */
    @TableField("AFTER_DATA")
    private String afterData;

    /**
     * 审核状态（1=未审核,2=审核通过,3=审核驳回）
     */
    @TableField("APPROVAL_STATUS")
    private Integer approvalStatus;

    /**
     * 审核意见
     */
    @TableField("APPROVAL_REMARK")
    private String approvalRemark;

    /**
     * 修改记录单号
     */
    @TableField("BUSINESS_CODE")
    private String businessCode;

    /**
     * 操作类型（1=新增,2=修改,3=删除）
     */
    @TableField("CONTROLTYPE")
    private Integer controlType;


}
