| 
					
				 | 
			
			
				@ -66,10 +66,10 @@ public class ZhaohuiDailyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                          // NOT IN (SELECT dict_code FROM wlyy_hospital_sys_dict WHERE `dict_name` = 'jkzl_older') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    //获取所有老人 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private List<BasePatientDO> olds() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = "SELECT * FROM base_patient WHERE archive_type =1 AND sign_status =1  AND del = 1  AND id NOT IN (SELECT dict_code FROM wlyy_hospital_sys_dict WHERE `dict_name` = 'jkzl_older')"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = "SELECT * FROM base_patient WHERE archive_type =1 AND sign_status =1  AND del = 1  AND id = '808080eb78d3ce030178edeb4346002b'"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<BasePatientDO> query = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(BasePatientDO.class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return query; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -78,7 +78,7 @@ public class ZhaohuiDailyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    //老人家属 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private void getOldFamily(BasePatientDO old) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = "select family_member from base_patient_family_member where patient ='" + old.getId() + "' and del = 1 "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = "select family_member from base_patient_family_member where patient ='" + old.getId() + "' and family_member = '8a92aba97d329802017d32f08fa20047' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<Map<String, Object>> list = jdbcTemplate.queryForList(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        for (Map<String, Object> map : list) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             getFamilyOldInfo(old,map.get("family_member").toString()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -102,8 +102,8 @@ public class ZhaohuiDailyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String oldId = old.getId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String date = DateUtil.getStringDateShort(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String stateDate = "2022-11-17" + " 00:00:00"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String endDate = "2022-11-17" + " 23:59:59"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String stateDate = date + " 00:00:00"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String endDate = date + " 23:59:59"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sex = old.getSex()==1?"爷爷":"奶奶"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -383,9 +383,9 @@ public class ZhaohuiDailyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (name.equals("姜云")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                String first = "您好,您的亲属【" + name + "】今日照护日报已生成"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                String content = "紧急预警:" + eme + "\r\n生活照料:" + lift + ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                String url = "https://zhyzh.gongshu.gov.cn/medical-care-patient/healthRecords/index?active=1"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                String url = "https://zhyzh.gongshu.gov.cn/medical-care-patient/message/daily"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //o_DJs59V7MKJ5ea-YW__LoccEn50 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                messageUtil.putTemplateWxMessage(wxId, "template_system_family", "jsxtxx", list.get(0).get("openid").toString(), first, url, null, 1, null, content, "【推送完成】", com.yihu.jw.util.date.DateUtil.getStringDate()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                messageUtil.putTemplateWxMessage(wxId, "template_system_family", "jsxtxx", "o_DJs59V7MKJ5ea-YW__LoccEn50", first, url, null, 1, null, content, "【推送完成】", com.yihu.jw.util.date.DateUtil.getStringDate()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 |