|  | @ -335,6 +335,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |     private String wechatId;
 | 
	
		
			
				|  |  |     @Value("${wechat.flag}")
 | 
	
		
			
				|  |  |     private boolean flag;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private  HealthCareService healthCareService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 获取居民就诊记录接口
 | 
	
	
		
			
				|  | @ -6753,6 +6755,23 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |     public Map<String, Object> findPatientInfo(String patient) {
 | 
	
		
			
				|  |  |         Map<String, Object> rs = new HashedMap();
 | 
	
		
			
				|  |  |         BasePatientDO basePatientDO = basePatientDao.findById(patient);
 | 
	
		
			
				|  |  |         Boolean flag = healthCareService.isHospitalFlag();
 | 
	
		
			
				|  |  |         if (flag){
 | 
	
		
			
				|  |  |             try{
 | 
	
		
			
				|  |  |                 String result = healthCareService.authorized(basePatientDO.getId());
 | 
	
		
			
				|  |  |                 com.alibaba.fastjson.JSONObject object = com.alibaba.fastjson.JSONObject.parseObject(result);
 | 
	
		
			
				|  |  |                 if (object.getString("flag").equalsIgnoreCase("1")){
 | 
	
		
			
				|  |  |                     com.alibaba.fastjson.JSONObject encryptData = object.getJSONObject("encrypt_data");
 | 
	
		
			
				|  |  |                     String state = encryptData.getString("state");
 | 
	
		
			
				|  |  |                     String auth_date = encryptData.getString("auth_date");
 | 
	
		
			
				|  |  |                     basePatientDO.setMedicalState(state);
 | 
	
		
			
				|  |  |                     basePatientDO = basePatientDao.save(basePatientDO);
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }catch (Exception e){
 | 
	
		
			
				|  |  |                 e.printStackTrace();
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         PatientMedicareCardDO patientMedicareCardDO = basePatientMedicareCardDao.findByTypeAndPatientCodeAndDel("A_01", patient, "1");
 | 
	
		
			
				|  |  |         List<BasePatientWechatDo> patientWechatDos = patientWechatDao.findByWechatIdAndPatientId(wechatId,patient);
 | 
	
		
			
				|  |  |         List<WlyyHospitalSysDictDO> wlyyHospitalSysDictDOS = wlyyHospitalSysDictDao.findByDictCode("White_list");
 | 
	
	
		
			
				|  | @ -6800,6 +6819,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |         }else {
 | 
	
		
			
				|  |  |             rs.put("openid","");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         return rs;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 |