liulijun
2026-02-25 2b66d4c2dc5b1c00805fa47ba65d9a8d2724ab35
´úÂë¹ÜÀí/WMS/WMSServices/WIDESEA_Core/BaseServices/ServiceBase.cs
@@ -1,4 +1,4 @@
using AutoMapper.Execution;
using AutoMapper.Execution;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Core.Models;
using Magicodes.ExporterAndImporter.Excel;
@@ -195,15 +195,14 @@
                if (userRole == null)
                    throw new Exception($"无权限");
                if (type.IsAssignableFrom(typeof(BaseWarehouseEntity)) || type.GetProperty(nameof(BaseWarehouseEntity.WarehouseId)) != null)
                if (typeof(BaseWarehouseEntity).IsAssignableFrom(type))
                {
                    if (userRole.WarehouseIds.Count > 0)
                    {
                        return $"{nameof(BaseWarehouseEntity.WarehouseId)} in ({userRole.WarehouseIds.Serialize().Replace("[", "").Replace("]", "")})";
                    }
                    else
                        return $"1 != 1";
                        return "1 = 1";
                }
                else
                {