啊鑫
2025-09-13 aedc81d40157133df8b5c44d3fbabc803a0e6e75
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>();
@@ -70,17 +70,20 @@
                new("@banCi",banCi),
                new("@gongWei",gongWei),
                new("@badDescription",badDescription),
                  new("@t001",t001),
                    new("@t002",t002),
                      new("@t003",t003),
                        new("@t004",t004),
                          new("@t005",t005),
                            new("@t006",t006),
                              new("@t007",t007),
                                new("@t008",t008),
                                  new("@t009",t009),
                                    new("@t010",t010),
                                       new("@t011",t011),
                new("@t001",t001),
                new("@t002",t002),
                new("@t003",t003),
                new("@t004",t004),
                new("@t005",t005),
                 new("@t006",t006),
                  new("@t007",t007),
                    new("@t008",t008),
                     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;
            }