| | |
| | | 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.entity.DocFile; |
| | | import org.jeecg.modules.dnc.entity.DocInfo; |
| | | import org.jeecg.modules.dnc.entity.ProcessStream; |
| | | import org.jeecg.modules.dnc.response.QueryListResponseResult; |
| | | import org.jeecg.modules.dnc.response.QueryPageResponseResult; |
| | | import org.jeecg.modules.dnc.response.ResponseResult; |
| | | import org.jeecg.modules.dnc.request.DocInfoQueryRequest; |
| | | import org.jeecg.modules.dnc.request.DocInfoUploadRequest; |
| | | import org.jeecg.modules.dnc.response.ResponseResult; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.FileNotFoundException; |
| | | import java.util.List; |
| | | |
| | | public interface IDocInfoService extends IService<DocInfo> { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | boolean deleteDocInfo(String id); |
| | | boolean deleteDocInfo(String id,String attrType,String attrId); |
| | | /** |
| | | * 监控文件导入 |
| | | * @param pathFile |
| | |
| | | */ |
| | | boolean addDocInfoRec(String pathFile,File fileRec); |
| | | |
| | | /** |
| | | * 解析NC文档通用方法(工控解析涉密) |
| | | * @param pathFile,fileRec |
| | | * @return |
| | | */ |
| | | boolean addDocInfoAnalysisGwNcService(String pathFile,File fileRec) throws FileNotFoundException; |
| | | |
| | | /** |
| | | * 程序回传(涉密解析工控) |
| | | * @param pathFile |
| | | */ |
| | | boolean addDocInfoAnalysisSmwNcService(String pathFile,File fileRec); |
| | | |
| | | /** |
| | | * 文档解析 |
| | | * @param equipmentId |
| | | * @param fileRec |
| | | * @param fileNameSuffix |
| | | * @param fileNameNew |
| | | * @param filePath |
| | | * @return |
| | | */ |
| | | boolean addDocInfoRecService(String equipmentId,File fileRec,String fileNameSuffix,String fileNameNew,String filePath ); |
| | | /** |
| | | * 入库操作 文档对应文件升版 |
| | |
| | | boolean deleteByProcessId(String processId); |
| | | |
| | | /** |
| | | * 删除工步下的所有文档 |
| | | * @param stepId |
| | | * @return |
| | | */ |
| | | boolean deleteByStepId(String stepId); |
| | | |
| | | /** |
| | | * 删除文档信息 |
| | | * @param attrType |
| | | * @param attrId |
| | |
| | | * @param docQuery |
| | | * @return |
| | | */ |
| | | QueryPageResponseResult<DocInfo> findPageListByDevice(int page, int size, DocInfoQueryRequest docQuery); |
| | | IPage<DocInfo> findPageListByDevice(int page, int size, DocInfoQueryRequest docQuery); |
| | | |
| | | /** |
| | | * 查询可指派的文档信息列表 |
| | | * @param docQuery |
| | | * @return |
| | | */ |
| | | QueryListResponseResult<DocInfo> findList(DocInfoQueryRequest docQuery); |
| | | List<DocInfo> findList(DocInfoQueryRequest docQuery); |
| | | |
| | | /** |
| | | * 通过一组attributionId,docClassCode,attributionType查询可指派的文档信息列表 |
| | | * @param docQuery |
| | | * @return |
| | | */ |
| | | List<DocInfo> findListByDocQuery(DocInfoQueryRequest docQuery); |
| | | |
| | | |
| | | /** |
| | | * 获取一组工序下的文档信息列表 |
| | |
| | | * @param docIds |
| | | * @return |
| | | */ |
| | | boolean batchRemoveDocInfo(String[] docIds); |
| | | boolean batchRemoveDocInfo(String[] docIds,String attrType,String attrId); |
| | | |
| | | /** |
| | | * 文档下载 |