From 1d908e629d7a1750eebaa849e944be08ba7f5876 Mon Sep 17 00:00:00 2001 From: liuxm <liuxm_a@163.com> Date: 星期四, 23 五月 2024 10:30:01 +0800 Subject: [PATCH] id序列化;技术参数保存修改 --- pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/product/ProductSv.java | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/product/ProductSv.java b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/product/ProductSv.java index 0ee58f1..52970e2 100644 --- a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/product/ProductSv.java +++ b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/product/ProductSv.java @@ -12,6 +12,7 @@ import com.dy.pmsGlobal.pojoOth.OthFile; import com.dy.pmsGlobal.pojoPlt.PltProduct; import com.dy.pmsGlobal.pojoPlt.PltProductFile; +import jakarta.servlet.http.HttpServletResponse; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.common.utils.PojoUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -118,6 +119,7 @@ if(param.id !=null){ paramDao.updateByPrimaryKeySelective(param); }else{ + param.deleted=false; paramDao.insert(param); } }); @@ -165,8 +167,12 @@ Stream.concat(pro.processDocuments.stream(), pro.materials.stream()) ) .forEach(doc -> { - String webUrl = getFilePathWithWebUrl(doc.fileId); - doc.webUrl = webUrl; + OthFile file = othFileMapper.selectByPrimaryKey(doc.fileId); + FileRestVo fileRestVo = fileOperate.parseHashcode(fmUrl, file.hash); + + doc.webUrl = fileRestVo.fileWebUrl + file.filePath; + doc.orgName = file.orgName; + doc.extName = file.extName; }); } return pro; @@ -224,4 +230,7 @@ } + public void downloadDoc(HttpServletResponse response) { + PltProduct pro=dao.selectByPrimaryKey(Long.valueOf(1)); + } } -- Gitblit v1.8.0