package com.ssm.manage.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 门店房间表(StoreRoom)实体类
 *
 * @author makejava
 * @since 2022-04-12 16:47:05
 */
public class StoreRoom implements Serializable {
    private static final long serialVersionUID = 119601983777749434L;
    /**
     * id
     */
    @Id
    private Long id;
    /**
     * 房间编码
     */
    @Column(name = "room_num")
    private String roomNum;
    /**
     * 房间名称
     */
    @Column(name = "room_name")
    private String roomName;
    /**
     * 门店ID
     */
    @Column(name = "store_id")
    private Long storeId;
    /**
     * 门店名称
     */
    @Column(name = "store_name")
    private String storeName;
    /**
     * 状态 0：停用，1=启用
     */
    @Column(name = "state")
    private Integer state;
    /**
     * 标签
     */
    @Column(name = "remark")
    private String remark;
    /**
     * 建立人（用户名称（用户编码）），来源于员工档案
     */
    @Column(name = "founder_staff")
    private String founderStaff;
    /**
     * 建立时间
     */

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "founder_datetime")
    private Date founderDatetime;
    /**
     * 最近修改人（用户名称（用户编码）），来源于员工档案
     */
    @Column(name = "modify_by")
    private String modifyBy;
    /**
     * 最近修改时间
     */

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "modify_datetime")
    private Date modifyDatetime;
    /**
     * 0=空闲，1=使用中，2=打扫中，3=维(装)修中
     */
    @Column(name = "on_state")
    private Integer onState;
    /**
     * 房间床位手牌数
     */
    @Column(name = "room_hand")
    private Integer roomHand;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRoomNum() {
        return roomNum;
    }

    public void setRoomNum(String roomNum) {
        this.roomNum = roomNum;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getFounderStaff() {
        return founderStaff;
    }

    public void setFounderStaff(String founderStaff) {
        this.founderStaff = founderStaff;
    }

    public Date getFounderDatetime() {
        return founderDatetime;
    }

    public void setFounderDatetime(Date founderDatetime) {
        this.founderDatetime = founderDatetime;
    }

    public String getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }

    public Date getModifyDatetime() {
        return modifyDatetime;
    }

    public void setModifyDatetime(Date modifyDatetime) {
        this.modifyDatetime = modifyDatetime;
    }

    public Integer getOnState() {
        return onState;
    }

    public void setOnState(Integer onState) {
        this.onState = onState;
    }

    public Integer getRoomHand() {
        return roomHand;
    }

    public void setRoomHand(Integer roomHand) {
        this.roomHand = roomHand;
    }
}

