From 661e24b717604dfc5c0f1c6385931943c2a9192e Mon Sep 17 00:00:00 2001 From: zjh <2207896513@qq.com> Date: 星期六, 02 八月 2025 18:04:21 +0800 Subject: [PATCH] 代码提交 --- StandardPda/MESApplication/Controllers/QC/XJController.cs | 33 ++++++++++++++++++++++++++++----- 1 files changed, 28 insertions(+), 5 deletions(-) diff --git a/StandardPda/MESApplication/Controllers/QC/XJController.cs b/StandardPda/MESApplication/Controllers/QC/XJController.cs index 37e09dd..0ddd9d0 100644 --- a/StandardPda/MESApplication/Controllers/QC/XJController.cs +++ b/StandardPda/MESApplication/Controllers/QC/XJController.cs @@ -1,10 +1,10 @@ -锘縰sing MES.Service.Dto.service; +锘縰sing System.Dynamic; +using MES.Service.Dto.service; using MES.Service.Modes; using MES.Service.service.QC; using MES.Service.util; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json.Linq; -using System.Dynamic; namespace MESApplication.Controllers.QC; @@ -159,6 +159,28 @@ return ResponseResult.ResponseError(ex); } } + + [HttpPost("XJQaSubmit")] + public ResponseResult XJQaSubmit(LLJDto rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = + new XJService().XJQaSubmit(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } //setJYItem [HttpPost("setJYItem")] @@ -236,14 +258,15 @@ try { dynamic resultInfos = new ExpandoObject(); + var (item, totalCount) = new XJService().getPage(queryObj); var tbBillList = - new XJService().getPage(queryObj); - resultInfos.tbBillList = tbBillList; + resultInfos.tbBillList = item; return new ResponseResult { status = 0, message = "OK", - data = resultInfos + data = resultInfos, + TotalCount = totalCount }; } catch (Exception ex) -- Gitblit v1.9.3