/*
|
* Copyright (c) 2018-2025, ztt All rights reserved.
|
*
|
* Redistribution and use in source and binary forms, with or without
|
* modification, are permitted provided that the following conditions are met:
|
*
|
* Redistributions of source code must retain the above copyright notice,
|
* this list of conditions and the following disclaimer.
|
* Redistributions in binary form must reproduce the above copyright
|
* notice, this list of conditions and the following disclaimer in the
|
* documentation and/or other materials provided with the distribution.
|
* Neither the name of the pig4cloud.com developer nor the names of its
|
* contributors may be used to endorse or promote products derived from
|
* this software without specific prior written permission.
|
* Author: ztt
|
*/
|
|
package com.chinaztt.mes.basic.entity;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
import java.time.LocalDateTime;
|
|
/**
|
* 仓库基础数据
|
*
|
* @author sunxl
|
* @date 2020-09-18 09:32:01
|
*/
|
@Data
|
@TableName("basic_warehouse")
|
@EqualsAndHashCode(callSuper = true)
|
@ApiModel(value = "仓库基础数据")
|
public class Warehouse extends Model<Warehouse> {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* id
|
*/
|
@TableId
|
@ApiModelProperty(value="id")
|
private Long id;
|
/**
|
* 仓库编号
|
*/
|
@Unique
|
@ApiModelProperty(value="仓库编号")
|
private String warehouseNo;
|
/**
|
* 仓库名称
|
*/
|
@ApiModelProperty(value="仓库名称")
|
private String warehouseName;
|
/**
|
* 仓库描述
|
*/
|
@ApiModelProperty(value="仓库描述")
|
private String warehouseDesc;
|
/**
|
* 仓库类型
|
*/
|
@ApiModelProperty(value="仓库类型")
|
private String warehouseType;
|
/**
|
* 工厂
|
*/
|
@LinkedField(sourceTable ="basic_factory" ,sourceField="id")
|
@ApiModelProperty(value="工厂")
|
private Long factoryId;
|
/**
|
* 仓库地址
|
*/
|
@ApiModelProperty(value="仓库地址")
|
private String warehouseAddr;
|
/**
|
* 仓库地图
|
*/
|
@ApiModelProperty(value="仓库地图")
|
private String warehouseMap;
|
/**
|
* 仓库状态
|
*/
|
@ApiModelProperty(value="仓库状态")
|
private Integer warehouseStatus;
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value="备注")
|
private String warehouseRemark;
|
/**
|
* 创建时间
|
*/
|
@ApiModelProperty(value="创建时间")
|
@TableField(fill = FieldFill.INSERT)
|
private LocalDateTime createTime;
|
/**
|
* 编号
|
*/
|
@TableField(exist = false)
|
@ApiModelProperty(value = "编号")
|
private String factoryNo;
|
/**
|
* url
|
*/
|
@ApiModelProperty(value="url")
|
private String url;
|
|
@TableLogic
|
private Boolean active;
|
}
|