From 9b63b9770cd02ca73c20196a3e02f971bc6e70e8 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期五, 26 七月 2024 17:39:21 +0800 Subject: [PATCH] mapper 及xml整理 --- 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