From ba29996158b89f5deea84225e904a11bb0a9473f Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Wed, 22 Jun 2016 19:06:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=A6=87=E5=A2=9E=E5=8A=A0=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lyms/platform/query/AntExChuQuery.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platform-dal/src/main/java/com/lyms/platform/query/AntExChuQuery.java b/platform-dal/src/main/java/com/lyms/platform/query/AntExChuQuery.java index 3ba2074..2116572 100644 --- a/platform-dal/src/main/java/com/lyms/platform/query/AntExChuQuery.java +++ b/platform-dal/src/main/java/com/lyms/platform/query/AntExChuQuery.java @@ -12,6 +12,15 @@ import com.lyms.platform.common.dao.operator.MongoQuery; public class AntExChuQuery extends BaseQuery implements IConvertToNativeQuery { private String parentId; private Integer yn; + private String id; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } @Override public MongoQuery convertToQuery() { @@ -22,6 +31,9 @@ public class AntExChuQuery extends BaseQuery implements IConvertToNativeQuery { if(null!=yn){ condition= condition.and("yn",yn, MongoOper.IS); } + if(null!=id){ + condition= condition.and("id",id, MongoOper.IS); + } return condition.toMongoQuery(); } -- 1.8.3.1