Commit 3f7ba9e37d96c69518d9c4335a79b0e2cee05cc9

Authored by liquanyu
1 parent d494e74384

高危匹配

Showing 1 changed file with 3 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ 3f7ba9e
... ... @@ -2863,10 +2863,10 @@
2863 2863  
2864 2864 Set<String> list = new HashSet<>();
2865 2865  
2866   - Patients patients = patientsService.findOnePatientById(antExcAddRequest.getParentId());
  2866 + String hospitalId = autoMatchFacade.getHospitalId(userId);
2867 2867  
2868 2868 DiagnoseConfigQuery diagnoseConfigQuery = new DiagnoseConfigQuery();
2869   - diagnoseConfigQuery.setHospitalId(patients.getHospitalId());
  2869 + diagnoseConfigQuery.setHospitalId(hospitalId);
2870 2870 List<DiagnoseConfigModel> configModels = diagnoseConfigService.queryDiagnoseConfigs(diagnoseConfigQuery);
2871 2871  
2872 2872 List<Map<String,String>> riskList = new ArrayList<>();
... ... @@ -2892,7 +2892,7 @@
2892 2892 Map<Integer,List<DiagnoseItemModel>> mapItems = getRiskConfig(configModels);
2893 2893 if (mapItems != null && mapItems.size() > 0) {
2894 2894 if (isEnableItem(status, DiagnoseEnums.DiagnoseItemEnums.age.getId())) {
2895   -
  2895 + Patients patients = patientsService.findOnePatientById(antExcAddRequest.getParentId());
2896 2896 if (patients != null && patients.getBirth() != null) {
2897 2897 String age = String.valueOf(DateUtil.getAge(patients.getBirth(), new Date()));
2898 2898 //年龄高危匹配