|
@ -154,13 +154,13 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
" a.type =2 and " +
|
|
|
" status in (1,2) and " +
|
|
|
" a.expenses_time< '" + tomorrow + "' and " +
|
|
|
" a.expenses_time >'"+Constant.getStartTimeByDate(tomorrow)+Constant.quota_date_last+"' " +
|
|
|
" and a.expenses_status=1 ";
|
|
|
" a.sign_year ='"+Constant.getNowYearByDateYeaterday(tomorrow)+"' and " +
|
|
|
" a.expenses_status=1 ";
|
|
|
String sqlCount = " select count(id) from wlyy_sign_family a where " +
|
|
|
" a.type =2 and " +
|
|
|
" status in (1,2) and " +
|
|
|
" a.expenses_time< '" + tomorrow + "' and " +
|
|
|
" a.expenses_time >'"+Constant.getStartTimeByDate(tomorrow)+Constant.quota_date_last+"' and " +
|
|
|
" a.sign_year ='"+Constant.getNowYearByDateYeaterday(tomorrow)+"' and " +
|
|
|
" a.expenses_status=1 ";
|
|
|
|
|
|
//抽取數據
|
|
@ -191,7 +191,6 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
computequota_26();//统计未缴费签约总数
|
|
|
computequota_27();//统计代预约量
|
|
|
computequota_28();//统计平均值
|
|
|
// computequota_29(); //统计续签 没用
|
|
|
computequota_31(); //统计续签夸团队
|
|
|
computequota_32(); //统计续签夸社区
|
|
|
computequota_33(); //统计续签夸区
|
|
@ -206,6 +205,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
computequota_42(); //统计团队续签
|
|
|
computequota_43(); //统计社区续签
|
|
|
computequota_44(); //统计区续签
|
|
|
computequota_29(); //统计市级续签
|
|
|
//computequota_45(); //统计社区转签 没用指标
|
|
|
//computequota_46(); //统计区转签 没用指标
|
|
|
computequota_30(); //统计团队续签原因
|
|
@ -748,8 +748,18 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_16_1(String sql, List<SignFamily> signFamilies_1, List<SignFamily> deleteSignFamilies) {
|
|
|
String quotaId = "16";
|
|
|
try {
|
|
|
sql = " select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where a.type =2 and (expenses_status !=1 or expenses_status is null) and status in (1,2) and a.apply_date< '" + tomorrow + "' ";
|
|
|
String sqlCount = " select count(id) from wlyy_sign_family a where a.type =2 and (expenses_status !=1 or expenses_status is null) and status in (1,2) and a.apply_date< '" + tomorrow + "' ";
|
|
|
sql = " select id,code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where " +
|
|
|
"a.type =2 and " +
|
|
|
" (expenses_status !=1 or expenses_status is null) and " +
|
|
|
" status in (1,2) and " +
|
|
|
" a.sign_year ='"+Constant.getNowYearByDateYeaterday(tomorrow)+"' and " +
|
|
|
" a.apply_date< '" + tomorrow + "' ";
|
|
|
String sqlCount = " select count(id) from wlyy_sign_family a where " +
|
|
|
" a.type =2 and " +
|
|
|
" (expenses_status !=1 or expenses_status is null) and " +
|
|
|
" status in (1,2) and " +
|
|
|
" a.sign_year ='"+Constant.getNowYearByDateYeaterday(tomorrow)+"' and " +
|
|
|
" a.apply_date< '" + tomorrow + "' ";
|
|
|
List<SignFamily> signFamilies_2 = SpringUtil.getBean(DBExtract.class).extractByPage(SignFamily.class, sql, sqlCount, true);
|
|
|
signFamilies_2.addAll(signFamilies_1);
|
|
|
//清洗數據
|
|
@ -1228,8 +1238,11 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_29() {
|
|
|
String quotaId = "29";
|
|
|
try {
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id from wlyy_sign_family_renew_log fr where fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "'";
|
|
|
//抽取數據
|
|
|
String sql=" select fr.sign_code code,fr.old_hospital hospital,fr.old_admin_team_id admin_team_id from wlyy_sign_family_renew_log fr where " +
|
|
|
" fr.apply_date<'"+ tomorrow+"' and " +
|
|
|
" fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "' and " +
|
|
|
" LENGTH(fr.hospital)=10 and " +
|
|
|
" LENGTH(fr.old_hospital)=10 "; //抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies, sql, "now");
|
|
@ -1559,7 +1572,12 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_44() {
|
|
|
String quotaId = "44";
|
|
|
try {
|
|
|
String sql=" select fr.sign_code code,fr.old_hospital hospital,fr.old_admin_team_id admin_team_id from wlyy_sign_family_renew_log fr where fr.apply_date<'"+ tomorrow+"' and fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "' and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6) and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10 ";
|
|
|
String sql=" select fr.sign_code code,fr.old_hospital hospital,fr.old_admin_team_id admin_team_id from wlyy_sign_family_renew_log fr where " +
|
|
|
" fr.apply_date<'"+ tomorrow+"' and " +
|
|
|
" fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "' and " +
|
|
|
" LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6) and " +
|
|
|
" LENGTH(fr.hospital)=10 and " +
|
|
|
" LENGTH(fr.old_hospital)=10 ";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|