Commit fe5b51e28edd39c30eb5f1f94bd541bf5f59d5ed
1 parent
48b287735b
Exists in
master
and in
7 other branches
分娩作废产检劵
Showing 1 changed file with 5 additions and 3 deletions
platform-dal/src/main/java/com/lyms/platform/query/AntExRecordQuery.java
View file @
fe5b51e
| ... | ... | @@ -352,6 +352,10 @@ |
| 352 | 352 | @Override |
| 353 | 353 | public MongoQuery convertToQuery() { |
| 354 | 354 | MongoCondition condition = MongoCondition.newInstance(); |
| 355 | + | |
| 356 | + if (null != pid) { | |
| 357 | + condition = condition.and("pid", pid, MongoOper.IS); | |
| 358 | + } | |
| 355 | 359 | if (null != parentId) { |
| 356 | 360 | condition = condition.and("parentId", parentId, MongoOper.IS); |
| 357 | 361 | } |
| ... | ... | @@ -416,9 +420,7 @@ |
| 416 | 420 | condition = condition.and("hospitalId", hospitalList, MongoOper.IN); |
| 417 | 421 | } |
| 418 | 422 | |
| 419 | - if (null != pid) { | |
| 420 | - condition = condition.and("pid", pid, MongoOper.IS); | |
| 421 | - } | |
| 423 | + | |
| 422 | 424 | |
| 423 | 425 | Criteria c = null; |
| 424 | 426 | if (null != buildTimeStart) { |