From f88c07d7941a0c18bb097f20618c18b9d2418ccc Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期三, 11 九月 2024 15:42:51 +0800
Subject: [PATCH] next node
---
pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java | 45 ++++++++++++++++++++++++---------------------
1 files changed, 24 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..c9071ae 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
@@ -246,6 +246,9 @@
} else {
PrProductionNode node = nodeDao.selectByPrimaryKey(workLast.nodeId);
record.nodeContent = node.content;
+ PrProductionNode nextNode = nodeDao.selectNodeBySort(node.getProcessId() , (node.getSort() + 1));
+ record.nextNodeContent = nextNode.content;
+ record.nextNode = nextNode.id;
if (node.isRecord) {
record.deviceCycleContent = node.deviceCycleContent;
}
@@ -524,27 +527,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