|  | @ -8,10 +8,12 @@ import com.yihu.jw.entity.base.im.ConsultTeamDo;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.patient.BasePatientDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.wx.WxWechatDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.hospital.message.SystemMessageDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.order.BusinessOrderDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.file_upload.FileUploadService;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.prescription.service.PrescriptionService;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.service.SystemMessage.HospitalSystemMessageService;
 | 
	
		
			
				|  |  | import com.yihu.jw.im.service.ImService;
 | 
	
		
			
				|  |  | import com.yihu.jw.order.BusinessOrderService;
 | 
	
		
			
				|  |  | import com.yihu.jw.patient.dao.BasePatientDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.patient.service.BasePatientService;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.im.ConsultVO;
 | 
	
	
		
			
				|  | @ -86,6 +88,9 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 	
 | 
	
		
			
				|  |  | 	@Autowired
 | 
	
		
			
				|  |  | 	FileUploadService fileUploadService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 	@Autowired
 | 
	
		
			
				|  |  | 	private BusinessOrderService businessOrderService;
 | 
	
		
			
				|  |  | 	
 | 
	
		
			
				|  |  | 	public FileUtil fileUtil;
 | 
	
		
			
				|  |  | 	
 | 
	
	
		
			
				|  | @ -100,6 +105,9 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 	
 | 
	
		
			
				|  |  | 	@Value("${qywx.id}")
 | 
	
		
			
				|  |  | 	private String qywxId;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 	@Value("${wechat.id}")
 | 
	
		
			
				|  |  | 	private String wxId;
 | 
	
		
			
				|  |  | 	
 | 
	
		
			
				|  |  | 	@GetMapping(value = BaseHospitalRequestMapping.PatientIM.records)
 | 
	
		
			
				|  |  | 	@ApiOperation(value = "患者咨询记录查询")
 | 
	
	
		
			
				|  | @ -412,9 +420,32 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 			data.put("type",1);
 | 
	
		
			
				|  |  | 			systemMessageDO.setData(data.toString());
 | 
	
		
			
				|  |  | 			hospitalSystemMessageService.saveMessage(systemMessageDO);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 			BaseDoctorDO d = baseDoctorDao.findById(re.getString("doctor"));
 | 
	
		
			
				|  |  | 			BasePatientDO p = basePatientDao.findById(re.getString("patient"));
 | 
	
		
			
				|  |  | 			/*//眼科支付订单
 | 
	
		
			
				|  |  | 			if (wxId.equalsIgnoreCase("xm_ykyy_wx")){
 | 
	
		
			
				|  |  | 				if (type==1||type==2){
 | 
	
		
			
				|  |  | 					BusinessOrderDO businessOrderDO = new BusinessOrderDO();
 | 
	
		
			
				|  |  | 					businessOrderDO.setDoctor(doctor);
 | 
	
		
			
				|  |  | 					businessOrderDO.setPatient(patient);
 | 
	
		
			
				|  |  | 					businessOrderDO.setPatientName(re.getString("patientName"));
 | 
	
		
			
				|  |  | 					businessOrderDO.setDescription("专家咨询费");
 | 
	
		
			
				|  |  | 					businessOrderDO.setOrderCategory("1");
 | 
	
		
			
				|  |  | 					if (type==1){
 | 
	
		
			
				|  |  | 						businessOrderDO.setOrderType(1);
 | 
	
		
			
				|  |  | 					}else if (type==17){
 | 
	
		
			
				|  |  | 						businessOrderDO.setOrderType(3);
 | 
	
		
			
				|  |  | 						businessOrderDO.setRelationCode(re.getString("consult"));
 | 
	
		
			
				|  |  | 						businessOrderDO.setRelationName("新增专家咨询");
 | 
	
		
			
				|  |  | 					}
 | 
	
		
			
				|  |  | 					businessOrderService.saveOrder(businessOrderDO);
 | 
	
		
			
				|  |  | 				}
 | 
	
		
			
				|  |  | 			}*/
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 			//发送企业号推送
 | 
	
		
			
				|  |  | 			try{
 | 
	
		
			
				|  |  | 				
 |