From 2923b57174c59c6b07e3ac7502c41fa60e32ae33 Mon Sep 17 00:00:00 2001 From: 如洲 陈 <1278080563@qq.com> Date: 星期五, 09 五月 2025 17:49:20 +0800 Subject: [PATCH] 入库、首检、巡检 --- MESApplication/Controllers/QC/XJController.cs | 38 ++++++++++++++++++++++++++++++++++---- 1 files changed, 34 insertions(+), 4 deletions(-) diff --git a/MESApplication/Controllers/QC/XJController.cs b/MESApplication/Controllers/QC/XJController.cs index e43cb9f..6554635 100644 --- a/MESApplication/Controllers/QC/XJController.cs +++ b/MESApplication/Controllers/QC/XJController.cs @@ -4,6 +4,7 @@ using MES.Service.service.QC; using MES.Service.util; using Microsoft.AspNetCore.Mvc; +using Microsoft.Data.SqlClient.Server; using Newtonsoft.Json.Linq; namespace MESApplication.Controllers.QC; @@ -82,7 +83,9 @@ } - //getDaa001 + /// <summary> + /// 鑾峰彇宸ュ崟 + /// </summary> [HttpPost("getDaa001")] public ResponseResult getDaa001([FromBody] JObject data) { @@ -107,7 +110,10 @@ } } - //getBoardItem + /// <summary> + /// 鏍规嵁浜х嚎鑾峰彇鐗╂枡缂栫爜 lineNo + /// </summary> + /// <returns></returns> [HttpPost("getBoardItem")] public ResponseResult getBoardItem([FromBody] JObject data) { @@ -159,12 +165,13 @@ [HttpPost("setJYItem")] public ResponseResult setJYItem([FromBody] JObject data) { - var itemNo = data["itemNo"].ToString(); + var itemId = Convert.ToDecimal(data["itemId"].ToString()); try { + dynamic resultInfos = new ExpandoObject(); var tbBillList = - new XJService().setJYItem(itemNo); + new XJService().setJYItem(itemId); resultInfos.tbBillList = tbBillList; return new ResponseResult { @@ -392,6 +399,29 @@ } } + + //saveCommentGid + [HttpPost("saveCommentGid")] + public ResponseResult saveCommentGid([FromBody] XJDto rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = + new XJService().saveCommentGid(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } //saveRemarksPid [HttpPost("saveRemarksPid")] public ResponseResult saveRemarksPid([FromBody] XJDto rkjDto) -- Gitblit v1.9.3