文件名从 src/main/java/org/jeecg/modules/system/model/ProductionIdModel.java 修改 |
| | |
| | | package org.jeecg.modules.system.model; |
| | | package org.jeecg.modules.base.model; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.modules.system.entity.MdcProduction; |
| | | import org.jeecg.modules.base.entity.Factory; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | public class ProductionIdModel implements Serializable { |
| | | public class FactoryIdModel implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 6403075134223338239L; |
| | | |
| | |
| | | */ |
| | | private Boolean selectable = true; |
| | | |
| | | List<ProductionIdModel> children = new ArrayList<>(); |
| | | List<FactoryIdModel> children = new ArrayList<>(); |
| | | |
| | | /** |
| | | * 灏哅dcProductionTreeModel鐨勯儴鍒嗘暟鎹斁鍦ㄨ瀵硅薄褰撲腑 |
| | | * 灏咶actoryTreeModel鐨勯儴鍒嗘暟鎹斁鍦ㄨ瀵硅薄褰撲腑 |
| | | * |
| | | * @param treeModel |
| | | * @return |
| | | */ |
| | | public ProductionIdModel convert(MdcProductionTreeModel treeModel) { |
| | | public FactoryIdModel convert(FactoryTreeModel treeModel) { |
| | | this.key = treeModel.getId(); |
| | | this.value = treeModel.getId(); |
| | | this.title = treeModel.getProductionName(); |
| | | this.title = treeModel.getFactoryName(); |
| | | return this; |
| | | } |
| | | |
| | |
| | | * |
| | | * @return |
| | | */ |
| | | public ProductionIdModel convertByUserProduction(MdcProduction mdcProduction) { |
| | | this.key = mdcProduction.getId(); |
| | | this.value = mdcProduction.getId(); |
| | | this.title = mdcProduction.getProductionName(); |
| | | public FactoryIdModel convertByUserFactory(Factory factory) { |
| | | this.key = factory.getId(); |
| | | this.value = factory.getId(); |
| | | this.title = factory.getFactoryName(); |
| | | return this; |
| | | } |
| | | } |