package cn.pluss.platform.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 库存分组表
 */
@Data
@TableName("tb_pluss_device_stock_group")
public class DeviceStockGroup {

    @TableId
    private Integer id;

    @TableField("`groupCode`")
    private String groupCode;

    @TableField("`groupName`")
    private String groupName;

    @TableField("`desc`")
    private String desc;

    @TableField("`sort`")
    private Integer sort;

    @TableField("`createTime`")
    private Date createTime;

    /**
     * 创建时间 开始时间
     */
    @TableField(exist = false, condition = "createTime &gt; #{%s}")
    private Date createTimeStart;

    /**
     * 创建时间 截止时间
     */
    @TableField(exist = false, condition = "createTime &lt; #{%s}")
    private Date createTimeEnd;

    @TableField("`updateTime`")
    private Date updateTime;

    /**
     * 更新时间 开始时间
     */
    @TableField(exist = false, condition = "updateTime &gt; #{%s}")
    private Date updateTimeStart;

    /**
     * 更新时间 截止时间
     */
    @TableField(exist = false, condition = "updateTime &lt; #{%s}")
    private Date updateTimeEnd;

    @TableField("`creator`")
    private Integer creator;

    @TableField("`updater`")
    private Integer updater;
}
