From 99f3bd0aef6cec3e29876e3e1683c3f021e01606 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期四, 25 七月 2024 09:45:12 +0800
Subject: [PATCH] add quality OK Status
---
pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java | 5 +++--
1 files changed, 3 insertions(+), 2 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 b94f17d..710091f 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
@@ -281,6 +281,7 @@
if (WORK_TYPE_ASSEMBLY.equals(workType) || WORK_TYPE_TEST.equals(workType) || WORK_TYPE_INSPECTION.equals(workType) || WORK_TYPE_REPAIR.equals(workType)) {
return switch (status) {
case QrCodeConstant.MarkOk -> isEnd ? DeviceStatus.COMPLETED.getCode() : DeviceStatus.ASSEMBLING.getCode();
+ case QrCodeConstant.MarkQualified -> isEnd ? DeviceStatus.COMPLETED.getCode() : DeviceStatus.ASSEMBLING.getCode();
case QrCodeConstant.MarkUnqualified -> DeviceStatus.REPAIR.getCode();
case QrCodeConstant.MarkWaste -> DeviceStatus.WASTE.getCode();
default -> throw new RuntimeException("鐘舵�侀敊璇�");
@@ -304,14 +305,14 @@
//娴嬭瘯
}else if (WORK_TYPE_TEST.equals(workType)) {
return switch (status) {
- case QrCodeConstant.MarkOk -> DeviceResult.TEST_PASS.getCode();
+ case QrCodeConstant.MarkQualified -> DeviceResult.TEST_PASS.getCode();
case QrCodeConstant.MarkUnqualified -> DeviceResult.TEST_FAIL.getCode();
default -> throw new RuntimeException("鐘舵�侀敊璇�");
};
//鍝佹
}else if (WORK_TYPE_INSPECTION.equals(workType)) {
return switch (status) {
- case QrCodeConstant.MarkOk -> DeviceResult.INSPECTION_PASS.getCode();
+ case QrCodeConstant.MarkQualified -> DeviceResult.INSPECTION_PASS.getCode();
case QrCodeConstant.MarkUnqualified -> DeviceResult.INSPECTION_FAIL.getCode();
default -> throw new RuntimeException("鐘舵�侀敊璇�");
};
--
Gitblit v1.8.0