Commit 85e7522c8953cc1bf5d07b2ffd5a3244294d7f5b
1 parent
7c2484a5ae
Exists in
master
and in
1 other branch
增加权限
Showing 1 changed file with 4 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/VisitFacade.java
View file @
85e7522
| ... | ... | @@ -67,7 +67,7 @@ |
| 67 | 67 | * @return |
| 68 | 68 | */ |
| 69 | 69 | public BaseObjectResponse findOneByCardNo(String cardNo) { |
| 70 | - Patients puerperaModel = findOnePuerperaByCardNo(cardNo); | |
| 70 | + Patients puerperaModel = findOnePuerperaByCardNo(cardNo,3); | |
| 71 | 71 | if (null == puerperaModel) { |
| 72 | 72 | return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.DEPT_NOT_EXISTS).setErrormsg("产妇信息不存在"); |
| 73 | 73 | } |
| 74 | 74 | |
| ... | ... | @@ -132,13 +132,13 @@ |
| 132 | 132 | * @param cardNo 身份证号码 |
| 133 | 133 | * @return 产妇信息 |
| 134 | 134 | */ |
| 135 | - private Patients findOnePuerperaByCardNo(String cardNo) { | |
| 135 | + private Patients findOnePuerperaByCardNo(String cardNo,int type) { | |
| 136 | 136 | PatientsQuery query = new PatientsQuery(); |
| 137 | 137 | //先根据传入的手机号 |
| 138 | 138 | // query.setCardNo(cardNo); |
| 139 | 139 | query.setPhone(cardNo); |
| 140 | 140 | query.setYn(YnEnums.YES.getId()); |
| 141 | - query.setType(3); | |
| 141 | + query.setType(type); | |
| 142 | 142 | // 根据身份证号找到产妇信息 |
| 143 | 143 | return patientsService.findOnePatientByCardNo(query); |
| 144 | 144 | } |
| ... | ... | @@ -238,7 +238,7 @@ |
| 238 | 238 | */ |
| 239 | 239 | public BaseObjectResponse findBabyVisitByMotherCardNo(String cardNo) { |
| 240 | 240 | // 根据身份证号获取到产妇信息 |
| 241 | - Patients puerperaModel = findOnePuerperaByCardNo(cardNo); | |
| 241 | + Patients puerperaModel = findOnePuerperaByCardNo(cardNo,2); | |
| 242 | 242 | if (null == puerperaModel) { |
| 243 | 243 | return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.DEPT_NOT_EXISTS).setErrormsg("产妇信息不存在"); |
| 244 | 244 | } |