| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | |
| | | */ |
| | | @ApiModelProperty(value= "库位类型") |
| | | private Long typeId; |
| | | @TableField(exist = false) |
| | | private String areaId$; |
| | | |
| | | |
| | | |
| | | public LocTypeRela() {} |
| | | |
| | |
| | | this.typeId = typeId; |
| | | } |
| | | |
| | | // /** |
| | | // * @author Ryan |
| | | // * @description 获取库位 |
| | | // * @param |
| | | // * @return |
| | | // * @time 2025/3/24 10:28 |
| | | // */ |
| | | // public String getLocId$() { |
| | | // if (this.warehouseId == null) { return null; } |
| | | // WarehouseService warehouseService = SpringUtils.getBean(WarehouseService.class); |
| | | // Warehouse warehouse = warehouseService.getById(this.warehouseId); |
| | | // if (Objects.isNull(warehouse)) { |
| | | // return null; |
| | | // } |
| | | // return warehouse.getName(); |
| | | // } |
| | | |
| | | /** |
| | | * @author Ryan |
| | |
| | | * @time 2025/3/24 10:27 |
| | | */ |
| | | public String getAreaId$() { |
| | | if (this.locId == null) { return null; } |
| | | LocService locService = SpringUtils.getBean(LocService.class); |
| | | Loc byId = locService.getById(this.locId); |
| | | if (Objects.isNull(byId)) { |
| | | return null; |
| | | } |
| | | return byId.getCode(); |
| | | return this.areaId$; |
| | | } |
| | | |
| | | |