From 54b274998a6e839227a86a3f39ff2a9f69f32fcc Mon Sep 17 00:00:00 2001 From: Fancy <Fancy.fx@outlook.com> Date: 星期二, 30 七月 2024 14:35:11 +0800 Subject: [PATCH] 兼容无任务工作中的追溯信息 --- pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java | 41 ++++++++++++++++++++++++++++++++++++++++- 1 files changed, 40 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..e6ebb1c 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 */ @@ -52,6 +53,37 @@ public BaseResponse testing(@RequestBody @Valid QueryVo vo) { log.info("AssemblyStepCtrl.testing():" + vo); int count = sv.testing(vo); + if (count <= 0) { + return BaseResponseUtils.buildFail("鏁版嵁搴撳瓨鍌ㄥけ璐�"); + } else { + return BaseResponseUtils.buildSuccess(true); + } + } + + /** + * 鍝佹 + * @param vo + * @return + */ + @PostMapping(path = "inspectQuality") + public BaseResponse<Boolean> inspectQuality(@RequestBody @Valid QueryVo vo) { + log.info("AssemblyStepCtrl.inspectQuality():" + vo); + int count = sv.inspectQuality(vo); + if (count <= 0) { + return BaseResponseUtils.buildFail("鏁版嵁搴撳瓨鍌ㄥけ璐�"); + } else { + return BaseResponseUtils.buildSuccess(true); + } + } + /** + * 鏃犱换鍔″伐浣滀腑鐨勫叾浠栭〉闈� + * @param vo + * @return + */ + @PostMapping(path = "otherWork") + public BaseResponse<Boolean> otherWork(@RequestBody @Valid QueryVo vo) { + log.info("AssemblyStepCtrl.otherWork():" + vo); + int count = sv.otherWork(vo); if (count <= 0) { return BaseResponseUtils.buildFail("鏁版嵁搴撳瓨鍌ㄥけ璐�"); } else { @@ -147,4 +179,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