From 2b66d4c2dc5b1c00805fa47ba65d9a8d2724ab35 Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期三, 25 二月 2026 08:48:01 +0800
Subject: [PATCH] 清理多余文件
---
代码管理/WMS/WMSServices/WIDESEA_Core/BaseServices/ServiceBase.cs | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMSServices/WIDESEA_Core/BaseServices/ServiceBase.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMSServices/WIDESEA_Core/BaseServices/ServiceBase.cs"
index 98d28b2..326d9af 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMSServices/WIDESEA_Core/BaseServices/ServiceBase.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMSServices/WIDESEA_Core/BaseServices/ServiceBase.cs"
@@ -1,4 +1,4 @@
-锘縰sing 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
{
--
Gitblit v1.9.3