From fe5b51e28edd39c30eb5f1f94bd541bf5f59d5ed Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Thu, 12 Jan 2017 16:52:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=A8=A9=E4=BD=9C=E5=BA=9F=E4=BA=A7?= =?UTF-8?q?=E6=A3=80=E5=8A=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lyms/platform/query/AntExRecordQuery.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platform-dal/src/main/java/com/lyms/platform/query/AntExRecordQuery.java b/platform-dal/src/main/java/com/lyms/platform/query/AntExRecordQuery.java index 8285e24..0254aeb 100644 --- a/platform-dal/src/main/java/com/lyms/platform/query/AntExRecordQuery.java +++ b/platform-dal/src/main/java/com/lyms/platform/query/AntExRecordQuery.java @@ -352,6 +352,10 @@ public class AntExRecordQuery extends BaseQuery implements IConvertToNativeQuery @Override public MongoQuery convertToQuery() { MongoCondition condition = MongoCondition.newInstance(); + + if (null != pid) { + condition = condition.and("pid", pid, MongoOper.IS); + } if (null != parentId) { condition = condition.and("parentId", parentId, MongoOper.IS); } @@ -416,9 +420,7 @@ public class AntExRecordQuery extends BaseQuery implements IConvertToNativeQuery condition = condition.and("hospitalId", hospitalList, MongoOper.IN); } - if (null != pid) { - condition = condition.and("pid", pid, MongoOper.IS); - } + Criteria c = null; if (null != buildTimeStart) { -- 1.8.3.1