Commit 0413d459051562a1fab1c5913fc6626ccaf9dc00
1 parent
efdccef560
Exists in
master
and in
1 other branch
update
Showing 1 changed file with 3 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/DefectiveChildServiceImpl.java
View file @
0413d45
| ... | ... | @@ -254,10 +254,10 @@ |
| 254 | 254 | @Override |
| 255 | 255 | public BaseResponse getPatientInfoByIdCard(CommonParamRequest param,Integer userId) { |
| 256 | 256 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
| 257 | - String inHospitalId = param.getCardNo(); | |
| 257 | + String inHospitalNo = param.getCardNo(); | |
| 258 | 258 | List<DefectiveChildModelResult> results = new LinkedList<>(); |
| 259 | - if (StringUtils.isNotEmpty(inHospitalId)) { | |
| 260 | - List<DefectiveChildModel> defectiveChildModels = mongoTemplate.find(Query.query(Criteria.where("inHospitalId").is(inHospitalId). | |
| 259 | + if (StringUtils.isNotEmpty(inHospitalNo)) { | |
| 260 | + List<DefectiveChildModel> defectiveChildModels = mongoTemplate.find(Query.query(Criteria.where("inHospitalNo").is(inHospitalNo). | |
| 261 | 261 | and("hospitalId").is(hospitalId)), DefectiveChildModel.class); |
| 262 | 262 | for (DefectiveChildModel model : defectiveChildModels) { |
| 263 | 263 | DefectiveChildModelResult result = getResultByModel(model); |