package org.jeecg.modules.base.service;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import org.apache.ibatis.annotations.Param;
|
import org.jeecg.common.system.vo.SelectTreeModel;
|
import org.jeecg.modules.base.entity.FactoryModel;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import org.jeecg.common.exception.JeecgBootException;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import org.jeecg.modules.base.entity.FactoryModelDetail;
|
import org.jeecg.modules.system.entity.SysDepart;
|
|
import java.util.List;
|
import java.util.Map;
|
import java.util.Set;
|
|
/**
|
* @Description: 工厂建模
|
* @Author: jeecg-boot
|
* @Date: 2022-11-08
|
* @Version: V1.0
|
*/
|
public interface IFactoryModelService extends IService<FactoryModel> {
|
/**
|
* @param enterpriseId
|
* @param version
|
* 加载树
|
* @return
|
*/
|
List<SelectTreeModel> loadTree(String enterpriseId,Integer version);
|
/**
|
* 获取版本列表
|
* @param page
|
* @param ids
|
* @param parentId
|
* @param version
|
* @return
|
*/
|
Page<Map<String, Object>> getFactoryList(Page<Map<String,Object>> page,
|
Integer version,
|
String parentId,
|
List<String> ids
|
|
);
|
/**
|
* 弃用
|
* @return
|
*/
|
List<SysDepart> getDepartList();
|
/**
|
* 弃用
|
* @param uid
|
* @return
|
*/
|
public String getEidByUid(String uid);
|
/**
|
* 弃用
|
* @param eid
|
* @return
|
*/
|
List<FactoryModelDetail> getListByEid(String eid);
|
/**
|
* 获取所有版本号
|
* @param
|
* @return
|
*/
|
public Set<Integer> getVersionList();
|
/**
|
* 获取初始版本号
|
* @return
|
*/
|
public Integer getInitVersion();
|
/**
|
* 获取最后一次生效列表
|
* @param parentIds
|
* @return
|
*/
|
List<FactoryModel> getLastUsableList(List<String> parentIds);
|
/**
|
* 获取当前生效列表
|
* @param parentIds
|
* @return
|
*/
|
List<FactoryModel> getUsableList(List<String> parentIds);
|
/**
|
* 查当前生效版本和上次生效版本
|
* @return
|
*/
|
Map<String,Object> getNowAndLastUsableVersion();
|
/**
|
* 根据父Id获取所有孩子列表
|
* @param version
|
* @return
|
*/
|
List<FactoryModel> getAllDepartByPid(Integer version);
|
/**
|
* 获取版本状态根据版本号
|
* @param version
|
* @return
|
*/
|
List<String> getVersionStatusByVersion(Integer version);
|
/**
|
* 获取当前生效车间列表
|
* @return
|
*/
|
List<Map<String,Object>> getUsableWorkShopList();
|
/**
|
* 获取生效版本号
|
* @return
|
*/
|
List<Integer> getUsableVersion();
|
|
}
|