Commit 512b558ceb9f2f05cbfc33a42b53d8d114996adc
1 parent
88a3499b46
Exists in
master
and in
1 other branch
update code
Showing 2 changed files with 10 additions and 1 deletions
platform-dal/src/main/java/com/lyms/platform/query/BabyCheckModelQuery.java
View file @
512b558
... | ... | @@ -28,6 +28,15 @@ |
28 | 28 | public MongoQuery convertToQuery() { |
29 | 29 | MongoCondition condition = MongoCondition.newInstance(); |
30 | 30 | |
31 | + if(null!=id){ | |
32 | + condition=condition.and("id", id, MongoOper.IS); | |
33 | + } | |
34 | + if(null!=yn){ | |
35 | + condition=condition.and("yn", yn, MongoOper.IS); | |
36 | + } | |
37 | + if(null!=buildId){ | |
38 | + condition=condition.and("buildId", buildId, MongoOper.IS); | |
39 | + } | |
31 | 40 | return condition.toMongoQuery(); |
32 | 41 | } |
33 | 42 |
platform-dal/src/main/java/com/lyms/platform/query/BabyModelQuery.java
View file @
512b558