|
@ -162,7 +162,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
errorContent=new StringBuffer();
|
|
|
String quotaId="14";
|
|
|
//找出今天的签约信息
|
|
|
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+"' ";
|
|
|
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+"' ";
|
|
|
List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
|
|
|
|
|
|
Long cityCount = new Long(0L); //统计到市的数目
|
|
@ -234,9 +234,11 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
errorCount++;
|
|
|
continue;
|
|
|
}
|
|
|
etlModel.setAdminTeam(signFamily.getAdminTeamCode()+"");
|
|
|
etlModel.setHospital(orgCodeTemp);
|
|
|
etlModel.setTown(hospital.getTown());
|
|
|
etlModel.setCity(Constant.city);
|
|
|
etlModel.setSignExpensesStatus(signFamily.getExpensesStatus());
|
|
|
etlModel.setIdcard(signFamily.getIdcard());
|
|
|
etlModels.add(etlModel);
|
|
|
//统计数目+1
|
|
@ -365,7 +367,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
errorContent=new StringBuffer();
|
|
|
String quotaId="16";
|
|
|
//找出今天的签约信息
|
|
|
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+"' ";
|
|
|
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+"' ";
|
|
|
List<SignFamily> signFamilys = jdbcTemplate.query(sql,new BeanPropertyRowMapper(SignFamily .class));
|
|
|
|
|
|
Long cityCount = new Long(0L); //统计到市的数目
|
|
@ -437,9 +439,11 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
errorCount++;
|
|
|
continue;
|
|
|
}
|
|
|
etlModel.setAdminTeam(signFamily.getAdminTeamCode()+"");
|
|
|
etlModel.setHospital(orgCodeTemp);
|
|
|
etlModel.setTown(hospital.getTown());
|
|
|
etlModel.setCity(Constant.city);
|
|
|
etlModel.setSignExpensesStatus(signFamily.getExpensesStatus());
|
|
|
etlModel.setIdcard(signFamily.getIdcard());
|
|
|
etlModels.add(etlModel);
|
|
|
//统计数目+1
|
|
@ -547,6 +551,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
}
|
|
|
etlModel.setLevel2Key(level2Key);//设置二级维度的Key
|
|
|
etlModel.setHospital(orgCodeTemp);
|
|
|
etlModel.setAdminTeam(signFamily.getAdminTeamCode()+"");
|
|
|
etlModel.setTown(hospital.getTown());
|
|
|
etlModel.setCity(Constant.city);
|
|
|
etlModel.setIdcard(signFamily.getIdcard());
|
|
@ -1413,6 +1418,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
etlModel.setHospital(orgCodeTemp);
|
|
|
etlModel.setTown(hospital.getTown());
|
|
|
etlModel.setCity(Constant.city);
|
|
|
etlModel.setAdminTeam(signFamily.getAdminTeamCode()+"");
|
|
|
etlModel.setIdcard(signFamily.getIdcard());
|
|
|
etlModels.add(etlModel);
|
|
|
//统计数目+1
|
|
@ -1669,6 +1675,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
continue;
|
|
|
}
|
|
|
etlModel.setHospital(orgCodeTemp);
|
|
|
etlModel.setAdminTeam(signFamily.getAdminTeamCode()+"");
|
|
|
etlModel.setTown(hospital.getTown());
|
|
|
etlModel.setCity(Constant.city);
|
|
|
etlModel.setIdcard(signFamily.getIdcard());
|
|
@ -1964,7 +1971,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
}
|
|
|
}
|
|
|
private String saveContent(String id,Integer size, Long qkCount, Long orgCount, Long townCount, Long cityCount, boolean isAll, StringBuffer errorContent,Long errorCount) {
|
|
|
StringBuffer string=new StringBuffer("统计 quotaid:"+id+" 的数据完成 ,数据库查询到改签数目:"+size);
|
|
|
StringBuffer string=new StringBuffer("统计 quotaid:"+id+" 的数据完成 ,数据库查询到签约数目:"+size);
|
|
|
string.append(",过滤的脏数据数目:"+errorCount);
|
|
|
string.append(",统计到市的数据总数:"+cityCount);
|
|
|
string.append(",统计到区的数据总数:"+townCount);
|