lbq
6 天以前 18c0ffb02bbc0aa7eeea1d79a210260880b964f8
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Warehouse.java
@@ -1,16 +1,17 @@
package com.vincent.rsf.server.manager.entity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -20,9 +21,12 @@
import com.vincent.rsf.server.system.entity.User;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@Data
@TableName("man_warehouse")
@Accessors(chain = true)
@ApiModel(value = "Warehouse", description = "仓库基础信息")
public class Warehouse implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -58,35 +62,35 @@
    @ApiModelProperty(value= "仓库地址")
    private String address;
    /**
     * 经度
     */
    @ApiModelProperty(value= "经度")
    private String longitude;
    /**
     * 纬度
     */
    @ApiModelProperty(value= "纬度")
    private String latgitude;
    /**
     * 长
     */
    @ApiModelProperty(value= "长")
    private Double length;
    /**
     * 宽
     */
    @ApiModelProperty(value= "宽")
    private Double width;
    /**
     * 高
     */
    @ApiModelProperty(value= "高")
    private Double height;
//    /**
//     * 经度
//     */
//    @ApiModelProperty(value= "经度")
//    private String longitude;
//
//    /**
//     * 纬度
//     */
//    @ApiModelProperty(value= "纬度")
//    private String latgitude;
//
//    /**
//     * 长
//     */
//    @ApiModelProperty(value= "长")
//    private Double length;
//
//    /**
//     * 宽
//     */
//    @ApiModelProperty(value= "宽")
//    private Double width;
//
//    /**
//     * 高
//     */
//    @ApiModelProperty(value= "高")
//    private Double height;
    /**
     * 状态 1: 正常  0: 冻结  
@@ -118,6 +122,7 @@
     */
    @ApiModelProperty(value= "添加时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
@@ -131,6 +136,7 @@
     */
    @ApiModelProperty(value= "修改时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
@@ -139,6 +145,21 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    /**
     * 库区
     */
    @TableField(exist = false)
    @ApiModelProperty("库区")
    private List<WarehouseAreas> children;
    @TableField(exist = false)
    private Integer flagWare;
    @TableField(exist = false)
    @ApiModelProperty("用于仓库树状图,唯一索引")
    private Long index;
    public Warehouse() {}
    public Warehouse(String name,String code,String factory,String address,String longitude,String latgitude,Double length,Double width,Double height,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
@@ -146,11 +167,11 @@
        this.code = code;
        this.factory = factory;
        this.address = address;
        this.longitude = longitude;
        this.latgitude = latgitude;
        this.length = length;
        this.width = width;
        this.height = height;
//        this.longitude = longitude;
//        this.latgitude = latgitude;
//        this.length = length;
//        this.width = width;
//        this.height = height;
        this.status = status;
        this.deleted = deleted;
        this.tenantId = tenantId;