From db5e488203b05d785baf1614b727afaf20a03fe6 Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期五, 19 十二月 2025 18:52:05 +0800
Subject: [PATCH] llj备注
---
StandardInterface/MES.Service/service/QC/LljService.cs | 20 ++++++++++++++++++++
StandardInterface/MESApplication/Controllers/QC/LljController.cs | 33 +++++++++++++++++++++++++++++----
StandardInterface/MESApplication/appsettings.json | 2 +-
3 files changed, 50 insertions(+), 5 deletions(-)
diff --git a/StandardInterface/MES.Service/service/QC/LljService.cs b/StandardInterface/MES.Service/service/QC/LljService.cs
index 9c204f1..f91c540 100644
--- a/StandardInterface/MES.Service/service/QC/LljService.cs
+++ b/StandardInterface/MES.Service/service/QC/LljService.cs
@@ -1531,4 +1531,24 @@
return match.Success ? int.Parse(match.Groups[1].Value) : 0;
}
+
+ /// <summary>
+ /// 淇濆瓨澶囨敞鍒颁富琛�
+ /// </summary>
+ /// <param name="gid">涓昏〃ID</param>
+ /// <param name="releaseNo">妫�楠屽崟鍙�</param>
+ /// <param name="lotNo1">澶囨敞鍐呭</param>
+ /// <returns>褰卞搷琛屾暟</returns>
+ public int SaveLotNo1(decimal gid, string? releaseNo, string? lotNo1)
+ {
+ var db = SqlSugarHelper.GetInstance();
+ return db.Updateable<MesQaItemsDetect01>()
+ .SetColumns(it => new MesQaItemsDetect01
+ {
+ LotNo1 = lotNo1
+ })
+ .Where(it => it.Id == gid && it.ReleaseNo == releaseNo)
+ .ExecuteCommand();
+ }
+
}
\ No newline at end of file
diff --git a/StandardInterface/MESApplication/Controllers/QC/LljController.cs b/StandardInterface/MESApplication/Controllers/QC/LljController.cs
index 6c6bea7..abe3718 100644
--- a/StandardInterface/MESApplication/Controllers/QC/LljController.cs
+++ b/StandardInterface/MESApplication/Controllers/QC/LljController.cs
@@ -1,4 +1,4 @@
-锘縰sing System.Dynamic;
+using System.Dynamic;
using MES.Service.Dto.service;
using MES.Service.Modes;
using MES.Service.service.QC;
@@ -294,9 +294,7 @@
{
return ResponseResult.ResponseError(ex);
}
- }
-
- //IqcQaSubmit
+ } //IqcQaSubmit
[HttpPost("IqcQaSubmit")]
public ResponseResult IqcQaSubmit(LLJDto rkjDto)
{
@@ -318,6 +316,33 @@
return ResponseResult.ResponseError(ex);
}
}
+
+ /// <summary>
+ /// 淇濆瓨澶囨敞鍒颁富琛�
+ /// </summary>
+ [HttpPost("saveLotNo1")]
+ public ResponseResult saveLotNo1([FromBody] JObject data)
+ {
+ var gid = Convert.ToDecimal(data["gid"].ToString());
+ var releaseNo = data["releaseNo"]?.ToString();
+ var lotNo1 = data["lotNo1"]?.ToString();
+ try
+ {
+ dynamic resultInfos = new ExpandoObject();
+ var tbBillList = new LljService().SaveLotNo1(gid, releaseNo, lotNo1);
+ resultInfos.tbBillList = tbBillList;
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = resultInfos
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
[HttpPost("EmergencyRelease")]
public ResponseResult EmergencyRelease([FromBody] JObject data)
{
diff --git a/StandardInterface/MESApplication/appsettings.json b/StandardInterface/MESApplication/appsettings.json
index 59a3601..28cfc2a 100644
--- a/StandardInterface/MESApplication/appsettings.json
+++ b/StandardInterface/MESApplication/appsettings.json
@@ -10,6 +10,6 @@
"AppSettings": {
"TestErpUrl": "http://192.168.11.120:8098/WebService1.asmx/mesToErpinfo",
"ProductionErpUrl": "http://192.168.11.120:8098/WebService1.asmx/mesToErpinfoFormal",
- "DataBaseConn": "Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.22)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = ORCL))); Persist Security Info=True;User ID = test_dev; Password=hmprd"
+ "DataBaseConn": "Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.22)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = ORCL))); Persist Security Info=True;User ID = hm_prd; Password=hmprd"
}
}
--
Gitblit v1.9.3