package com.ssm.manage.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ssm.manage.page.BasePage;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * (BasePost)实体类
 *
 * @author makejava
 * @since 2022-05-24 16:03:00
 */
@Table(name = "base_post")
@Setter
@Getter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class BasePostRequest extends BasePage implements Serializable {
    private static final long serialVersionUID = 253074324499916176L;
    /**
     * id
     */
    @Id
    @Column(name = "id")
    private Integer id;
    /**
     * 门店Id
     */
    @Column(name = "store_id")
    private Long storeId;
    /**
     * 门店编码
     */
    @Column(name = "store_num")
    private String storeNum;
    /**
     * 门店名称
     */
    @Column(name = "store_name")
    private String storeName;
    /**
     * 录单人ID
     */
    @Column(name = "input_id")
    private Long inputId;
    /**
     * 录单人名称
     */
    @Column(name = "input_by")
    private String inputBy;
    /**
     * 录单时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "input_date")
    private Date inputDate;
    /**
     * 修改人ID
     */
    @Column(name = "update_id")
    private Long updateId;
    /**
     * 修改人名称
     */
    @Column(name = "update_by")
    private String updateBy;
    /**
     * 修改时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "update_date")
    private Date updateDate;
    /**
     * 职务编码
     */
    @Column(name = "post_num")
    private String postNum;
    /**
     * 职务名称
     */
    @Column(name = "post_name")
    private String postName;
    /**
     * 0=启用，1=通用
     */
    @Column(name = "state")
    private Integer state;

}

