| 
					
				 | 
			
			
				@ -152,7 +152,7 @@ public class PhysicalExaminationRemindService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray getOldPatientByTeamCode(long teamCode, int page, int pagesize) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray getOldPatientByTeamCode(long teamCode,String doctor, int page, int pagesize) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Map<String, JSONObject> result = new TreeMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<Map<String, Object>> signList = new ArrayList<>(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -169,6 +169,7 @@ public class PhysicalExaminationRemindService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " WHERE " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "     t1.status > 0 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "    AND t1.admin_team_code = ? " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "    AND (t1.doctor = ? or t1.doctor_health = ?) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "    AND (YEAR(curdate()) -IF(length(idcard) = 18,substring(idcard, 7, 4),IF(length(idcard) = 15,concat('19', substring(idcard, 7, 2)),NULL)))>65 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "    AND t1.idcard not in " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "       (SELECT DISTINCT s.idcard " + 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -178,7 +179,7 @@ public class PhysicalExaminationRemindService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "                 and o.medical_time>?)" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " order by t1.openid desc,convert(t1.name using gbk) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        args = new Object[]{teamCode, teamCode, DateUtil.getLastYear()}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        args = new Object[]{teamCode,doctor,doctor, teamCode, DateUtil.getLastYear()}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql = sql + " limit " + start + "," + pagesize; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        signList = jdbcTemplate.queryForList(sql, args); 
			 |