Commit f85a4f1b622f06a18a62f0283e7265727e426f56
1 parent
0fcae8513b
Exists in
master
and in
8 other branches
修改新电子病历
Showing 1 changed file with 3 additions and 2 deletions
platform-dal/src/main/java/com/lyms/platform/query/SieveQuery.java
View file @
f85a4f1
| ... | ... | @@ -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.springframework.data.mongodb.core.query.Criteria; |
| 9 | 10 | |
| 10 | 11 | import java.util.Date; |
| ... | ... | @@ -151,7 +152,7 @@ |
| 151 | 152 | if (null != parentId) { |
| 152 | 153 | condition = condition.and("parentId", parentId, MongoOper.IS); |
| 153 | 154 | } |
| 154 | - if (null != name) { | |
| 155 | + if (StringUtils.isNotEmpty(name)) { | |
| 155 | 156 | condition = condition.and("name", name, MongoOper.LIKE); |
| 156 | 157 | } |
| 157 | 158 | if (null != tireNumber) { |
| ... | ... | @@ -160,7 +161,7 @@ |
| 160 | 161 | if (null != ztfx) { |
| 161 | 162 | condition = condition.and("ztfx", ztfx, MongoOper.IS); |
| 162 | 163 | } |
| 163 | - if (null != phone) { | |
| 164 | + if (StringUtils.isNotEmpty(phone)) { | |
| 164 | 165 | condition = condition.and("phone", phone, MongoOper.IS); |
| 165 | 166 | } |
| 166 | 167 | if (null != dueWeek) { |