From af69f416ff531ea7fd7a22e02885bf9d78536f41 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期五, 05 七月 2024 08:38:31 +0800
Subject: [PATCH] add plan

---
 pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 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 66d7081..48793d7 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
@@ -2,8 +2,11 @@
 
 import com.dy.common.webUtil.BaseResponse;
 import com.dy.common.webUtil.BaseResponseUtils;
+import com.dy.pmsGlobal.pojoPlt.PltProductFile;
+import com.dy.pmsGlobal.pojoPlt.PltProductParams;
 import com.dy.pmsGlobal.pojoPlt.PltProductQualityInspectionItems;
 import com.dy.pmsGlobal.pojoPlt.PltProductTestInspectionItems;
+import com.dy.pmsGlobal.pojoPr.PrProductionNode;
 import jakarta.validation.Valid;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -45,6 +48,36 @@
             return BaseResponseUtils.buildSuccess(true);
         }
     }
+    /**
+     * 鏍规嵁鑺傜偣鐨勬煡鍑鸿妭鐐逛綔涓氭寚瀵间功
+     * @param
+     * @return
+     */
+    @GetMapping(path="getSopByNodeId")
+    public BaseResponse<PrProductionNode> getSopByNodeId(String nodeId){
+        PrProductionNode result = sv.getSopByNodeId(nodeId);
+        return BaseResponseUtils.buildSuccess(result);
+    }
+    /**
+     * 鏍规嵁浜у搧鏌ュ嚭 涓昏鎶�鏈弬鏁�
+     * @param
+     * @return
+     */
+    @GetMapping(path="getParamsByProId")
+    public BaseResponse<List<PltProductParams>> getParamsByProId(String proId){
+        List<PltProductParams> result = sv.getParamsByProId(proId);
+        return BaseResponseUtils.buildSuccess(result);
+    }
+    /**
+     * 鏍规嵁浜у搧鏌ュ嚭浜у搧鏂囦欢 涓昏鎶�鏈弬鏁�
+     * @param
+     * @return
+     */
+    @GetMapping(path="getFileByProId")
+    public BaseResponse<List<PltProductFile>> getFileByProId(String proId){
+        List<PltProductFile> result = sv.getFileByProId(proId);
+        return BaseResponseUtils.buildSuccess(result);
+    }
     @GetMapping(path = "getQualityItems")
     public BaseResponse<List<PltProductQualityInspectionItems>> getQualityItems(String proId) {
         log.info("AssemblyStepCtrl.getQualityItems()");
@@ -57,4 +90,20 @@
         List<PltProductTestInspectionItems> result = sv.getTestItems(proId);
         return BaseResponseUtils.buildSuccess(result);
     }
+
+    /**
+     * 娴嬭瘯鎴栧搧妫�閮借皟鐢ㄨ繖涓帴鍙�
+     * @param vo
+     * @return
+     */
+    @PostMapping(path = "testing")
+    public BaseResponse testing(@RequestBody @Valid QueryVo vo) {
+        log.info("AssemblyStepCtrl.testing()");
+        int count = sv.testing(vo);
+        if (count <= 0) {
+            return BaseResponseUtils.buildFail("鏁版嵁搴撳瓨鍌ㄥけ璐�");
+        } else {
+            return BaseResponseUtils.buildSuccess(true);
+        }
+    }
 }

--
Gitblit v1.8.0