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 | 9 +++++++--
1 files changed, 7 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 1078260..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
@@ -119,6 +119,7 @@
if(param.id !=null){
paramDao.updateByPrimaryKeySelective(param);
}else{
+ param.deleted=false;
paramDao.insert(param);
}
});
@@ -166,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;
--
Gitblit v1.8.0