From b2bc0cccd77524b3ba1f05d5f7854324ce62ba2e Mon Sep 17 00:00:00 2001
From: wbc <2597324127@qq.com>
Date: 星期三, 12 二月 2025 18:12:14 +0800
Subject: [PATCH] 泰莱姆首检巡检添加

---
 MESApplication/Properties/launchSettings.json      |   28 +++---
 MES.Service/Modes/MesQa.cs                         |    7 +
 MES.Service/service/QC/XJService.cs                |   16 ++--
 MESApplication/bin/Debug/net8.0/MES.Service.pdb    |    0 
 MESApplication/bin/Debug/net8.0/MESApplication.dll |    0 
 MESApplication/Controllers/QC/SJController.cs      |   27 ++++++
 MESApplication/bin/Debug/net8.0/log/2025021017.log |    3 
 MES.Service/bin/Debug/net8.0/MES.Service.dll       |    0 
 MES.Service/service/QC/SJService.cs                |   48 +++++++++++
 MESApplication/bin/Debug/net8.0/log/2025021214.log |    6 +
 MESApplication/bin/Debug/net8.0/MES.Service.dll    |    0 
 MES.Service/Modes/MesQualityStandard.cs            |    6 +
 MESApplication/bin/Debug/net8.0/MESApplication.pdb |    0 
 MESApplication/bin/Debug/net8.0/log/2025021213.log |    3 
 MES.Service/util/UserUtil.cs                       |   17 ++++
 MESApplication/Controllers/QC/XJController.cs      |    6 +
 MESApplication/bin/Debug/net8.0/MESApplication.exe |    0 
 MESApplication/bin/Debug/net8.0/log/2025021215.log |    9 ++
 MESApplication/bin/Debug/net8.0/log/2025021016.log |    3 
 MES.Service/Dto/service/QsItem.cs                  |    2 
 MESApplication/bin/Debug/net8.0/log/2025021217.log |    9 ++
 MES.Service/bin/Debug/net8.0/MES.Service.pdb       |    0 
 22 files changed, 164 insertions(+), 26 deletions(-)

diff --git a/MES.Service/Dto/service/QsItem.cs b/MES.Service/Dto/service/QsItem.cs
index 944f631..4afa827 100644
--- a/MES.Service/Dto/service/QsItem.cs
+++ b/MES.Service/Dto/service/QsItem.cs
@@ -23,4 +23,6 @@
     public string? StatusUser { get; set; }
 
     public SJPageResult? Result { get; set; }
+
+    public string? userNo { get; set; }
 }
\ No newline at end of file
diff --git a/MES.Service/Modes/MesQa.cs b/MES.Service/Modes/MesQa.cs
index 198761e..8d25995 100644
--- a/MES.Service/Modes/MesQa.cs
+++ b/MES.Service/Modes/MesQa.cs
@@ -70,4 +70,11 @@
     [SugarColumn(ColumnName = "QS_TYPE")] //鐢ㄤ簬SqlSugar
     [StringLength(1, ErrorMessage = "1涓洪妫�锛�2涓哄贰妫�锛�3涓哄叆搴撴闀垮害涓嶈兘瓒呭嚭1")]
     public string? QsType { get; set; }
+
+    /// <summary>
+    ///    鐗╂枡id
+    /// </summary>
+    [Column("ITEM_ID")]
+    [SugarColumn(ColumnName = "ITEM_ID")] //鐢ㄤ簬SqlSugar
+    public decimal? ItemId { get; set; }
 }
\ No newline at end of file
diff --git a/MES.Service/Modes/MesQualityStandard.cs b/MES.Service/Modes/MesQualityStandard.cs
index bf414fa..e4f3fad 100644
--- a/MES.Service/Modes/MesQualityStandard.cs
+++ b/MES.Service/Modes/MesQualityStandard.cs
@@ -201,4 +201,10 @@
     [SugarColumn(ColumnName = "USING_INSTRUMENTS")] //鐢ㄤ簬SqlSugar
     [StringLength(50, ErrorMessage = "浣跨敤浠〃闀垮害涓嶈兘瓒呭嚭50")]
     public string UsingInstruments { get; set; }
+
+    /// <summary>
+    /// 鐗╂枡id 
+    ///</summary>
+    [SugarColumn(ColumnName = "ITEM_ID")]
+    public decimal? ItemId { get; set; }
 }
