From 8452ea0d86fcd34965c49b6f580dca0601c8f596 Mon Sep 17 00:00:00 2001 From: zjh <2207896513@qq.com> Date: 星期一, 14 四月 2025 20:43:04 +0800 Subject: [PATCH] 平板代码提交 --- StandardPda/MESApplication/Controllers/QC/LljController.cs | 66 ++++++++++++++++++++++++++++++--- 1 files changed, 60 insertions(+), 6 deletions(-) diff --git a/StandardPda/MESApplication/Controllers/QC/LljController.cs b/StandardPda/MESApplication/Controllers/QC/LljController.cs index 79a84b6..19f3217 100644 --- a/StandardPda/MESApplication/Controllers/QC/LljController.cs +++ b/StandardPda/MESApplication/Controllers/QC/LljController.cs @@ -3,6 +3,7 @@ using MES.Service.service.QC; using MES.Service.util; using Microsoft.AspNetCore.Mvc; +using NetTaste; using Newtonsoft.Json.Linq; using System.Dynamic; @@ -83,6 +84,35 @@ } } + + [HttpPost("SaveCheckBy")] + public ResponseResult SaveCheckBy([FromBody] JObject data) + { + try + { + var NewStaffName = data["NewStaffName"].ToString(); + var userID = data["userID"].ToString(); + var releaseNo = data["releaseNo"].ToString(); + var NewStaffUserID = data["NewStaffUserID"].ToString(); + + string[] msg = new LljService().SaveCheckBy(NewStaffUserID, userID, releaseNo); + + + + return new ResponseResult + { + status = int.Parse(msg[0]), + message = msg[1], + data = msg[1] + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + //getItems [HttpPost("getJYItem")] public ResponseResult getJYItem([FromBody] JObject data) @@ -108,6 +138,31 @@ return ResponseResult.ResponseError(ex); } } + /// <summary> + /// 鑾峰彇鎵�鏈夋楠屽憳淇℃伅 + /// </summary> + /// <param name="data"></param> + /// <returns></returns> + [HttpPost("getAllInspectors")] + public ResponseResult getAllInspectors([FromBody] JObject data) + { + + try + { + var tbBillList = new LljService().getAllInspectors(); + return new ResponseResult + { + status = 0, + message = "OK", + data = tbBillList + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + //getXjDetail02ById [HttpPost("getXjDetail02ById")] @@ -258,14 +313,13 @@ try { dynamic resultInfos = new ExpandoObject(); - var tbBillList = - new LljService().IqcQaSubmit(rkjDto); - resultInfos.tbBillList = tbBillList; + var msg = new LljService().IqcQaSubmit(rkjDto); + return new ResponseResult { - status = 0, - message = "OK", - data = resultInfos + status = int.Parse(msg[0]), + message = msg[1], + data = msg[1] }; } catch (Exception ex) -- Gitblit v1.9.3