cuijian
2025-06-26 2166b1661ca1e94fae6e4631799a9997418bff43
src/main/java/org/jeecg/modules/base/model/FactoryIdModel.java
文件名从 src/main/java/org/jeecg/modules/system/model/ProductionIdModel.java 修改
@@ -1,9 +1,9 @@
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;
@@ -18,7 +18,7 @@
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ProductionIdModel implements Serializable {
public class FactoryIdModel implements Serializable {
    private static final long serialVersionUID = 6403075134223338239L;
@@ -42,18 +42,18 @@
     */
    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;
    }
@@ -62,10 +62,10 @@
     *
     * @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;
    }
}