| | |
| | | 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; |
| | |
| | | |
| | | @Data |
| | | @TableName("man_warehouse") |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "Warehouse", description = "仓库基础信息") |
| | | public class Warehouse implements Serializable { |
| | | |
| | |
| | | @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: 冻结 |
| | |
| | | * 是否删除 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否删除 1: 是 0: 否 ") |
| | | @TableLogic |
| | | private Integer deleted; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value= "添加人员") |
| | | private Long createBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String createBy$; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long updateBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String updateBy$; |
| | | |
| | | /** |
| | | * 修改时间 |
| | |
| | | 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; |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |