package com.hzs.common.domain.system.sys;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

/**
 * 审批配置表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@KeySequence("SYS_APPROVAL_SEQ")
@TableName("SYS_APPROVAL")
public class SysApproval extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 业务大类（EApprovalType）
     */
    @TableField("APPROVAL_TYPE")
    private Integer approvalType;

    /**
     * 业务类型（EApprovalBusiness）
     */
    @TableField("APPROVAL_BUSINESS")
    private Integer approvalBusiness;

    /**
     * 生效日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("EFFECTIVE_DATE")
    private Date effectiveDate;

}
