cnf
2025-09-11 5e92c9a89ee74aff083d76172085e97a6bd15d55
WebApi/Gs.Wom/WorkService/WorkCollectController.cs
@@ -1,7 +1,6 @@
using System.Data;
using System.Data.SqlClient;
using System.Dynamic;
using System.Text;
using Gs.Toolbox;
using Gs.Toolbox.ApiCore.Abstract.Mvc;
using Gs.Toolbox.ApiCore.Common.Mvc;
@@ -25,8 +24,6 @@
                GetUserGuidAndOrgGuid(_http);
        }
        #region
        /// <summary>
        ///     读取,采集,采集的时候返回列表
        /// </summary>
@@ -41,6 +38,7 @@
            string gongWei = model.gongWei;//工位
            string checkResult = model.checkResult; //结果
            string badDescription = model.badDescription;//不良描述
            string collectGuid = model.collectGuid;
            //水检值
            string t001 = model.t001;
            string t002 = model.t002;
@@ -53,6 +51,8 @@
            string t009 = model.t009;
            string t010 = model.t010;
            string t011 = model.t011;
            string t012 = model.t012;
            string t013 = model.t013;
            dynamic m = new ExpandoObject();
            m.list = new List<dynamic>();
            m.list2 = new List<dynamic>();
@@ -81,6 +81,9 @@
                                  new("@t009",t009),
                                    new("@t010",t010),
                                       new("@t011",t011),
                                          new("@t012",t012),
                                             new("@t013",t013),
                                               new("@collectGuid",collectGuid),
            };
            var dset = new DataSet();
            try
@@ -122,7 +125,12 @@
            }
            catch (Exception ex)
            {
                LogHelper.Debug(this.ToString(), ex.Message);
                System.Text.StringBuilder sbLog = new System.Text.StringBuilder();
                sbLog.Append("_userGuid:" + _userGuid.ToString());
                sbLog.Append("processNo:" + processNo.ToString());
                sbLog.Append("gongWei:" + gongWei.ToString());
                sbLog.Append("inP4:" + barCode);
                LogHelper.Debug(this.ToString(), ex.Message + ":" + sbLog.ToString());
                m.outMsg = ex.Message;
                m.outSum = -1;
            }