|  | @ -4659,7 +4659,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                         rs.put("is_prescribe",0);
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }else {
 | 
	
		
			
				|  |  |                     String isPrescribe =healthCareService.doctorAuthentication(doctorDO.getId());
 | 
	
		
			
				|  |  |                     String isPrescribe =healthCareNewService.doctorAuthentication(doctorDO.getId());
 | 
	
		
			
				|  |  |                     if (StringUtils.isNoneBlank(isPrescribe)){
 | 
	
		
			
				|  |  |                         rs.put("is_prescribe", isPrescribe);//is_prescribe	是否具备处方权	1-有处方权,0无处方权
 | 
	
		
			
				|  |  |                     }else {
 | 
	
	
		
			
				|  | @ -5137,8 +5137,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                     }else {
 | 
	
		
			
				|  |  |                         rs.put("is_prescribe",0);
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }else {
 | 
	
		
			
				|  |  |                 }else if (wechatId.equalsIgnoreCase("xm_zsyy_wx")){
 | 
	
		
			
				|  |  |                     rs.put("is_prescribe", healthCareService.doctorAuthentication(doctorDO.getId()));//is_prescribe	是否具备处方权	1-有处方权,0无处方权
 | 
	
		
			
				|  |  |                 }else {
 | 
	
		
			
				|  |  |                     rs.put("is_prescribe", healthCareNewService.doctorAuthentication(doctorDO.getId()));//is_prescribe	是否具备处方权	1-有处方权,0无处方权
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }else{
 | 
	
		
			
				|  |  |                 rs.put("is_prescribe", 0);//is_prescribe	是否具备处方权	1-有处方权,0无处方权
 | 
	
	
		
			
				|  | @ -7961,7 +7963,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                         basePatientDO.setMedicalState(state);
 | 
	
		
			
				|  |  |                         basePatientDO = basePatientDao.save(basePatientDO);
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }else {
 | 
	
		
			
				|  |  |                 }else if (wechatId.equalsIgnoreCase("xm_zsyy_wx")){
 | 
	
		
			
				|  |  |                     String result = healthCareService.authorized(basePatientDO.getId());
 | 
	
		
			
				|  |  |                     com.alibaba.fastjson.JSONObject object = com.alibaba.fastjson.JSONObject.parseObject(result);
 | 
	
		
			
				|  |  |                     if (object.getString("flag").equalsIgnoreCase("1")){
 | 
	
	
		
			
				|  | @ -7971,6 +7973,16 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                         basePatientDO.setMedicalState(state);
 | 
	
		
			
				|  |  |                         basePatientDO = basePatientDao.save(basePatientDO);
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }else {
 | 
	
		
			
				|  |  |                     String result = healthCareNewService.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();
 |