| | |
| | | package org.jeecg.modules.dnc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.modules.dnc.dto.ComponentExt; |
| | | import org.jeecg.modules.dnc.entity.ComponentInfo; |
| | | import org.jeecg.modules.dnc.entity.DocInfo; |
| | | import org.jeecg.modules.dnc.entity.PermissionStream; |
| | | import org.jeecg.modules.dnc.ucenter.Department; |
| | | import org.jeecg.modules.dnc.request.TreeInfoRequest; |
| | | import org.jeecg.modules.system.entity.MdcProduction; |
| | | import org.jeecg.modules.system.entity.SysUser; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | * @return |
| | | */ |
| | | List<ComponentInfo> getByParentIdAndUserId(String parentId, String userId); |
| | | |
| | | /** |
| | | * 通过零件号、材质等查询对应电子样板 |
| | | * @param treeInfoRequest |
| | | * @return |
| | | */ |
| | | List<DocInfo> getByComponentInfo(TreeInfoRequest treeInfoRequest); |
| | | |
| | | /** |
| | | * 查询可以被引用的部件 |
| | | * @param componentInfo |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | IPage<ComponentInfo> getByComponentId(ComponentInfo componentInfo, Integer pageNo, Integer pageSize); |
| | | |
| | | /** |
| | | * 借用部件(可批量) - 原有部件id,新部件ids |
| | | * @param oldId,newIds |
| | | * @return |
| | | */ |
| | | Result<?> borrowComponent(String oldId, String newIds); |
| | | |
| | | boolean assignPermission(Object entity, Collection<SysUser> userList, boolean isAdd); |
| | | |
| | | boolean assignDepartPermission(Object entity, Collection<MdcProduction> departments, boolean isAdd); |
| | | } |
| | | |
| | | |