From f6e050289dff6f7ec964a3a3c1c54b6bc94e4e84 Mon Sep 17 00:00:00 2001 From: liquanyu Date: Wed, 30 Nov 2016 14:38:44 +0800 Subject: [PATCH] update --- platform-dal/src/main/java/com/lyms/platform/query/PatientsQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-dal/src/main/java/com/lyms/platform/query/PatientsQuery.java b/platform-dal/src/main/java/com/lyms/platform/query/PatientsQuery.java index 7f94fe2..b07ae51 100644 --- a/platform-dal/src/main/java/com/lyms/platform/query/PatientsQuery.java +++ b/platform-dal/src/main/java/com/lyms/platform/query/PatientsQuery.java @@ -860,7 +860,7 @@ public class PatientsQuery extends BaseQuery implements IConvertToNativeQuery { condition = condition.and("communityId", null, MongoOper.IS); } //去掉type为3 的情况 - if (-1 != type) { + if (type != null && -1 != type) { condition = condition.and("type", type, MongoOper.IS); } if(null!=postViewTimes){ -- 1.8.3.1