From ee7f2c1ff8b8bdc2352db35dc26253ac8e4d832d Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期三, 24 七月 2024 11:06:30 +0800
Subject: [PATCH] check station API add check line disabled
---
pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 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 2ca4b2c..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,7 +45,7 @@
}
/**
- * 娴嬭瘯鎴栧搧妫�閮借皟鐢ㄨ繖涓帴鍙�
+ * 娴嬭瘯
* @param vo
* @return
*/
@@ -58,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) {
@@ -147,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