Commit 0351761fdb37b2e056080175cd0585a2caa3caae
1 parent
8471609e70
Exists in
master
and in
8 other branches
孕妇分娩后 变成产妇
Showing 2 changed files with 16 additions and 1 deletions
platform-dal/src/main/java/com/lyms/platform/query/PatientsQuery.java
View file @
0351761
... | ... | @@ -34,7 +34,12 @@ |
34 | 34 | * 产妇名称 |
35 | 35 | */ |
36 | 36 | private String name; |
37 | + | |
37 | 38 | /** |
39 | + * 产妇名称 | |
40 | + */ | |
41 | + private String likeName; | |
42 | + /** | |
38 | 43 | * 产妇年龄 |
39 | 44 | */ |
40 | 45 | private Integer age; |
... | ... | @@ -63,6 +68,14 @@ |
63 | 68 | this.created = created; |
64 | 69 | } |
65 | 70 | |
71 | + public String getLikeName() { | |
72 | + return likeName; | |
73 | + } | |
74 | + | |
75 | + public void setLikeName(String likeName) { | |
76 | + this.likeName = likeName; | |
77 | + } | |
78 | + | |
66 | 79 | /** |
67 | 80 | * 产妇手机号 |
68 | 81 | */ |
... | ... | @@ -445,6 +458,8 @@ |
445 | 458 | } |
446 | 459 | if (null != name) { |
447 | 460 | condition = condition.and("username", name, MongoOper.IS); |
461 | + }else if(null!=likeName){ | |
462 | + condition = condition.and("username", likeName, MongoOper.LIKE); | |
448 | 463 | } |
449 | 464 | if (null != hospitalId) { |
450 | 465 | condition = condition.and("hospitalId", hospitalId, MongoOper.IS); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
0351761
... | ... | @@ -197,7 +197,7 @@ |
197 | 197 | patientsQuery.setCardNo(riskPatientsQueryRequest.getCardNo()); |
198 | 198 | //设置为孕妇 |
199 | 199 | patientsQuery.setType(type); |
200 | - patientsQuery.setName(riskPatientsQueryRequest.getName()); | |
200 | + patientsQuery.setLikeName(riskPatientsQueryRequest.getName()); | |
201 | 201 | patientsQuery.sethScore(riskPatientsQueryRequest.gethScore()); |
202 | 202 | patientsQuery.setrFactor(riskPatientsQueryRequest.getrFactor()); |
203 | 203 | if (null != riskPatientsQueryRequest.getServiceType()) { |