|  | @ -5,7 +5,6 @@ import com.yihu.wlyy.statistics.etl.model.ETLModel;
 | 
												
													
														
															|  | import com.yihu.wlyy.statistics.etl.role.*;
 |  | import com.yihu.wlyy.statistics.etl.role.*;
 | 
												
													
														
															|  | import com.yihu.wlyy.statistics.etl.storage.RedisStorage;
 |  | import com.yihu.wlyy.statistics.etl.storage.RedisStorage;
 | 
												
													
														
															|  | import com.yihu.wlyy.statistics.model.consult.ConsultTeam;
 |  | import com.yihu.wlyy.statistics.model.consult.ConsultTeam;
 | 
												
													
														
															|  | import com.yihu.wlyy.statistics.model.doctor.DoctorPatientGroupInfo;
 |  | 
 | 
												
													
														
															|  | import com.yihu.wlyy.statistics.model.hosptial.Hospital;
 |  | import com.yihu.wlyy.statistics.model.hosptial.Hospital;
 | 
												
													
														
															|  | import com.yihu.wlyy.statistics.model.job.QuartzJobLog;
 |  | import com.yihu.wlyy.statistics.model.job.QuartzJobLog;
 | 
												
													
														
															|  | import com.yihu.wlyy.statistics.model.label.SignPatientLabelInfo;
 |  | import com.yihu.wlyy.statistics.model.label.SignPatientLabelInfo;
 | 
												
											
												
													
														
															|  | @ -60,10 +59,6 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
													
														
															|  |     private Level2Role level2Role;
 |  |     private Level2Role level2Role;
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
													
														
															|  |     private PatientAgeRole patientAgeRole;
 |  | 
 | 
												
													
														
															|  |     @Autowired
 |  | 
 | 
												
													
														
															|  |     private PatientSexRole patientSexRole;
 |  | 
 | 
												
													
														
															|  |     @Autowired
 |  | 
 | 
												
													
														
															|  |     private RedisStorage redisStorage;
 |  |     private RedisStorage redisStorage;
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
													
														
															|  |     private SignPatientLabelInfoDao signPatientLabelInfoDao;
 |  |     private SignPatientLabelInfoDao signPatientLabelInfoDao;
 | 
												
											
												
													
														
															|  | @ -162,7 +157,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |         errorContent=new StringBuffer();
 |  |         errorContent=new StringBuffer();
 | 
												
													
														
															|  |         String quotaId="14";
 |  |         String quotaId="14";
 | 
												
													
														
															|  |         //找出今天的签约信息
 |  |         //找出今天的签约信息
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2 and a.status =1 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2  and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Long cityCount = new Long(0L); //统计到市的数目
 |  |         Long cityCount = new Long(0L); //统计到市的数目
 | 
												
											
												
													
														
															|  | @ -265,7 +260,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |     private void computequota_13() {
 |  |     private void computequota_13() {
 | 
												
													
														
															|  |         errorContent=new StringBuffer();
 |  |         errorContent=new StringBuffer();
 | 
												
													
														
															|  |         //找出今天的签约信息 yesterday,now
 |  |         //找出今天的签约信息 yesterday,now
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where  a.type =2 and a.status =1 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where  a.type =2  and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  |         Long cityCount = new Long(0L); //统计到市的数目
 |  |         Long cityCount = new Long(0L); //统计到市的数目
 | 
												
													
														
															|  |         Long townCount = new Long(0L); //统计到所有区的数目
 |  |         Long townCount = new Long(0L); //统计到所有区的数目
 | 
												
											
												
													
														
															|  | @ -367,7 +362,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |         errorContent=new StringBuffer();
 |  |         errorContent=new StringBuffer();
 | 
												
													
														
															|  |         String quotaId="16";
 |  |         String quotaId="16";
 | 
												
													
														
															|  |         //找出今天的签约信息
 |  |         //找出今天的签约信息
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2 and a.status =1 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2  and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Long cityCount = new Long(0L); //统计到市的数目
 |  |         Long cityCount = new Long(0L); //统计到市的数目
 | 
												
											
												
													
														
															|  | @ -471,7 +466,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |         errorContent=new StringBuffer();
 |  |         errorContent=new StringBuffer();
 | 
												
													
														
															|  |         String quotaId="15";
 |  |         String quotaId="15";
 | 
												
													
														
															|  |         //找出今天的签约信息
 |  |         //找出今天的签约信息
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where  a.type =2 and a.status =1 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where  a.type =2 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Long cityCount = new Long(0L); //统计到市的数目
 |  |         Long cityCount = new Long(0L); //统计到市的数目
 | 
												
											
												
													
														
															|  | @ -594,7 +589,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |             townsMap.put(town.getCode(), town);
 |  |             townsMap.put(town.getCode(), town);
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         //找出今天的签约信息
 |  |         //找出今天的签约信息
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where  a.type =2 and a.status =1 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where  a.type =2 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  |         //数组里面第一个是健康人群 第二个是慢病人群 第三个是65岁以上人群
 |  |         //数组里面第一个是健康人群 第二个是慢病人群 第三个是65岁以上人群
 | 
												
													
														
															|  |         Map<String, Map<String, Map>> cityAgeMap = new HashMap<String, Map<String, Map>>();//key是市行政代码 目前只有厦门市
 |  |         Map<String, Map<String, Map>> cityAgeMap = new HashMap<String, Map<String, Map>>();//key是市行政代码 目前只有厦门市
 | 
												
											
												
													
														
															|  | @ -849,7 +844,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |     private void computequota_1() {
 |  |     private void computequota_1() {
 | 
												
													
														
															|  |          errorContent=new StringBuffer();
 |  |          errorContent=new StringBuffer();
 | 
												
													
														
															|  |         //找出今天的签约信息 yesterday,now
 |  |         //找出今天的签约信息 yesterday,now
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where  a.type =2 and a.status =1 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where  a.type =2 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  |         Long cityCount = new Long(0L); //统计到市的数目
 |  |         Long cityCount = new Long(0L); //统计到市的数目
 | 
												
													
														
															|  |         Long townCount = new Long(0L); //统计到所有区的数目
 |  |         Long townCount = new Long(0L); //统计到所有区的数目
 | 
												
											
												
													
														
															|  | @ -951,7 +946,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |          errorContent=new StringBuffer();
 |  |          errorContent=new StringBuffer();
 | 
												
													
														
															|  |         String quotaId="2";
 |  |         String quotaId="2";
 | 
												
													
														
															|  |         //找出今天的解约信息
 |  |         //找出今天的解约信息
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2 and a.status in (-3,-4) and  a.apply_unsign_date>= '"+now+"' and  a.apply_unsign_date< '"+tomorrow+"' and a.expenses_status=1 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2 and  a.apply_unsign_date>= '"+now+"' and  a.apply_unsign_date< '"+tomorrow+"' and a.expenses_status=1 ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Long cityCount = new Long(0L); //统计到市的数目
 |  |         Long cityCount = new Long(0L); //统计到市的数目
 | 
												
											
												
													
														
															|  | @ -1098,7 +1093,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |             //统计区 ---------------start--------------
 |  |             //统计区 ---------------start--------------
 | 
												
													
														
															|  |             Hospital hospital=hospitalsMap.get(orgCodeTemp);
 |  |             Hospital hospital=hospitalsMap.get(orgCodeTemp);
 | 
												
													
														
															|  |             if(hospital == null) {
 |  |             if(hospital == null) {
 | 
												
													
														
															|  |                 errorContent.append("咨询Id:"+consultTeam.getId()+",机构Id:"+hospital.getId()+",医生团队的机构不存在");
 |  | 
 | 
												
													
														
															|  | 
 |  |                 errorContent.append("咨询Id:"+consultTeam.getId()+",机构Id:,医生团队的机构不存在");
 | 
												
													
														
															|  |                 isAll=false;
 |  |                 isAll=false;
 | 
												
													
														
															|  |                 continue;
 |  |                 continue;
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
											
												
													
														
															|  | @ -1163,7 +1158,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  |             SignFamily signFamily=signFamilyDao.findByIdcard(idCard.toString());
 |  |             SignFamily signFamily=signFamilyDao.findByIdcard(idCard.toString());
 | 
												
													
														
															|  |             if(signFamily==null){
 |  |             if(signFamily==null){
 | 
												
													
														
															|  |                 errorContent.append("随访id:"+plan.get("id")+",签约code:"+signFamily.getCode()+",随访中的患者身份证在签约表中找不到数据");
 |  | 
 | 
												
													
														
															|  | 
 |  |                 errorContent.append("随访id:"+plan.get("id")+",签约code:随访中的患者身份证在签约表中找不到数据");
 | 
												
													
														
															|  |                 isAll=false;
 |  |                 isAll=false;
 | 
												
													
														
															|  |                 continue;
 |  |                 continue;
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
											
												
													
														
															|  | @ -1343,7 +1338,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |         errorContent=new StringBuffer();
 |  |         errorContent=new StringBuffer();
 | 
												
													
														
															|  |         String quotaId="6";
 |  |         String quotaId="6";
 | 
												
													
														
															|  |         //找出今天的签约信息
 |  |         //找出今天的签约信息
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2 and a.status =1 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Long cityCount = new Long(0L); //统计到市的数目
 |  |         Long cityCount = new Long(0L); //统计到市的数目
 | 
												
											
												
													
														
															|  | @ -1415,11 +1410,14 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |                 errorCount++;
 |  |                 errorCount++;
 | 
												
													
														
															|  |                 continue;
 |  |                 continue;
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  | 
 |  |             String sex= IdCardUtil.getSexForIdcard(signFamily.getIdcard());
 | 
												
													
														
															|  | 
 |  |             if("3".equals(sex)){
 | 
												
													
														
															|  | 
 |  |                 errorContent.append("签约code:"+signFamily.getCode()+",IdCard解析错误,分到未知的组里");
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  |             etlModel.setHospital(orgCodeTemp);
 |  |             etlModel.setHospital(orgCodeTemp);
 | 
												
													
														
															|  |             etlModel.setTown(hospital.getTown());
 |  |             etlModel.setTown(hospital.getTown());
 | 
												
													
														
															|  |             etlModel.setCity(Constant.city);
 |  |             etlModel.setCity(Constant.city);
 | 
												
													
														
															|  |             etlModel.setAdminTeam(signFamily.getAdminTeamCode()+"");
 |  |             etlModel.setAdminTeam(signFamily.getAdminTeamCode()+"");
 | 
												
													
														
															|  |             etlModel.setIdcard(signFamily.getIdcard());
 |  | 
 | 
												
													
														
															|  |             etlModels.add(etlModel);
 |  |             etlModels.add(etlModel);
 | 
												
													
														
															|  |             //统计数目+1
 |  |             //统计数目+1
 | 
												
													
														
															|  |             cityCount++;
 |  |             cityCount++;
 | 
												
											
												
													
														
															|  | @ -1431,7 +1429,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |         try{
 |  |         try{
 | 
												
													
														
															|  |             //统计数据
 |  |             //统计数据
 | 
												
													
														
															|  |             List<Map<String, List<ETLModel>>>  returnData1s= levelRole.elt(etlModels);
 |  |             List<Map<String, List<ETLModel>>>  returnData1s= levelRole.elt(etlModels);
 | 
												
													
														
															|  |             List<Map<String, Map<String, List<ETLModel>>>> patientSexRoleData= patientSexRole.elt(returnData1s);
 |  | 
 | 
												
													
														
															|  | 
 |  |             List<Map<String, Map<String, List<ETLModel>>>> patientSexRoleData= level2Role.elt(returnData1s);
 | 
												
													
														
															|  |             //保存数据
 |  |             //保存数据
 | 
												
													
														
															|  |             redisStorage.saveByLevel2(patientSexRoleData,quotaId,3,1);
 |  |             redisStorage.saveByLevel2(patientSexRoleData,quotaId,3,1);
 | 
												
													
														
															|  |         }catch (Exception e){
 |  |         }catch (Exception e){
 | 
												
											
												
													
														
															|  | @ -1464,7 +1462,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |             townsMap.put(town.getCode(), town);
 |  |             townsMap.put(town.getCode(), town);
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         //找出今天的解约信息
 |  |         //找出今天的解约信息
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2 and a.status =1 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Long cityCount = new Long(0L); //统计到市的数目
 |  |         Long cityCount = new Long(0L); //统计到市的数目
 | 
												
											
												
													
														
															|  | @ -1603,7 +1601,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |          errorContent=new StringBuffer();
 |  |          errorContent=new StringBuffer();
 | 
												
													
														
															|  |         String quotaId="8";
 |  |         String quotaId="8";
 | 
												
													
														
															|  |         //找出今天的签约信息
 |  |         //找出今天的签约信息
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2 and a.status =1 and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where  a.type =2  and  a.apply_date>= '"+now+"' and  a.apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  |         Long cityCount = new Long(0L); //统计到市的数目
 |  |         Long cityCount = new Long(0L); //统计到市的数目
 | 
												
													
														
															|  |         Long townCount = new Long(0L); //统计到所有区的数目
 |  |         Long townCount = new Long(0L); //统计到所有区的数目
 | 
												
											
												
													
														
															|  | @ -1674,11 +1672,12 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |                 errorCount++;
 |  |                 errorCount++;
 | 
												
													
														
															|  |                 continue;
 |  |                 continue;
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  | 
 |  |             int age=IdCardUtil.getAgeForIdcard(signFamily.getIdcard());
 | 
												
													
														
															|  | 
 |  |             etlModel.setLevel2Key(age+"");
 | 
												
													
														
															|  |             etlModel.setHospital(orgCodeTemp);
 |  |             etlModel.setHospital(orgCodeTemp);
 | 
												
													
														
															|  |             etlModel.setAdminTeam(signFamily.getAdminTeamCode()+"");
 |  |             etlModel.setAdminTeam(signFamily.getAdminTeamCode()+"");
 | 
												
													
														
															|  |             etlModel.setTown(hospital.getTown());
 |  |             etlModel.setTown(hospital.getTown());
 | 
												
													
														
															|  |             etlModel.setCity(Constant.city);
 |  |             etlModel.setCity(Constant.city);
 | 
												
													
														
															|  |             etlModel.setIdcard(signFamily.getIdcard());
 |  | 
 | 
												
													
														
															|  |             etlModels.add(etlModel);
 |  |             etlModels.add(etlModel);
 | 
												
													
														
															|  |             //统计数目+1
 |  |             //统计数目+1
 | 
												
													
														
															|  |             cityCount++;
 |  |             cityCount++;
 | 
												
											
												
													
														
															|  | @ -1690,7 +1689,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |         try{
 |  |         try{
 | 
												
													
														
															|  |             //统计数据
 |  |             //统计数据
 | 
												
													
														
															|  |             List<Map<String, List<ETLModel>>>  returnData1s= levelRole.elt(etlModels);
 |  |             List<Map<String, List<ETLModel>>>  returnData1s= levelRole.elt(etlModels);
 | 
												
													
														
															|  |             List<Map<String, Map<String, List<ETLModel>>>> patientAgeRoleData= patientAgeRole.elt(returnData1s);
 |  | 
 | 
												
													
														
															|  | 
 |  |             List<Map<String, Map<String, List<ETLModel>>>> patientAgeRoleData= level2Role.elt(returnData1s);
 | 
												
													
														
															|  |             //保存数据
 |  |             //保存数据
 | 
												
													
														
															|  |             redisStorage.saveByLevel2(patientAgeRoleData,quotaId,6,2);
 |  |             redisStorage.saveByLevel2(patientAgeRoleData,quotaId,6,2);
 | 
												
													
														
															|  |         }catch (Exception e){
 |  |         }catch (Exception e){
 | 
												
											
												
													
														
															|  | @ -1705,7 +1704,7 @@ public class CurrentDayAllQuotaJob implements Job {
 | 
												
													
														
															|  |          errorContent=new StringBuffer();
 |  |          errorContent=new StringBuffer();
 | 
												
													
														
															|  |         String quotaId="9";
 |  |         String quotaId="9";
 | 
												
													
														
															|  |         //找出今天的待签约信息
 |  |         //找出今天的待签约信息
 | 
												
													
														
															|  |         String sql=" select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where  a.type =2 and a.status =0  and  a.patient_apply_date>= '"+now+"' and  a.patient_apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql=" select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where  a.type =2   and  a.patient_apply_date>= '"+now+"' and  a.patient_apply_date< '"+tomorrow+"' and a.expenses_status=1 ";
 | 
												
													
														
															|  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 |  |         List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Long cityCount = new Long(0L); //统计到市的数目
 |  |         Long cityCount = new Long(0L); //统计到市的数目
 |