From 4fbe2431794ce4842a4a7d1a7242d53db86182ef Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期三, 03 七月 2024 15:06:54 +0800
Subject: [PATCH] add quality and test items Api
---
pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 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 754eaac..66d7081 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,13 +2,14 @@
import com.dy.common.webUtil.BaseResponse;
import com.dy.common.webUtil.BaseResponseUtils;
+import com.dy.pmsGlobal.pojoPlt.PltProductQualityInspectionItems;
+import com.dy.pmsGlobal.pojoPlt.PltProductTestInspectionItems;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
/**
*璁板綍缁勮鍚勬楠�
@@ -44,4 +45,16 @@
return BaseResponseUtils.buildSuccess(true);
}
}
+ @GetMapping(path = "getQualityItems")
+ public BaseResponse<List<PltProductQualityInspectionItems>> getQualityItems(String proId) {
+ log.info("AssemblyStepCtrl.getQualityItems()");
+ List<PltProductQualityInspectionItems> result = sv.getQualityItems(proId);
+ return BaseResponseUtils.buildSuccess(result);
+ }
+ @GetMapping(path = "getTestItems")
+ public BaseResponse<List<PltProductTestInspectionItems>> getTestItems(String proId) {
+ log.info("AssemblyStepCtrl.getTestItems()");
+ List<PltProductTestInspectionItems> result = sv.getTestItems(proId);
+ return BaseResponseUtils.buildSuccess(result);
+ }
}
--
Gitblit v1.8.0