From 13e89e70b0b385674ec1259ae7ca51f6ccc0ed38 Mon Sep 17 00:00:00 2001 From: liquanyu Date: Tue, 6 Nov 2018 17:26:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=94=9F=E5=84=BF=E8=AE=BF=E8=A7=86-?= =?UTF-8?q?=E6=9C=AC=E8=BE=96=E5=8C=BA=E5=BE=85=E8=AE=BF=E8=A7=86=E6=96=B0?= =?UTF-8?q?=E7=94=9F=E5=84=BF=E5=88=97=E8=A1=A8=E8=87=AA=E5=8A=A8=E5=91=88?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform-dal/src/main/java/com/lyms/platform/query/BabyModelQuery.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform-dal/src/main/java/com/lyms/platform/query/BabyModelQuery.java b/platform-dal/src/main/java/com/lyms/platform/query/BabyModelQuery.java index 3332952..0c49f2c 100644 --- a/platform-dal/src/main/java/com/lyms/platform/query/BabyModelQuery.java +++ b/platform-dal/src/main/java/com/lyms/platform/query/BabyModelQuery.java @@ -761,6 +761,9 @@ public class BabyModelQuery extends BaseQuery implements IConvertToNativeQuery { if (null != id) { condition = condition.and("id", id, MongoOper.IS); } + if (null != parentIds && parentIds.size() > 0) { + condition = condition.and("parentid", parentIds, MongoOper.IN); + } if (null != source) { condition = condition.and("source", source, MongoOper.IS); } -- 1.8.3.1