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/AssemblyStepCtrl.java |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java
index 1e21a89..9c1ddde 100644
--- a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java
+++ b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java
@@ -7,6 +7,7 @@
 import com.dy.pmsGlobal.pojoPlt.PltProductParams;
 import com.dy.pmsGlobal.pojoPlt.PltProductQualityInspectionItems;
 import com.dy.pmsGlobal.pojoPlt.PltProductTestInspectionItems;
+import com.dy.pmsGlobal.pojoPr.PrAssemblyPlan;
 import com.dy.pmsGlobal.pojoPr.PrProductionNode;
 import com.dy.pmsGlobal.pojoSta.StaDeviceLife;
 import com.dy.pmsGlobal.pojoSta.StaDeviceProductionLog;
@@ -44,8 +45,7 @@
     }
 
     /**
-     * 娴嬭瘯鎴栧搧妫�閮借皟鐢ㄨ繖涓帴鍙�
-     *
+     * 娴嬭瘯
      * @param vo
      * @return
      */
@@ -59,6 +59,24 @@
             return BaseResponseUtils.buildSuccess(true);
         }
     }
+
+    /**
+     * 鍝佹
+     * @param vo
+     * @return
+     */
+    @PostMapping(path = "inspectQuality")
+    public BaseResponse<Boolean> inspectQuality(QueryVo vo) {
+        log.info("AssemblyStepCtrl.inspectQuality():" + vo);
+        int count = sv.inspectQuality(vo);
+        if (count <= 0) {
+            return BaseResponseUtils.buildFail("鏁版嵁搴撳瓨鍌ㄥけ璐�");
+        } else {
+            return BaseResponseUtils.buildSuccess(true);
+        }
+    }
+
+
 
     @PostMapping(path = "repair")
     public BaseResponse repair(@RequestBody @Valid QueryVo vo) {
@@ -148,4 +166,11 @@
         List<StaDeviceProductionLog> result = sv.queryLogByDeviceNo(deviceNo);
         return BaseResponseUtils.buildSuccess(result);
     }
+    @GetMapping(path = "queryPlanByDeviceNo")
+    public BaseResponse<PrAssemblyPlan> queryPlanByDeviceNo(String deviceNo) {
+        log.info("AssemblyStepCtrl.queryLogByDeviceNo():" + deviceNo);
+        PrAssemblyPlan result = sv.queryPlanByDeviceNo(deviceNo);
+        return BaseResponseUtils.buildSuccess(result);
+    }
+
 }

--
Gitblit v1.8.0