Commit 095422ea961253813734d6444e1b675750020556
1 parent
51a370f69e
Exists in
master
and in
1 other branch
增加区域id查询
Showing 1 changed file with 13 additions and 0 deletions
platform-dal/src/main/java/com/lyms/platform/query/PatientsQuery.java
View file @
095422e
... | ... | @@ -38,6 +38,8 @@ |
38 | 38 | * 访视状态 |
39 | 39 | */ |
40 | 40 | private int visitstatus=-1; |
41 | + | |
42 | + private int areaId=-1; | |
41 | 43 | /** |
42 | 44 | * 产妇手机号 |
43 | 45 | */ |
... | ... | @@ -73,6 +75,14 @@ |
73 | 75 | */ |
74 | 76 | private Date birthEnd; |
75 | 77 | |
78 | + public int getAreaId() { | |
79 | + return areaId; | |
80 | + } | |
81 | + | |
82 | + public void setAreaId(int areaId) { | |
83 | + this.areaId = areaId; | |
84 | + } | |
85 | + | |
76 | 86 | public Date getBirthEnd() { |
77 | 87 | return birthEnd; |
78 | 88 | } |
... | ... | @@ -188,6 +198,9 @@ |
188 | 198 | } |
189 | 199 | if(null!=communityId&&!"-1".equals(communityId)){ |
190 | 200 | condition= condition.and("communityId", communityId, MongoOper.IS); |
201 | + } | |
202 | + if(-1!=areaId){ | |
203 | + condition= condition.and("areaId", areaId, MongoOper.IS); | |
191 | 204 | } |
192 | 205 | if(null!=id){ |
193 | 206 | condition= condition.and("id", id, MongoOper.IS); |