package com.zy.asrs.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
@Data
|
@TableName("man_store")
|
public class StoreType implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 仓库id
|
*/
|
@ApiModelProperty(value = "仓库id")
|
@TableId(value = "store_id", type = IdType.INPUT)
|
@TableField("store_id")
|
private String storeId;
|
|
/**
|
* 类型名称
|
*/
|
@ApiModelProperty(value = "类型名称")
|
@TableField("store_name")
|
private String storeName;
|
|
/**
|
* 部门
|
*/
|
@ApiModelProperty(value = "部门")
|
@TableField("department")
|
private String department;
|
|
/**
|
* 部门id
|
*/
|
@ApiModelProperty(value = "部门id")
|
@TableField("department_id")
|
private String departmentId;
|
|
/**
|
* 是否立库本身
|
*/
|
@ApiModelProperty(value = "是否立库本身,0不是,1是")
|
private Integer own = 0;
|
|
/**
|
* 状态 1: 正常 0: 禁用
|
*/
|
@ApiModelProperty(value = "状态 1: 正常 0: 禁用 ")
|
private Integer status = 0;
|
|
/**
|
* 添加人员
|
*/
|
@ApiModelProperty(value = "添加人员")
|
@TableField("create_by")
|
private Long createBy;
|
|
/**
|
* 添加时间
|
*/
|
@ApiModelProperty(value = "添加时间")
|
@TableField("create_time")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
/**
|
* 修改人员
|
*/
|
@ApiModelProperty(value = "修改人员")
|
@TableField("update_by")
|
private Long updateBy;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value = "修改时间")
|
@TableField("update_time")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value = "备注")
|
private String memo;
|
|
|
public String getOwn$() {
|
if (null == this.own) {
|
return "否";
|
}
|
switch (this.own) {
|
case 0:
|
return "否";
|
case 1:
|
return "是";
|
default:
|
return "否";
|
}
|
}
|
|
}
|