package org.jeecg.modules.dnc.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import org.jeecg.modules.dnc.entity.DocInfo;
|
import org.jeecg.modules.dnc.entity.ProcessStream;
|
import org.jeecg.modules.dnc.request.ProcessStreamRequest;
|
import org.jeecg.modules.dnc.request.TreeInfoRequest;
|
import org.jeecg.modules.system.entity.MdcProduction;
|
import org.jeecg.modules.system.entity.SysUser;
|
|
import java.util.Collection;
|
import java.util.List;
|
|
public interface IProcessStreamService extends IService<ProcessStream> {
|
/**
|
* 添加工序
|
* @param stream
|
* @return
|
*/
|
boolean addProcessStream(ProcessStream stream);
|
|
/**
|
* 编辑工序信息
|
* @param id
|
* @param stream
|
* @return
|
*/
|
boolean editProcessStream(String id, ProcessStream stream);
|
|
/**
|
* 删除工序信息 逻辑删除
|
* @param id
|
* @return
|
*/
|
boolean deleteProcessStream(String id);
|
|
/**
|
* 查询部件/零件节点下的工序列表
|
* @param request
|
* @return
|
*/
|
List<ProcessStream> findByNodeParams(ProcessStreamRequest request);
|
|
/**
|
* 获取产品关联的工序信息(包含部件/零件)
|
* @param productId
|
* @return
|
*/
|
List<ProcessStream> findByProductId(String productId);
|
|
/**
|
* 获取部件关联的工序信息(包含零件)
|
* @param componentId
|
* @return
|
*/
|
List<ProcessStream> findByComponentId(String componentId);
|
|
/**
|
* 获取零件关联的工序信息
|
* @param psvId
|
* @return
|
*/
|
List<ProcessStream> findBypsvId(String psvId);
|
|
/**
|
* 获取零件下的工序号
|
* @param processNo
|
* @param psvsId
|
* @return
|
*/
|
ProcessStream findByProcessNoAndPartsId(String processNo, String psvsId);
|
/**
|
* 获取部件下的工序号
|
* @param processNo
|
* @param componentId
|
* @return
|
*/
|
ProcessStream findByProcessNoAndComponentId(String processNo, String componentId);
|
|
/**
|
* 检查PN码对应的设备是否存在可加工工序
|
* @param pnCode
|
* @param deviceNo
|
* @return
|
*/
|
List<ProcessStream> validateDeviceProcessInfo(String pnCode, String deviceNo);
|
|
/**
|
* 根据用户id获取授权的工序信息
|
* @param userId
|
* @return
|
*/
|
List<ProcessStream> getByuserPerms(String userId);
|
|
/**
|
* 根据用户id获取授权的工序信息
|
* @param userId
|
* @param queryParam 查询条件
|
* @return
|
*/
|
List<ProcessStream> getByuserPerms(String userId,String queryParam);
|
|
/**
|
* 分配部门权限
|
* @param processStream
|
* @param departmentList
|
* @return
|
*/
|
boolean assignAddDepart(ProcessStream processStream, Collection<MdcProduction> departmentList);
|
|
|
/**
|
* 根据一组部件和零件查找工序
|
* @param productId
|
* @param componentIds
|
* @param partsIds
|
* @return
|
*/
|
List<ProcessStream> getByComponentIdList(String productId, List<String> componentIds,List<String> partsIds);
|
|
/**
|
* 分配部门权限
|
* @param processStream
|
* @param departmentList
|
* @return
|
*/
|
boolean assignRemoveDepart(ProcessStream processStream, Collection<MdcProduction> departmentList);
|
|
|
/**
|
* 分配用户权限
|
* @param processStream
|
* @param userList
|
* @return
|
*/
|
boolean assignAddUser(ProcessStream processStream, Collection<SysUser> userList);
|
|
/**
|
* 移除用户权限
|
* @param processStream
|
* @param userList
|
* @return
|
*/
|
boolean assignRemoveUser(ProcessStream processStream, Collection<SysUser> userList);
|
|
/**
|
* 通过工序号、工序名称等查询对应电子样板
|
* @param treeInfoRequest
|
* @return
|
*/
|
List<DocInfo> getByProcessStreamOtherFile(TreeInfoRequest treeInfoRequest);
|
|
/**
|
* 通过工序号、工序名称等查询对应NC文件
|
* NC文件存在设备类下面
|
* @param treeInfoRequest
|
* @return
|
*/
|
List<DocInfo> getByProcessStreamNCFile(TreeInfoRequest treeInfoRequest);
|
}
|