| 
					
				 | 
			
			
				@ -53,14 +53,6 @@ public class CurrentDayAllQuotaJob implements Job { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private StringRedisTemplate redisTemplate; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private ConsultTeamDao consultTeamDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private PatientHealthGuidanceDao patientHealthGuidanceDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private DoctorPatientGroupInfoDao doctorPatientGroupInfoDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private PatientDao patientDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private QuartzJobLogDao quartzJobLogDao;//执行日志Dao 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private DoctorAdminTeamDao doctorAdminTeamDao; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -76,11 +68,12 @@ public class CurrentDayAllQuotaJob implements Job { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private RedisStorage redisStorage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private SignPatientLabelInfoDao signPatientLabelInfoDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private JdbcTemplate jdbcTemplate ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private org.apache.tomcat.jdbc.pool.DataSource fvdataSource = new org.apache.tomcat.jdbc.pool.DataSource();//随访数据源 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private JdbcTemplate jdbcTemplate = new JdbcTemplate(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private JdbcTemplate fv_jdbcTemplate = new JdbcTemplate(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    List<Town> towns = null;//厦门市全部的区 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    List<Hospital> hospitals = null;//系统全部的机构 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -113,7 +106,7 @@ public class CurrentDayAllQuotaJob implements Job { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            fvdataSource.setUsername(fv_jdbc_username); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            fvdataSource.setPassword(fv_jdbc_password); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jdbcTemplate.setDataSource(fvdataSource);//初始化随访的数据源 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            fv_jdbcTemplate.setDataSource(fvdataSource);//初始化随访的数据源 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            towns = townDao.findByCityCode(Constant.city); //查找出厦门市全部的区 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            hospitals = hospitalDao.findHospitalzxFWZ(); //查找出系统全部的机构 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            adminTeams=doctorAdminTeamDao.findAllTeam();//查找出系统全部的全科医生 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -133,6 +126,7 @@ public class CurrentDayAllQuotaJob implements Job { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //如果出錯立即重新執行 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JobExecutionException e2 =new JobExecutionException(e); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            e2.setRefireImmediately(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            e.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1248,7 +1242,7 @@ public class CurrentDayAllQuotaJob implements Job { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         errorContent=new StringBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String quotaId="5"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql="SELECT a FROM wlyy_patient_health_guidance a WHERE a.czrq>='"+now+"' and a.czrq< '"+tomorrow+"'"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql="SELECT * FROM wlyy_patient_health_guidance a WHERE a.czrq>='"+now+"' and a.czrq< '"+tomorrow+"'"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<PatientHealthGuidance> patientHealthGuidances = jdbcTemplate.query(sql,new BeanPropertyRowMapper(PatientHealthGuidance .class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Long cityCount = new Long(0L); //统计到市的数目 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Long townCount = new Long(0L); //统计到所有区的数目 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1939,7 +1933,7 @@ public class CurrentDayAllQuotaJob implements Job { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public List<Map<String,Object>> getFvYesterday() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql=" select * from fv_plan a where unix_timestamp(a.update_time)>=unix_timestamp('"+now+"') and unix_timestamp(a.update_time)< unix_timestamp('"+tomorrow+"')  "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return jdbcTemplate.queryForList(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return fv_jdbcTemplate.queryForList(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 |