| | |
| | | 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 partsId |
| | | * @param psvId |
| | | * @return |
| | | */ |
| | | List<ProcessStream> findByPartsId(String partsId); |
| | | List<ProcessStream> findBypsvId(String psvId); |
| | | |
| | | /** |
| | | * 获取零件下的工序号 |
| | | * @param processNo |
| | | * @param partsId |
| | | * @param psvsId |
| | | * @return |
| | | */ |
| | | ProcessStream findByProcessNoAndPartsId(String processNo, String partsId); |
| | | ProcessStream findByProcessNoAndPartsId(String processNo, String psvsId); |
| | | /** |
| | | * 获取部件下的工序号 |
| | | * @param processNo |
| | |
| | | * @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); |
| | | |
| | | boolean assignPermission(Object entity, Collection<SysUser> userList, boolean isAdd); |
| | | |
| | | boolean assignDepartPermission(Object entity, Collection<MdcProduction> departments, boolean isAdd); |
| | | } |