| | |
| | | package com.vincent.rsf.server.manager.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | 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 java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.vincent.rsf.server.manager.service.WarehouseAreasService; |
| | | import com.vincent.rsf.server.manager.service.WarehouseService; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.vincent.rsf.framework.common.Cools; |
| | |
| | | import com.vincent.rsf.server.system.service.UserService; |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("man_loc") |
| | | @Accessors(chain = true) |
| | | public class Loc implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 仓库标识 |
| | | */ |
| | | @ApiModelProperty(value = "仓库标识") |
| | | private Long warehouseId; |
| | | /** |
| | | * 库区标识 |
| | | */ |
| | |
| | | @ApiModelProperty(value= "库位类型") |
| | | private String type; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value= "名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 虚拟库位 |
| | |
| | | * 长/宽/高 |
| | | */ |
| | | @ApiModelProperty(value= "长/宽/高") |
| | | private String size; |
| | | @TableField("`length`") |
| | | private Double length; |
| | | |
| | | /** |
| | | * 宽 |
| | | */ |
| | | @ApiModelProperty("宽") |
| | | @TableField("`width`") |
| | | private Double width; |
| | | |
| | | /** |
| | | * 高 |
| | | */ |
| | | @ApiModelProperty("高") |
| | | private Double height; |
| | | |
| | | /** |
| | | * 排 |
| | | */ |
| | | @ApiModelProperty(value= "排") |
| | | @TableField("`row`") |
| | | private Integer row; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 通道 |
| | | */ |
| | | @ApiModelProperty(value= "通道") |
| | | @ApiModelProperty(value= "巷道") |
| | | private Integer channel; |
| | | |
| | | /** |
| | | * 库位使用状态 |
| | | */ |
| | | private String useStatus; |
| | | |
| | | /** |
| | | * 最大零件数 |
| | |
| | | |
| | | public Loc() {} |
| | | |
| | | public Loc(Long areaId,String code,String type,String name,Short flagLogic,String fucAtrrs,String barcode,String unit,String size,Integer row,Integer col,Integer lev,Integer channel,Integer maxParts,Integer maxPack,Short flagLabelMange,String locAttrs,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | | public Loc(Long areaId, Long warehouseId, String code,String type,Short flagLogic,String fucAtrrs,String barcode,String unit,Double size, Double width, Double height,Integer lrow,Integer col,Integer lev,Integer channel,Integer maxParts,Integer maxPack,Short flagLabelMange,String locAttrs,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | | this.warehouseId = warehouseId; |
| | | this.areaId = areaId; |
| | | this.code = code; |
| | | this.type = type; |
| | | this.name = name; |
| | | this.width = width; |
| | | this.height = height; |
| | | this.flagLogic = flagLogic; |
| | | this.fucAtrrs = fucAtrrs; |
| | | this.barcode = barcode; |
| | | this.unit = unit; |
| | | this.size = size; |
| | | this.row = row; |
| | | this.length = size; |
| | | this.row = lrow; |
| | | this.col = col; |
| | | this.lev = lev; |
| | | this.channel = channel; |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getWarehouseId$() { |
| | | WarehouseService service = SpringUtils.getBean(WarehouseService.class); |
| | | Warehouse warehouse = service.getById(this.warehouseId); |
| | | if (!Cools.isEmpty(warehouse)) { |
| | | return String.valueOf(warehouse.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String gerAreaId$() { |
| | | WarehouseAreasService service = SpringUtils.getBean(WarehouseAreasService.class); |
| | | WarehouseAreas areas = service.getById(this.areaId); |
| | | if (!Cools.isEmpty(areas)) { |
| | | return String.valueOf(areas.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |