|  | @ -45,6 +45,7 @@ import com.yihu.jw.hospital.mapping.service.PatientMappingService;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.message.service.SystemMessageService;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.prescription.dao.*;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.prescription.service.entrance.EntranceService;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.prescription.service.entrance.XzzxEntranceService;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.prescription.service.entrance.YkyyEntranceService;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.prescription.service.useragent.BaseUserAgent;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.ykyy.service.YkyyService;
 | 
	
	
		
			
				|  | @ -238,6 +239,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |     private BasePatientWechatDao basePatientWechatDao;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private WxPushLogDao wxPushLogDao;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private XzzxEntranceService xzzxEntranceService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Value("${demo.flag}")
 | 
	
	
		
			
				|  | @ -451,7 +454,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |         //复诊信息
 | 
	
		
			
				|  |  |         WlyyOutpatientDO outpatientDO = outpatientDao.findOne(outpatientId);
 | 
	
		
			
				|  |  |         rs.put("outpatient",convertToModel(outpatientDO,WlyyOutpatientVO.class));
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         rs.put("doctorCancelType",outpatientDO.getDoctorCancelType());
 | 
	
		
			
				|  |  |         rs.put("doctorCancelValue",outpatientDO.getDoctorCancelValue());
 | 
	
		
			
				|  |  |         rs.put("doctorCancelRemark",outpatientDO.getDoctorCancelRemark());
 | 
	
		
			
				|  |  |         rs.put("payStatus",outpatientDO.getPayStatus());
 | 
	
		
			
				|  |  |         //居民详情
 | 
	
		
			
				|  |  |         BasePatientDO basePatientDO = basePatientDao.findById(outpatientDO.getPatient());
 | 
	
		
			
				|  |  |         rs.put("patientName",basePatientDO.getName());
 | 
	
	
		
			
				|  | @ -3281,12 +3287,12 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 if ("1".equalsIgnoreCase(wlyyOutpatientDO.getType())){
 | 
	
		
			
				|  |  |                     data.put("type","9");
 | 
	
		
			
				|  |  |                    msg+=wlyyOutpatientDO.getPatientName()+",您好! 您有一个图文复诊已被医生取消,取消原因:"+cancelValue+"。取消说明:"+cancelRemark+"。";
 | 
	
		
			
				|  |  | //                   sendWxTemplateMsg(wechatId,wlyyOutpatientDO,"9");
 | 
	
		
			
				|  |  |                    sendWxTemplateMsg(wechatId,wlyyOutpatientDO,"9");
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 if ("2".equalsIgnoreCase(wlyyOutpatientDO.getType())){
 | 
	
		
			
				|  |  |                     data.put("type","16");
 | 
	
		
			
				|  |  |                     msg+=wlyyOutpatientDO.getPatientName()+",您好! 您有一个视频复诊已被医生取消,取消原因:"+cancelValue+"。取消说明:"+cancelRemark+"。";
 | 
	
		
			
				|  |  | //                    sendWxTemplateMsg(wechatId,wlyyOutpatientDO,"16");
 | 
	
		
			
				|  |  |                     sendWxTemplateMsg(wechatId,wlyyOutpatientDO,"16");
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 data.put("msg",msg);
 | 
	
		
			
				|  |  |                 messageDO.setData(data.toString());
 | 
	
	
		
			
				|  | @ -3369,6 +3375,19 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 wxPushLogDao.save(wxPushLogDO);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             });
 | 
	
		
			
				|  |  |         }else if("xm_xzzx_wx".equalsIgnoreCase(wxId)) {
 | 
	
		
			
				|  |  |             BaseDoctorDO doctorDO = baseDoctorDao.findById(outpatientDO.getDoctor());
 | 
	
		
			
				|  |  |             String MsgUrl="https://www.xmheart.com/ims-wx/index.html#/returnVisit/record?outpatientId="+outpatientDO.getPatient();
 | 
	
		
			
				|  |  |             xzzxEntranceService.sendXCXMes(wxId,
 | 
	
		
			
				|  |  |                    doctorDO.getId(),
 | 
	
		
			
				|  |  |                     doctorDO.getIdcard(),
 | 
	
		
			
				|  |  |                     outpatientDO.getPatientName()+",您好!您的图文咨询已取消",
 | 
	
		
			
				|  |  |                     "通知时间:"+DateUtil.getStringDate(),
 | 
	
		
			
				|  |  |                     "通知内容:您的图文咨询订单已被医生取消,您可重新发起。由于订单取消将不做扣费处理",
 | 
	
		
			
				|  |  |                     MsgUrl,
 | 
	
		
			
				|  |  |                     "wx53f6bb4ac081d840");
 | 
	
		
			
				|  |  |         }else if ("xm_zsyy_wx".equalsIgnoreCase(wxId)){
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 |