1
zrg
2025-11-05 080398b3ec314095e2fd5cccd3590e42815cc6c8
WebAPI/Controllers/BaseSet/Gy_MaterialController.cs
@@ -985,7 +985,7 @@
                lsmain = oListModels.getObjectByJson_Gy_Material(msg1); 
                oBill.oModel = lsmain[0];
                LogService.Write("物料同步插件,保存方法执行完成异常:"+ msg1);
                LogService.Write("物料:"+ msg1);
                //保存
                bool bResult = oBill.AddNewApi();
                if (bResult)
@@ -4547,11 +4547,11 @@
                        }
                        else
                        {
                            tb2.Rows[i]["HWHID"] = ds.Tables[0].Rows[0]["HItemID"].ToString();
                            tb2.Rows[i]["HWHID"] = ds.Tables[0].Rows[0]["HSPGroupID"].ToString();
                        }
                        string HWHID = tb2.Rows[i]["HWHID"].ToString();
                        //查询仓位
                        ds = oCN.RunProcReturn("select * from Gy_StockPlace where  HName='" + HSPName + "'and HSPGroupID=" + HWHID+ "  and HUSEORGID=" + HORGid + "", "Gy_Warehouse");
                        ds = oCN.RunProcReturn("select * from Gy_StockPlace where  HName='" + HSPName + "'and HSPGroupID=" + HWHID+ "  and HUSEORGID=" + HORGid + "", "Gy_StockPlace");
                        if (ds.Tables[0].Rows.Count == 0)
                        {