Commit 4911fb3466c7f075cbba2728ce97474dda105466

Authored by jiangjiazhi
1 parent 7387451c17

全部孕妇管理增加按照排序

Showing 1 changed file with 7 additions and 6 deletions

platform-dal/src/main/java/com/lyms/platform/query/TrackDownRecordQuery.java View file @ 4911fb3
... ... @@ -5,6 +5,7 @@
5 5 import com.lyms.platform.common.dao.operator.MongoCondition;
6 6 import com.lyms.platform.common.dao.operator.MongoOper;
7 7 import com.lyms.platform.common.dao.operator.MongoQuery;
  8 +import com.lyms.platform.common.utils.StringUtils;
8 9 import org.apache.commons.collections.CollectionUtils;
9 10 import org.slf4j.Logger;
10 11 import org.slf4j.LoggerFactory;
11 12  
12 13  
13 14  
14 15  
15 16  
... ... @@ -110,22 +111,22 @@
110 111 @Override
111 112 public MongoQuery convertToQuery() {
112 113 MongoCondition condition=MongoCondition.newInstance();
113   - if(null!=provinceId){
  114 + if(StringUtils.isNotEmpty(provinceId)){
114 115 condition= condition.and("provinceId",provinceId, MongoOper.IS);
115 116 }
116   - if(null!=cityId){
  117 + if(StringUtils.isNotEmpty(cityId)){
117 118 condition= condition.and("cityId",cityId, MongoOper.IS);
118 119 }
119   - if(null!=areaId){
  120 + if(StringUtils.isNotEmpty(areaId)){
120 121 condition= condition.and("areaId",areaId, MongoOper.IS);
121 122 }
122   - if(null!=areaId){
  123 + if(StringUtils.isNotEmpty(areaId)){
123 124 condition= condition.and("hospitalId",hospitalId, MongoOper.IS);
124 125 }
125   - if(null!=streetId){
  126 + if(StringUtils.isNotEmpty(streetId)){
126 127 condition = condition.and("streetId", streetId, MongoOper.IS);
127 128 }
128   - if(null!=parentId){
  129 + if(StringUtils.isNotEmpty(parentId)){
129 130 condition = condition.and("parentId", parentId, MongoOper.IS);
130 131 }
131 132 if (null != pids) {