From 7fd245ef3c02cb987961d0233c072d2ab4041969 Mon Sep 17 00:00:00 2001 From: zjh <2207896513@qq.com> Date: 星期一, 18 八月 2025 18:31:39 +0800 Subject: [PATCH] 1、产测查询工单改为通过线体直接查询 2、产测sn新增接口添加周转码字段 3、来料检一致性核对代码提交 --- StandardPda/MESApplication/Controllers/QC/LljController.cs | 70 +++++++++++++++++++++++++++++++++- 1 files changed, 67 insertions(+), 3 deletions(-) diff --git a/StandardPda/MESApplication/Controllers/QC/LljController.cs b/StandardPda/MESApplication/Controllers/QC/LljController.cs index 3d3396b..137bb16 100644 --- a/StandardPda/MESApplication/Controllers/QC/LljController.cs +++ b/StandardPda/MESApplication/Controllers/QC/LljController.cs @@ -1,11 +1,12 @@ -锘縰sing System.Data; -using System.Dynamic; -using MES.Service.Dto.service; +锘縰sing MES.Service.Dto.service; using MES.Service.Modes; using MES.Service.service.QC; using MES.Service.util; using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using System.Data; +using System.Dynamic; namespace MESApplication.Controllers.QC; @@ -447,4 +448,67 @@ return ResponseResult.ResponseError(ex); } } + /// <summary> + /// 鑾峰彇涓�鑷存�ф牳瀵归」鐩� + /// </summary> + /// <param name="data"></param> + /// <returns></returns> + [HttpPost("getYzxItem")] + public ResponseResult getYzxItem([FromBody] JObject data) + { + var id = data["id"]?.ToString(); + try + { + var tbBillList = new LljService().getYzxBDlist(id); + + return new ResponseResult + { + status = 0, + message = "OK", + data = tbBillList + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + /// <summary> + /// 淇濆瓨涓�鑷存�ф牳瀵归」鐩� + /// </summary> + /// <param name="data"></param> + /// <returns></returns> + [HttpPost("saveYzxItem")] + public ResponseResult saveYzxItem([FromBody] JObject data) + { + var id = data["id"]?.ToString(); + var dataDt = data["data"]?.ToString(); + var dt = JsonConvert.DeserializeObject<DataTable>(dataDt); + try + { + if (!dt.Columns.Contains("id")) + { + return new ResponseResult + { + status = 1, + message = "璇峰厛閫夋嫨鏁版嵁鍐嶄繚瀛橈紒", + data = "璇峰厛閫夋嫨鏁版嵁鍐嶄繚瀛橈紒" + }; + } + new LljService().saveYzxBDlist(id, dt); + var msg = new LljService().YzxImgVerify(id); + + return new ResponseResult + { + status = int.Parse(msg[0]), + message = msg[1], + data = "" + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } } \ No newline at end of file -- Gitblit v1.9.3