From 8f25fecab6e6a79096b9940ab3432401b9045b39 Mon Sep 17 00:00:00 2001 From: cnf <3200815559@qq.com> Date: 星期四, 10 七月 2025 18:00:14 +0800 Subject: [PATCH] 首检\巡检\入库检适配 --- MESApplication/Controllers/QC/SJController.cs | 31 +++++++++++++++++++++++++++---- 1 files changed, 27 insertions(+), 4 deletions(-) diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs index 107d6b9..b07b575 100644 --- a/MESApplication/Controllers/QC/SJController.cs +++ b/MESApplication/Controllers/QC/SJController.cs @@ -41,14 +41,14 @@ try { dynamic resultInfos = new ExpandoObject(); - var tbBillList = - new SJService().getPage(queryObj); - resultInfos.tbBillList = tbBillList; + var (items, totalCount) = new SJService().getPage(queryObj); + resultInfos.tbBillList = items; return new ResponseResult { status = 0, message = "OK", - data = resultInfos + data = resultInfos, + TotalCount = totalCount }; } catch (Exception ex) @@ -319,4 +319,27 @@ return ResponseResult.ResponseError(ex); } } + + [HttpPost("SJQaSubmit")] + public ResponseResult SJQaSubmit([FromBody] QsItem item) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = new SJService(); + var detail021 = tbBillList.SJQaSubmit(item); + resultInfos.tbBillList = detail021; + 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