Commit 884fed5dc80c048db7520775f0a54614971ffe1a
1 parent
235a555b77
Exists in
master
and in
3 other branches
去掉type的纬度
Showing 1 changed file with 3 additions and 7 deletions
platform-dal/src/main/java/com/lyms/platform/query/PatientsQuery.java
View file @
884fed5
| ... | ... | @@ -218,15 +218,11 @@ |
| 218 | 218 | if(-1!=yn){ |
| 219 | 219 | condition=condition.and("yn", yn, MongoOper.IS); |
| 220 | 220 | } |
| 221 | - if(-1!=type){ | |
| 221 | + //去掉type为3 的情况 | |
| 222 | + /* if(-1!=type){ | |
| 222 | 223 | condition=condition.and("type", type, MongoOper.IS); |
| 223 | - } | |
| 224 | - /*if(null!=dueDateStart){ | |
| 225 | -// condition= condition.elemMatch("dueDate",MongoCondition.newInstance("$lte", dueDateStart, MongoOper.IS).and("$gte", dueDateEnd, MongoOper.IS)); | |
| 226 | -// condition=condition.and("dueDate", dueDateStart, MongoOper.GTE).and("dueDate", dueDateEnd, MongoOper.LTE); | |
| 227 | - Criteria c = Criteria.where("dueDate").gte(dueDateStart).lte(dueDateEnd).andOperator(condition.getCriteria()); | |
| 228 | - return new MongoCondition(c).toMongoQuery(); | |
| 229 | 224 | }*/ |
| 225 | + | |
| 230 | 226 | boolean isAddStart = Boolean.FALSE; |
| 231 | 227 | Criteria c = null; |
| 232 | 228 | if (null != dueDateStart) { |