|  | @ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONArray;
 | 
	
		
			
				|  |  | import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | import com.yihu.jw.doctor.dao.BaseDoctorDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.org.BaseOrgDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.wx.WxAccessTokenDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.wx.WxTemplateConfigDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.care.doorCoach.BaseDoorCoachOrderDO;
 | 
	
	
		
			
				|  | @ -12,6 +13,7 @@ import com.yihu.jw.entity.care.lifeCare.LifeCareOrderDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.care.securitymonitoring.SecurityMonitoringOrderDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.hospital.message.SystemMessageDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.message.dao.SystemMessageDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.org.dao.BaseOrgDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.patient.dao.BasePatientDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.sms.service.TXYSmsService;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.http.HttpClientUtil;
 | 
	
	
		
			
				|  | @ -27,6 +29,7 @@ import org.springframework.beans.BeanUtils;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Value;
 | 
	
		
			
				|  |  | import org.springframework.jdbc.core.JdbcTemplate;
 | 
	
		
			
				|  |  | import org.springframework.scheduling.annotation.Async;
 | 
	
		
			
				|  |  | import org.springframework.stereotype.Component;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import java.util.Date;
 | 
	
	
		
			
				|  | @ -62,10 +65,23 @@ public class MessageUtil {
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private BasePatientDao basePatientDao;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private BaseOrgDao orgDao;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private TXYSmsService txySmsService;
 | 
	
		
			
				|  |  |     //发送微信模板消息
 | 
	
		
			
				|  |  |     private  String sendMessageUrl = "http://172.16.100.37:8090/hospitalPortal-sms/sms/sendMessage";
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 您好{1}有一条新的在线报名申请,请及时前往APP消息应用进行处理。
 | 
	
		
			
				|  |  |      * @param orgCode
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @Async
 | 
	
		
			
				|  |  |     public void sendOnlineRegistSms(String orgCode){
 | 
	
		
			
				|  |  |         BaseOrgDO orgDO = orgDao.findByCode(orgCode);
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(orgDO.getMobile())){
 | 
	
		
			
				|  |  |             sendTXYSJson("976005",orgDO.getMobile(),orgDO.getName());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      *
 | 
	
	
		
			
				|  | @ -153,9 +169,7 @@ public class MessageUtil {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public String sendTXYSJson(String templateCode,String mobile,String ...params)throws Exception{
 | 
	
		
			
				|  |  |         //974597 未回复消息通知 短信内容 -- {1}您好,您的云照护平台有{2}条信息未回复,请及时处理。
 | 
	
		
			
				|  |  |         //974603 上门辅导通知 您有一条新的上门辅导申请,请进入调度平台处理。
 | 
	
		
			
				|  |  |     public String sendTXYSJson(String templateCode,String mobile,String ...params){
 | 
	
		
			
				|  |  |         JSONObject sendObj = new JSONObject();
 | 
	
		
			
				|  |  |         sendObj.put("templateCode",templateCode);
 | 
	
		
			
				|  |  |         if (params.length>0){
 | 
	
	
		
			
				|  | @ -165,7 +179,7 @@ public class MessageUtil {
 | 
	
		
			
				|  |  |             JSONArray paramArr =new JSONArray();
 | 
	
		
			
				|  |  |             sendObj.put("templateParamArr",paramArr);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return txySmsService.sendMessageJson(mobile,sendObj.toJSONString());
 | 
	
		
			
				|  |  |         return txySmsService.sendMessageJson(mobile,sendObj);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public WxTemplateConfigDO setTemPlateUrl(WxTemplateConfigDO wxTemplateConfigDO,Integer type,String openid,JSONObject json){
 |