From f2cd828d3719efd7796f5bd7692b3d9946b5b772 Mon Sep 17 00:00:00 2001 From: Fancy <Fancy.fx@outlook.com> Date: 星期四, 11 七月 2024 11:37:21 +0800 Subject: [PATCH] check process used can not change product --- pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java | 24 ++++++++++++++++++++++++ 1 files changed, 24 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 b120df7..a8a4cb7 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,12 +7,15 @@ import com.dy.pmsGlobal.pojoPlt.PltProductQualityInspectionItems; import com.dy.pmsGlobal.pojoPlt.PltProductTestInspectionItems; import com.dy.pmsGlobal.pojoPr.PrProductionNode; +import com.dy.pmsGlobal.pojoSta.StaDeviceLife; +import com.dy.pmsGlobal.pojoSta.StaDeviceProductionLog; import jakarta.validation.Valid; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; +import java.util.Map; /** *璁板綍缁勮鍚勬楠� @@ -109,4 +112,25 @@ return BaseResponseUtils.buildSuccess(true); } } + + @GetMapping(path = "queryByDeviceNo") + public BaseResponse<Map<String,String>> queryByDeviceNo(String deviceNo) { + log.info("AssemblyStepCtrl.queryByDeviceNo():"+deviceNo); + Map<String,String> result = sv.queryByDeviceNo(deviceNo); + return BaseResponseUtils.buildSuccess(result); + } + + @GetMapping(path = "queryLifeByDeviceNo") + public BaseResponse<?> queryLifeByDeviceNo(String deviceNo) { + log.info("AssemblyStepCtrl.queryLifeByDeviceNo():"+deviceNo); + List<StaDeviceLife> result = sv.queryLifeByDeviceNo(deviceNo); + return BaseResponseUtils.buildSuccess(result); + } + + @GetMapping(path = "queryLogByDeviceNo") + public BaseResponse<?> queryLogByDeviceNo(String deviceNo) { + log.info("AssemblyStepCtrl.queryLogByDeviceNo():"+deviceNo); + List<StaDeviceProductionLog> result = sv.queryLogByDeviceNo(deviceNo); + return BaseResponseUtils.buildSuccess(result); + } } -- Gitblit v1.8.0