Commit d96c94467c87fdb7a0f9936d03641299afd94378
1 parent
62266e93a0
Exists in
master
and in
6 other branches
出院
Showing 1 changed file with 3 additions and 0 deletions
platform-dal/src/main/java/com/lyms/platform/query/PatientRegistrationModelQuery.java
View file @
d96c944
| ... | ... | @@ -46,7 +46,10 @@ |
| 46 | 46 | @Override |
| 47 | 47 | public MongoQuery convertToQuery() { |
| 48 | 48 | MongoCondition condition = MongoCondition.newInstance(); |
| 49 | + if (StringUtils.isNotEmpty(id)) { | |
| 49 | 50 | |
| 51 | + condition = condition.and("id", id, MongoOper.IS); | |
| 52 | + } | |
| 50 | 53 | if (StringUtils.isNotEmpty(name)) { |
| 51 | 54 | |
| 52 | 55 | condition = condition.and("name", name, MongoOper.IS); |