From 9a722839b8068745b4ca418b01fa942d0b5f308e Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期五, 11 四月 2025 09:00:08 +0800 Subject: [PATCH] 1.生产补料优化 2.委外补料优化 --- Controllers/Wom/WomdaaController.cs | 86 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 86 insertions(+), 0 deletions(-) diff --git a/Controllers/Wom/WomdaaController.cs b/Controllers/Wom/WomdaaController.cs index 8b0f2a1..cc1696f 100644 --- a/Controllers/Wom/WomdaaController.cs +++ b/Controllers/Wom/WomdaaController.cs @@ -236,6 +236,7 @@ return ResponseResult.ResponseError(ex); } } + /// <summary> /// 淇敼 @@ -260,6 +261,91 @@ return ResponseResult.ResponseError(ex); } } + #endregion + + #region 鐜板満绠$悊 + + + /// <summary> + /// 鎵弿娉ㄥ鐮侊紝鑾峰彇宸ュ崟鍜屾潯鐮佷俊鎭� + /// </summary> + /// <returns></returns> + [HttpPost("getZsBarInfo")] + public ResponseResult getZsBarInfo([FromBody] dynamic query) + { + try + { + dynamic resultInfos = new ExpandoObject(); + // 鍏堝垵濮嬪寲tbBillList灞炴�� + resultInfos.tbBillList = new ExpandoObject(); + resultInfos.tbBillList.ZsBarInfo = m.getZsBarInfo(query); + resultInfos.tbBillList.Traceability = m.getTraceability(query); + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + + /// <summary> + /// 浜у搧缁戝畾锛岃拷婧爜鍜屾祦姘寸爜缁戝畾 + /// </summary> + /// <returns></returns> + [HttpPost("ProductBinding")] + public ResponseResult ProductBinding([FromBody] dynamic query) + { + try + { + dynamic resultInfos = new ExpandoObject(); + // 鍏堝垵濮嬪寲tbBillList灞炴�� + resultInfos.tbBillList = new ExpandoObject(); + resultInfos.tbBillList = m.ProductBinding(query); + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + /// <summary> + /// 鑾峰彇鍗℃澘淇℃伅 + /// </summary> + /// <returns></returns> + [HttpPost("getKbBarInfo")] + public ResponseResult getKbBarInfo([FromBody] dynamic query) + { + try + { + dynamic resultInfos = new ExpandoObject(); + // 鍏堝垵濮嬪寲tbBillList灞炴�� + resultInfos.tbBillList = new ExpandoObject(); + resultInfos.tbBillList.KbBarInfo = m.getKbBarInfo(query); + resultInfos.tbBillList.KbBarMxInfo = m.getKbBarMxInfo(query); + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } #endregion } \ No newline at end of file -- Gitblit v1.9.3