\ No newline at end of file
diff --git a/MES.Service/bin/Debug/net8.0/MES.Service.dll b/MES.Service/bin/Debug/net8.0/MES.Service.dll
index a5e2509..22f056e 100644
--- a/MES.Service/bin/Debug/net8.0/MES.Service.dll
+++ b/MES.Service/bin/Debug/net8.0/MES.Service.dll
Binary files differ
diff --git a/MES.Service/bin/Debug/net8.0/MES.Service.pdb b/MES.Service/bin/Debug/net8.0/MES.Service.pdb
index 61cb04c..9ebd887 100644
--- a/MES.Service/bin/Debug/net8.0/MES.Service.pdb
+++ b/MES.Service/bin/Debug/net8.0/MES.Service.pdb
Binary files differ
diff --git a/MES.Service/service/QC/SJService.cs b/MES.Service/service/QC/SJService.cs
index db188ef..435dd6a 100644
--- a/MES.Service/service/QC/SJService.cs
+++ b/MES.Service/service/QC/SJService.cs
@@ -1,8 +1,10 @@
-锘縰sing MES.Service.DB;
+锘縰sing System.Data;
+using MES.Service.DB;
 using MES.Service.Dto.service;
 using MES.Service.Modes;
 using MES.Service.util;
 using SqlSugar;
+using DbType = System.Data.DbType;
 
 namespace MES.Service.service.QC;
 
@@ -455,4 +457,48 @@
 
         return withOracle;
     }
+
+    public bool SJQaSubmit(QsItem item)
+    {
+        var (factory, company) = UserUtil.GetFactory(item.userNo);
+        try
+        {
+            // 瀹氫箟杈撳嚭鍙傛暟
+            var outputResult = new SugarParameter("o_Result", null, DbType.Int32, ParameterDirection.Output,
+                4000);
+
+            var outputMessage = new SugarParameter("o_Msg", null, DbType.String, ParameterDirection.Output, 4000);
+
+            // 瀹氫箟杈撳叆鍙傛暟
+            var parameters = new List<SugarParameter>
+         {
+
+             new("p_Id", item.gid, DbType.Int32,ParameterDirection.Input),
+             new("p_Flag", 1, DbType.Int32,ParameterDirection.Input),
+             new("p_User", item.userNo, DbType.String, ParameterDirection.Input),
+             outputResult,
+             outputMessage
+         };
+
+            var db = SqlSugarHelper.GetInstance();
+
+            // 浣跨敤 SqlSugar 鎵ц瀛樺偍杩囩▼
+            db.Ado.ExecuteCommand(
+                "BEGIN PRC_WOMDAA_SJ_UPDATE_RES(:p_Id,:p_Flag,:p_User,:o_Result, :o_Msg); END;",
+                parameters.ToArray());
+
+            // 鑾峰彇杈撳嚭鍙傛暟鐨勫��
+            var resultValue = outputResult.Value?.ToString();
+            var messageValue = outputMessage.Value?.ToString();
+
+            if ("1".Equals(resultValue)) { throw new Exception(messageValue); }
+            if ("0".Equals(resultValue)) { throw new Exception(messageValue); }
+
+            return true;
+        }
+        catch (Exception ex)
+        {
+            throw new Exception(ex.Message);
+        }
+    }
 }
\ No newline at end of file
diff --git a/MES.Service/service/QC/XJService.cs b/MES.Service/service/QC/XJService.cs
index 9ed2beb..cc2ff82 100644
--- a/MES.Service/service/QC/XJService.cs
+++ b/MES.Service/service/QC/XJService.cs
@@ -47,7 +47,7 @@
         return db.Queryable<Womdaa>()
             .Where(a =>
                 a.Daa001 == daa001 &&
-                statusArray.Contains(a.Daa018))
+                a.Daa018 != "瀹屽伐")
             .ToList();
     }
 
