| | |
| | | private Long parentId; |
| | | // 名称 |
| | | @TableField(value = "tree_name") |
| | | private String name; |
| | | private String treeName; |
| | | // code |
| | | @TableField(value = "tree_code") |
| | | private String code; |
| | | private String treeCode; |
| | | // 类型 |
| | | @TableField(value = "tree_type") |
| | | private Integer type; |
| | | private Integer treeType; |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
| | | @TableField(value = "create_time") |
| | | private Date createTime; |
| | |
| | | //展示名称 |
| | | private transient String label; |
| | | |
| | | //类型 方便前端展示 |
| | | private transient Integer type; |
| | | |
| | | private transient List<ProductMix> children = new ArrayList<>(); |
| | | |
| | | public ProductMix(Long id, Long parentId, String name, String code, Integer type, Date createTime) { |
| | | public ProductMix(Long id, Long parentId, String treeName, String trrCode, Integer type, Date createTime) { |
| | | this.id = id; |
| | | this.parentId = parentId; |
| | | this.name = name; |
| | | this.code = code; |
| | | this.treeName = treeName; |
| | | this.treeCode = trrCode; |
| | | this.type = type; |
| | | this.children = new ArrayList<>(); |
| | | this.label="["+code+"]"+name; |
| | | this.label="["+ trrCode +"]"+ treeName; |
| | | this.createTime = createTime; |
| | | } |
| | | |