From 9544839cb77ea3032acf6c6132d2ae8580d77d1e Mon Sep 17 00:00:00 2001 From: monster_com <1309515676@qq.com> Date: Mon, 19 Jan 2026 02:41:35 +0000 Subject: [PATCH] =?UTF-8?q?update=20Services/ThingDepreciationService.cs.?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E6=8A=98=E6=97=A7=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E8=A7=A3=E9=94=81=E6=97=B6id=E4=B8=8D=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: monster_com <1309515676@qq.com> --- Services/ThingDepreciationService.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Services/ThingDepreciationService.cs b/Services/ThingDepreciationService.cs index a2edcff..f49c54d 100644 --- a/Services/ThingDepreciationService.cs +++ b/Services/ThingDepreciationService.cs @@ -1,4 +1,4 @@ -using anydata.Entitys; +using anydata.Entitys; using anydata.Loaders.ResponseModel; using MongoDB.Bson; using MongoDB.Driver; @@ -87,7 +87,12 @@ public class ThingDepreciationService : ITransient { Match = new JObject { - { "locks.exclusion.id", JValue.CreateString(context.Current.id) } + { + "$or", new JArray { + new JObject { "locks.exclusion.id", JValue.CreateString(context.Current.id) }, + new JObject { "locks.exclusion._id", JValue.CreateString(context.Current.id) } + } + } }, Update = new JObject { -- Gitee