schangxiang@126.com
2024-04-24 bd916670e7915ec914d71ed7daadbe8eb5fd0835
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;
                              }
                          
                          }