Commit ba29996158b89f5deea84225e904a11bb0a9473f

Authored by jiangjiazhi
1 parent ba9b1fb009

产妇增加字段

Showing 1 changed file with 12 additions and 0 deletions

platform-dal/src/main/java/com/lyms/platform/query/AntExChuQuery.java View file @ ba29996
... ... @@ -12,7 +12,16 @@
12 12 public class AntExChuQuery extends BaseQuery implements IConvertToNativeQuery {
13 13 private String parentId;
14 14 private Integer yn;
  15 + private String id;
15 16  
  17 + public String getId() {
  18 + return id;
  19 + }
  20 +
  21 + public void setId(String id) {
  22 + this.id = id;
  23 + }
  24 +
16 25 @Override
17 26 public MongoQuery convertToQuery() {
18 27 MongoCondition condition=MongoCondition.newInstance();
... ... @@ -21,6 +30,9 @@
21 30 }
22 31 if(null!=yn){
23 32 condition= condition.and("yn",yn, MongoOper.IS);
  33 + }
  34 + if(null!=id){
  35 + condition= condition.and("id",id, MongoOper.IS);
24 36 }
25 37 return condition.toMongoQuery();
26 38 }