From 4f88a7d41fea9435c859e256c906a8daeed9953f Mon Sep 17 00:00:00 2001 From: wbc <2597324127@qq.com> Date: 星期六, 15 三月 2025 16:37:15 +0800 Subject: [PATCH] 首件巡检优化更改 --- MESApplication/Controllers/Base/MessageCenterController.cs | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 45 insertions(+), 1 deletions(-) diff --git a/MESApplication/Controllers/Base/MessageCenterController.cs b/MESApplication/Controllers/Base/MessageCenterController.cs index 529df7f..3b2e28a 100644 --- a/MESApplication/Controllers/Base/MessageCenterController.cs +++ b/MESApplication/Controllers/Base/MessageCenterController.cs @@ -109,7 +109,51 @@ try { dynamic resultInfos = new ExpandoObject(); - resultInfos.tbBillList = m.GetPushFailedPage(query); + var (item, totalCount) = m.GetPushFailedPage(query); + resultInfos.tbBillList = item; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos, + TotalCount = totalCount + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + //IsShow + [HttpPost("IsShow")] + public ResponseResult IsShow(MessageCenter query) + { + try + { + dynamic resultInfos = new ExpandoObject(); + resultInfos.tbBillList = m.IsShow(query); + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + //UpdateRead + [HttpPost("UpdateRead")] + public ResponseResult UpdateRead(MessageCenter query) + { + try + { + dynamic resultInfos = new ExpandoObject(); + resultInfos.tbBillList = m.UpdateRead(query); return new ResponseResult { status = 0, -- Gitblit v1.9.3