@@ -58,7 +58,7 @@
         return db.Queryable<Womdaa, MesLine>((a, b) =>
                 new JoinQueryInfos(JoinType.Left, a.Daa015 == b.LineNo))
             .Where((a, b) => b.LineName != null &&
-                             statusArray.Contains(a.Daa018))
+                             a.Daa018 != "瀹屽伐")
             .GroupBy((a, b) => new
             {
                 b.LineNo, b.LineName
@@ -78,7 +78,7 @@
             .Where((a, b) =>
                 a.Daa015 == daa020 &&
                 b.ItemNo == item &&
-                statusArray.Contains(a.Daa018))
+                a.Daa018 != "瀹屽伐")
             .Select<Womdaa>(a => new Womdaa
             {
                 Id = a.Id,
@@ -93,13 +93,13 @@
         var db = SqlSugarHelper.GetInstance();
         return db.Queryable<Womdaa, MesItems>((a, b) =>
                 new JoinQueryInfos(JoinType.Inner, a.Daa002 == b.Id.ToString()))
-            .Where((a, b) => statusArray.Contains(a.Daa018) &&
+            .Where((a, b) => a.Daa018 != "瀹屽伐" &&
                              a.Daa015 == lineNo)
             .OrderBy((a, b) => b.ItemName)
             .Select<MesItems>((a, b) =>
                 new MesItems
                 {
-                    Id = b.Id,
+                    ItemId = b.ItemId,
                     ItemNo = b.ItemNo,
                     ItemName = b.ItemName,
                     ItemModel = b.ItemModel
@@ -157,19 +157,19 @@
     }
 
 
-    public List<QsQaItemXj01> setJYItem(string itemNo)
+    public List<QsQaItemXj01> setJYItem(decimal itemId)
     {
         var db = SqlSugarHelper.GetInstance();
 
         var count = db.Queryable<MesQa>().Where(s => s.QsType == "2"
-            && s.ItemNo == itemNo && s.Fsubmit == 1).Count();
+            && s.ItemId == itemId && s.Fsubmit == 1).Count();
 
         if (count <= 0) return new List<QsQaItemXj01>();
 
         return db
             .Queryable<MesQualityStandard>()
             .Where(b => b.QsType == "2"
-                        && b.ItemNo == itemNo).Select(
+                        && b.ItemId == itemId).Select(
                 b => new QsQaItemXj01
                 {
                     ProjName = b.ProjName,
diff --git a/MES.Service/util/UserUtil.cs b/MES.Service/util/UserUtil.cs
new file mode 100644
index 0000000..7908e22
--- /dev/null
+++ b/MES.Service/util/UserUtil.cs
@@ -0,0 +1,17 @@
+锘縰sing MES.Service.DB;
+
+namespace MES.Service.util;
+
+public class UserUtil : RepositoryNoEntity
+{
+    public static (string factory, string company) GetFactory(string user)
+    {
+        var sql =
+            "select t.Ffactory factory, t.Fcompany company from sys_user t where t.fcode = upper(trim('" +
+            user + "'))";
+
+        var sqlQuerySingle = Db.Ado.SqlQuerySingle<dynamic>(sql);
+
+        return (sqlQuerySingle.FACTORY, sqlQuerySingle.COMPANY);
+    }
+}
\ No newline at end of file
diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs
index 107d6b9..996c35d 100644
--- a/MESApplication/Controllers/QC/SJController.cs
+++ b/MESApplication/Controllers/QC/SJController.cs
@@ -62,9 +62,10 @@
     [HttpPost("SetQSItems")]
     public ResponseResult SetQSItems([FromBody] JObject data)
     {
-        var itemNo = data["itemNo"].ToString();
+        var itemNo = data["itemId"].ToString();
         try
         {
+            
             dynamic resultInfos = new ExpandoObject();
             var tbBillList = new SJService();
             var detail021 = tbBillList.SetQSItems(itemNo);
@@ -82,6 +83,30 @@
         }
     }
 
+
+    [HttpPost("SJQaSubmit")]
+    public ResponseResult SJQaSubmit([FromBody] QsItem item)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList = new SJService();
+            var detail021 = tbBillList.SJQaSubmit(item);
+            resultInfos.tbBillList = detail021;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
+
     [HttpPost("Save")]
     public ResponseResult Save([FromBody] QsItem item)
     {
diff --git a/MESApplication/Controllers/QC/XJController.cs b/MESApplication/Controllers/QC/XJController.cs
index ef25d6b..71847ce 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;
@@ -164,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
             {
diff --git a/MESApplication/Properties/launchSettings.json b/MESApplication/Properties/launchSettings.json
index 2b619d7..aa50253 100644
--- a/MESApplication/Properties/launchSettings.json
+++ b/MESApplication/Properties/launchSettings.json
@@ -1,23 +1,14 @@
-锘縶
-  "$schema": "http://json.schemastore.org/launchsettings.json",
-  "iisSettings": {
-    "windowsAuthentication": false,
-    "anonymousAuthentication": true,
-    "iisExpress": {
-      "applicationUrl": "http://localhost:10054",
-      "sslPort": 0
-    }
-  },
+{
   "profiles": {
     "http": {
       "commandName": "Project",
-      "dotnetRunMessages": true,
       "launchBrowser": true,
       "launchUrl": "swagger",
-      "applicationUrl": "http://localhost:5184",
       "environmentVariables": {
         "ASPNETCORE_ENVIRONMENT": "Development"
-      }
+      },
+      "dotnetRunMessages": true,
+      "applicationUrl": "http://localhost:5184"
     },
     "IIS Express": {
       "commandName": "IISExpress",
@@ -27,5 +18,14 @@
         "ASPNETCORE_ENVIRONMENT": "Development"
       }
     }
+  },
+  "$schema": "http://json.schemastore.org/launchsettings.json",
+  "iisSettings": {
+    "windowsAuthentication": false,
+    "anonymousAuthentication": true,
+    "iisExpress": {
+      "applicationUrl": "http://localhost:10056",
+      "sslPort": 0
+    }
   }
-}
+}
\ No newline at end of file
diff --git a/MESApplication/bin/Debug/net8.0/MES.Service.dll b/MESApplication/bin/Debug/net8.0/MES.Service.dll
index a5e2509..22f056e 100644
--- a/MESApplication/bin/Debug/net8.0/MES.Service.dll
+++ b/MESApplication/bin/Debug/net8.0/MES.Service.dll
Binary files differ
diff --git a/MESApplication/bin/Debug/net8.0/MES.Service.pdb b/MESApplication/bin/Debug/net8.0/MES.Service.pdb
index 61cb04c..9ebd887 100644
--- a/MESApplication/bin/Debug/net8.0/MES.Service.pdb
+++ b/MESApplication/bin/Debug/net8.0/MES.Service.pdb
Binary files differ
diff --git a/MESApplication/bin/Debug/net8.0/MESApplication.dll b/MESApplication/bin/Debug/net8.0/MESApplication.dll
index 78a4161..33d8b2f 100644
--- a/MESApplication/bin/Debug/net8.0/MESApplication.dll
+++ b/MESApplication/bin/Debug/net8.0/MESApplication.dll
Binary files differ
diff --git a/MESApplication/bin/Debug/net8.0/MESApplication.exe b/MESApplication/bin/Debug/net8.0/MESApplication.exe
index 700d0b3..2dff69f 100644
--- a/MESApplication/bin/Debug/net8.0/MESApplication.exe
+++ b/MESApplication/bin/Debug/net8.0/MESApplication.exe
Binary files differ
diff --git a/MESApplication/bin/Debug/net8.0/MESApplication.pdb b/MESApplication/bin/Debug/net8.0/MESApplication.pdb
index 9c9dff8..41471d6 100644
--- a/MESApplication/bin/Debug/net8.0/MESApplication.pdb
+++ b/MESApplication/bin/Debug/net8.0/MESApplication.pdb
Binary files differ
diff --git a/MESApplication/bin/Debug/net8.0/log/2025021016.log b/MESApplication/bin/Debug/net8.0/log/2025021016.log
new file mode 100644
index 0000000..fae325a
--- /dev/null
+++ b/MESApplication/bin/Debug/net8.0/log/2025021016.log
@@ -0,0 +1,3 @@
+2025-02-10 16:36:40:779 鎺ュ彛寮傚父锛歿"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.XJController.getDaa001(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 92\r\n   at lambda_method102(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
+2025-02-10 16:36:40:799 寮傚父鎻愮ず淇℃伅锛�"Object reference not set to an instance of an object."
+==================================================================================================================================
diff --git a/MESApplication/bin/Debug/net8.0/log/2025021017.log b/MESApplication/bin/Debug/net8.0/log/2025021017.log
new file mode 100644
index 0000000..4f949f5
--- /dev/null
+++ b/MESApplication/bin/Debug/net8.0/log/2025021017.log
@@ -0,0 +1,3 @@
+2025-02-10 17:02:00:298 鎺ュ彛寮傚父锛歿"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.SJController.SetQSItems(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\SJController.cs:line 65\r\n   at lambda_method158(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
+2025-02-10 17:02:00:317 寮傚父鎻愮ず淇℃伅锛�"Object reference not set to an instance of an object."
+==================================================================================================================================
diff --git a/MESApplication/bin/Debug/net8.0/log/2025021213.log b/MESApplication/bin/Debug/net8.0/log/2025021213.log
new file mode 100644
index 0000000..36dc412
--- /dev/null
+++ b/MESApplication/bin/Debug/net8.0/log/2025021213.log
@@ -0,0 +1,3 @@
+2025-02-12 13:13:45:516 鎺ュ彛寮傚父锛歿"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 167\r\n   at lambda_method206(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
+2025-02-12 13:13:45:536 寮傚父鎻愮ず淇℃伅锛�"Object reference not set to an instance of an object."
+==================================================================================================================================
diff --git a/MESApplication/bin/Debug/net8.0/log/2025021214.log b/MESApplication/bin/Debug/net8.0/log/2025021214.log
new file mode 100644
index 0000000..c1a5e86
--- /dev/null
+++ b/MESApplication/bin/Debug/net8.0/log/2025021214.log
@@ -0,0 +1,6 @@
+2025-02-12 14:09:48:129 鎺ュ彛寮傚父锛歿"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 167\r\n   at lambda_method206(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
+2025-02-12 14:09:48:141 寮傚父鎻愮ず淇℃伅锛�"Object reference not set to an instance of an object."
+==================================================================================================================================
+2025-02-12 14:37:08:660 鎺ュ彛寮傚父锛歿"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 167\r\n   at lambda_method154(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
+2025-02-12 14:37:08:678 寮傚父鎻愮ず淇℃伅锛�"Object reference not set to an instance of an object."
+==================================================================================================================================
diff --git a/MESApplication/bin/Debug/net8.0/log/2025021215.log b/MESApplication/bin/Debug/net8.0/log/2025021215.log
new file mode 100644
index 0000000..32d635c
--- /dev/null
+++ b/MESApplication/bin/Debug/net8.0/log/2025021215.log
@@ -0,0 +1,9 @@
+2025-02-12 15:04:16:163 鎺ュ彛寮傚父锛歿"ClassName":"System.FormatException","Message":"The input string '' was not in a correct format.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)\r\n   at System.Number.ParseDecimal[TChar](ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)\r\n   at System.Convert.ToDecimal(String value)\r\n   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 167\r\n   at lambda_method60(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233033,"Source":"System.Private.CoreLib","WatsonBuckets":null}
+2025-02-12 15:04:16:182 寮傚父鎻愮ず淇℃伅锛�"The input string '' was not in a correct format."
+==================================================================================================================================
+2025-02-12 15:04:47:748 鎺ュ彛寮傚父锛歿"ClassName":"System.FormatException","Message":"The input string '' was not in a correct format.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)\r\n   at System.Number.ParseDecimal[TChar](ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)\r\n   at System.Convert.ToDecimal(String value)\r\n   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 167\r\n   at lambda_method60(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233033,"Source":"System.Private.CoreLib","WatsonBuckets":null}
+2025-02-12 15:04:47:759 寮傚父鎻愮ず淇℃伅锛�"The input string '' was not in a correct format."
+==================================================================================================================================
+2025-02-12 15:10:22:915 鎺ュ彛寮傚父锛歿"ClassName":"System.FormatException","Message":"The input string '' was not in a correct format.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)\r\n   at System.Number.ParseDecimal[TChar](ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)\r\n   at System.Convert.ToDecimal(String value)\r\n   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data)\r\n   at lambda_method60(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233033,"Source":"System.Private.CoreLib","WatsonBuckets":null}
+2025-02-12 15:10:22:933 寮傚父鎻愮ず淇℃伅锛�"The input string '' was not in a correct format."
+==================================================================================================================================
diff --git a/MESApplication/bin/Debug/net8.0/log/2025021217.log b/MESApplication/bin/Debug/net8.0/log/2025021217.log
new file mode 100644
index 0000000..cfe9c6c
--- /dev/null
+++ b/MESApplication/bin/Debug/net8.0/log/2025021217.log
@@ -0,0 +1,9 @@
+2025-02-12 17:09:46:409 鎺ュ彛寮傚父锛歿"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.SJController.SetQSItems(JObject data)\r\n   at lambda_method320(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
+2025-02-12 17:09:46:425 寮傚父鎻愮ず淇℃伅锛�"Object reference not set to an instance of an object."
+==================================================================================================================================
+2025-02-12 17:18:16:148 鎺ュ彛寮傚父锛歿"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.SJController.SetQSItems(JObject data)\r\n   at lambda_method446(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
+2025-02-12 17:18:16:167 寮傚父鎻愮ず淇℃伅锛�"Object reference not set to an instance of an object."
+==================================================================================================================================
+2025-02-12 17:22:05:925 鎺ュ彛寮傚父锛歿"ClassName":"System.FormatException","Message":"The input string '' was not in a correct format.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)\r\n   at System.Number.ParseDecimal[TChar](ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)\r\n   at System.Convert.ToDecimal(String value)\r\n   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 168\r\n   at lambda_method258(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233033,"Source":"System.Private.CoreLib","WatsonBuckets":null}
+2025-02-12 17:22:05:941 寮傚父鎻愮ず淇℃伅锛�"The input string '' was not in a correct format."
+==================================================================================================================================

--
Gitblit v1.9.3