From e752e5166e1d8d7f5daae69eddc060f8e70e3ffa Mon Sep 17 00:00:00 2001 From: liquanyu Date: Tue, 28 Mar 2023 11:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=BF=E5=BE=B7=E4=BA=A7=E5=90=8E=E8=AE=BF?= =?UTF-8?q?=E8=A7=86=E8=A1=97=E9=81=93=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lyms/platform/query/MatDeliverQuery.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform-dal/src/main/java/com/lyms/platform/query/MatDeliverQuery.java b/platform-dal/src/main/java/com/lyms/platform/query/MatDeliverQuery.java index 6aabfb6..af26750 100644 --- a/platform-dal/src/main/java/com/lyms/platform/query/MatDeliverQuery.java +++ b/platform-dal/src/main/java/com/lyms/platform/query/MatDeliverQuery.java @@ -513,7 +513,9 @@ public class MatDeliverQuery extends BaseQuery implements IConvertToNativeQuery System.out.println(":::::::::StringUtils.isNotEmpty(streetPostRestId)::::::::::"); if (!streetPostRestId.trim().equals("")) { System.out.println(":::::::::streetPostRestId.trim().equals(\"\")::::::::::"); - condition = condition.and("streetPostRestId", streetPostRestId, MongoOper.IS); + MongoCondition mongoCondition = MongoCondition.newInstance("streetRegisterId", streetPostRestId, MongoOper.IS); + MongoCondition condition12 = MongoCondition.newInstance("streetPostRestId", streetPostRestId, MongoOper.IS); + condition = condition.orCondition(new MongoCondition[]{condition12, mongoCondition}); } } } -- 1.8.3.1