WebAPI/Controllers/SCGL/Èռƻ®¹ÜÀí/JIT_DayPlanPlatFormImportController.cs
@@ -49,7 +49,10 @@
                //添加列名
                for (int i = 0; i < ExcelDs.Tables[0].Columns.Count; i++)
                {
                    tb2.Columns.Add(ExcelDs.Tables[0].Rows[0][i].ToString());
                    if (!tb2.Columns.Contains(ExcelDs.Tables[0].Rows[0][i].ToString()))
                    {
                        tb2.Columns.Add(ExcelDs.Tables[0].Rows[0][i].ToString());
                    }
                }
                //模板缺少列 ä½†éœ€è¦ä»Žæ•°æ®åº“中查询出来显示在页面的字段
                tb2.Columns.Add("hmainid", typeof(Int32));
@@ -1847,6 +1850,14 @@
                        var ds = oCN.RunProcReturn($@"select * from Gy_Source where HName= '{HSourceName}'", "Gy_Source");
                        if (ds == null || ds.Tables[0].Rows.Count == 0)
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "生产资源名称有误,系统未查询到对应数据!";
                            objJsonResult.data = null;
                            return objJsonResult;
                        }
                        HSourceID = ds.Tables[0].Rows[0]["HItemID"].ToString();
                        string sql = $"select * from  Sc_WorkBillSortBillMain where HMainSourceInterID={HMainSourceInterID}" +