liuying
2024-04-24 810452c0e9e3c678bd4ac14ed360d41c0d9b0229
iWare_RawMaterialWarehouse_Wms/Admin.NET.Application/Service/WmsBase/WmsArea/WmsAreaService.cs
@@ -382,17 +382,15 @@
                          
                          if(!string.IsNullOrEmpty(_WarehouseId))
                          {
                              if (!long.TryParse(_WarehouseId, out long outWarehouseId)&&!string.IsNullOrEmpty(_WarehouseId))
                          System.Int64  enumWarehouseId = default(System.Int64);
                             if(!Enum.TryParse<System.Int64>(_WarehouseId, out enumWarehouseId)&&!string.IsNullOrEmpty(_WarehouseId))
                              {
                                 throw Oops.Oh($"第{index}行[所属仓库]{_WarehouseId}值不正确!");
                              }
                              if (outWarehouseId <= 0&&!string.IsNullOrEmpty(_WarehouseId))
                              {
                                 throw Oops.Oh($"第{index}行[所属仓库]{_WarehouseId}值不能小于等于0!");
                              }
                              else
                              {
                                 addItem.WarehouseId = outWarehouseId;
                                 addItem.WarehouseId = enumWarehouseId;
                              }
                          
                          }