From f4486e42360320b7c241066b8321baf07348e7ed Mon Sep 17 00:00:00 2001 From: Fancy <Fancy.fx@outlook.com> Date: 星期一, 01 七月 2024 15:18:38 +0800 Subject: [PATCH] node and product file and parameter --- pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderCtrl.java | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderCtrl.java b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderCtrl.java index eca4719..19e17db 100644 --- a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderCtrl.java +++ b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderCtrl.java @@ -3,9 +3,10 @@ import com.dy.common.webUtil.BaseResponse; import com.dy.common.webUtil.BaseResponseUtils; import com.dy.pmsGlobal.pojoBa.BaUser; -import com.dy.pmsGlobal.pojoPlt.PltProductionLine; +import com.dy.pmsGlobal.pojoPlt.PltProduct; import com.dy.pmsGlobal.pojoPlt.PltStation; import com.dy.pmsGlobal.pojoPr.PrAssemblyPlan; +import com.dy.pmsGlobal.pojoPr.PrProductionNode; import com.dy.pmsGlobal.pojoSta.StaAssemblyWorkLast; import jakarta.validation.Valid; import lombok.extern.slf4j.Slf4j; @@ -143,6 +144,7 @@ List<BaUser> result = sv.getAssistantList(workId); return BaseResponseUtils.buildSuccess(result); } + /** * 淇濆瓨鐧诲綍淇℃伅 * @param @@ -153,7 +155,26 @@ List<BaUser> result = sv.updateAssistant(vo); return BaseResponseUtils.buildSuccess(result); } - + /** + * 鏍规嵁鑺傜偣鐨勬煡鍑鸿妭鐐逛綔涓氭寚瀵间功 + * @param + * @return + */ + @GetMapping(path="getSopByNodeId") + public BaseResponse<PrProductionNode> getSopByNodeId(String nodeId){ + PrProductionNode result = sv.getSopByNodeId(nodeId); + return BaseResponseUtils.buildSuccess(result); + } + /** + * 鏍规嵁浜у搧鏌ュ嚭浜у搧鏂囦欢 涓昏鎶�鏈弬鏁� + * @param + * @return + */ + @GetMapping(path="getFileByProId") + public BaseResponse<PltProduct> getFileByProId(String proId){ + PltProduct result = sv.getFileByProId(proId); + return BaseResponseUtils.buildSuccess(result); + } @GetMapping(path = "test") public BaseResponse test() { log.info("test"); -- Gitblit v1.8.0