| | |
| | | private Integer unique; |
| | | |
| | | /** |
| | | * 字段类型 0: 物料 1: 库存 |
| | | */ |
| | | @ApiModelProperty(value= "字段类型 0: 物料 1: 库存") |
| | | @TableField("field_type") |
| | | private Integer fieldType; |
| | | |
| | | /** |
| | | * 所属机构 |
| | | */ |
| | | @ApiModelProperty(value= "所属机构") |
| | |
| | | } |
| | | } |
| | | |
| | | public String getFieldType$(){ |
| | | if (null == this.fieldType){ return null; } |
| | | switch (this.fieldType){ |
| | | case 0: |
| | | return "物料"; |
| | | case 1: |
| | | return "库存"; |
| | | default: |
| | | return String.valueOf(this.fieldType); |
| | | } |
| | | } |
| | | |
| | | public String getHostId$(){ |
| | | HostService service = SpringUtils.getBean(HostService.class); |
| | | Host host = service.getById(this.hostId); |