From 1cf4ec89a5b30f90627e5e49dc1746426f04cf56 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 28 五月 2025 16:07:44 +0800 Subject: [PATCH] 1.现场投料——PDA开发 --- Controllers/QC/IpqcController.cs | 75 +++++++++++++++++++++++++++++++++++++ 1 files changed, 74 insertions(+), 1 deletions(-) diff --git a/Controllers/QC/IpqcController.cs b/Controllers/QC/IpqcController.cs index c4f6370..234f36e 100644 --- a/Controllers/QC/IpqcController.cs +++ b/Controllers/QC/IpqcController.cs @@ -14,6 +14,11 @@ { IpqcService m = new IpqcService(); + /// <summary> + /// 棣栨鍗曟嵁鏌ヨ + /// </summary> + /// <param name="queryObj"></param> + /// <returns></returns> [HttpPost("getPageSj")] public ResponseResult getPageSj([FromBody] XJPageResult queryObj) { @@ -64,5 +69,73 @@ } - + /// <summary> + /// 棣栨鍗曟嵁鏌ヨ + /// </summary> + /// <param name="queryObj"></param> + /// <returns></returns> + [HttpPost("getPageXj")] + public ResponseResult getPageXj([FromBody] XJPageResult queryObj) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var (item, totalCount) = m.getPageXj(queryObj); + var tbBillList = + resultInfos.tbBillList = item; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos, + TotalCount = totalCount + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + //鏇存柊妫�楠岄」鐩璇佷俊鎭� + [HttpPost("updateIpqcRzxx")] + public ResponseResult updateIpqcRzxx(LLJDto ipqcDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = m.updateIpqcRzxx(ipqcDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("createByWomdaa")] + public ResponseResult CreateByWomdaa(dynamic query) + { + try + { + dynamic resultInfos = new ExpandoObject(); + resultInfos.tbBillList = m.CreateByWomdaa(query); + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } } \ No newline at end of file -- Gitblit v1.9.3