From 2c183f0f9d534e37dd69809f0eedc19fabea82e8 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期三, 28 八月 2024 11:16:03 +0800 Subject: [PATCH] 添加查询所有工站接口; 修改查询任务计划列表接口 --- pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java | 42 +++++++++++++++++++++--------------------- 1 files changed, 21 insertions(+), 21 deletions(-) diff --git a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java index f825f4a..56e24e4 100644 --- a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java +++ b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java @@ -524,27 +524,27 @@ ins.extName = file.extName; } - private PltProduct addWebUrl(PltProduct pro) { - if (pro != null) { - if (pro.image != null) { - String filePathWithWebUrl = getFilePathWithWebUrl(pro.image); - pro.imageWebPath = filePathWithWebUrl; - pro.imageWebPathZip = fileOperate.getImgFileZipPath(filePathWithWebUrl); - } - - pro.proFiles.stream().forEach(doc -> { - OthFile file = othFileMapper.selectByPrimaryKey(doc.fileId); - if (file == null) { - return; - } - FileRestVo fileRestVo = fileOperate.parseHashcode(fmUrl, file.hash); - doc.webUrl = fileRestVo.fileSysRestUrl + fileRestVo.fileWebDownloadPath + doc.fileId; - doc.orgName = file.orgName; - doc.extName = file.extName; - }); - } - return pro; - } +// private PltProduct addWebUrl(PltProduct pro) { +// if (pro != null) { +// if (pro.image != null) { +// String filePathWithWebUrl = getFilePathWithWebUrl(pro.image); +// pro.imageWebPath = filePathWithWebUrl; +// pro.imageWebPathZip = fileOperate.getImgFileZipPath(filePathWithWebUrl); +// } +// +// pro.proFiles.stream().forEach(doc -> { +// OthFile file = othFileMapper.selectByPrimaryKey(doc.fileId); +// if (file == null) { +// return; +// } +// FileRestVo fileRestVo = fileOperate.parseHashcode(fmUrl, file.hash); +// doc.webUrl = fileRestVo.fileWebDownloadPath + doc.fileId; +// doc.orgName = file.orgName; +// doc.extName = file.extName; +// }); +// } +// return pro; +// } private String getFilePathWithWebUrl(Long fileId) { OthFile file = othFileMapper.selectByPrimaryKey(fileId); -- Gitblit v1.8.0