|
@ -148,8 +148,8 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
quartzJobLog.setJobStartTime(new Date());
|
|
|
allContent = new StringBuffer();
|
|
|
//找出今天的签约信息 yesterday,now
|
|
|
String sql = " select id,code,idcard,hospital,admin_team_code,expenses_status,patient,server_type from wlyy_sign_family a where a.type =2 and status in (1,2) and a.expenses_time< '" + tomorrow + "' and a.expenses_time >'"+Constant.getStartTime()+"' 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.getStartTime()+"' and a.expenses_status=1 ";
|
|
|
String sql = " select id,code,idcard,hospital,admin_team_code,expenses_status,patient,server_type 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)+"' 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)+"' and a.expenses_status=1 ";
|
|
|
|
|
|
//抽取數據
|
|
|
List<SignFamily> signFamilies = SpringUtil.getBean(DBExtract.class).extractByPage(SignFamily.class, sql, sqlCount, true);
|
|
@ -223,7 +223,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_37() {
|
|
|
String quotaId = "37";
|
|
|
try {
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id from wlyy_sign_family_renew_log fr where fr.old_admin_team_id!=fr.admin_team_id and fr.hospital=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6)and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYear() + "'";
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id from wlyy_sign_family_renew_log fr where fr.old_admin_team_id!=fr.admin_team_id and fr.hospital=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6)and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "'";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -279,7 +279,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
}
|
|
|
if ((1 + 1) % 100 == 0) {
|
|
|
//每隔100统计一次
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "' and a.consult in (" + sb.toString() + ")";
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "' and a.consult in (" + sb.toString() + ")";
|
|
|
//抽取數據
|
|
|
List<ConsultTeam> consultTeamsTemp = SpringUtil.getBean(DBExtract.class).extract(ConsultTeam.class, sql);
|
|
|
consultTeams.addAll(consultTeamsTemp);
|
|
@ -287,7 +287,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
} else {
|
|
|
//判断是不是最后的一段
|
|
|
if (consultIdMaps.size() == (i + 1)) {
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "'and a.consult in (" + sb.toString() + ")";
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "'and a.consult in (" + sb.toString() + ")";
|
|
|
//抽取數據
|
|
|
List<ConsultTeam> consultTeamsTemp = SpringUtil.getBean(DBExtract.class).extract(ConsultTeam.class, sql);
|
|
|
consultTeams.addAll(consultTeamsTemp);
|
|
@ -296,9 +296,9 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
}
|
|
|
String sql = "";
|
|
|
if (consultIdMaps.size() > 0) {
|
|
|
sql = " select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "'and a.consult in (" + sb.toString() + ")";
|
|
|
sql = " select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "'and a.consult in (" + sb.toString() + ")";
|
|
|
} else {
|
|
|
sql = " select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "'and a.consult ='noRey' ";
|
|
|
sql = " select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "'and a.consult ='noRey' ";
|
|
|
}
|
|
|
|
|
|
System.out.println("consultTeams num:" + consultTeams.size());
|
|
@ -331,7 +331,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
}
|
|
|
if ((1 + 1) % 100 == 0) {
|
|
|
//每隔100统计一次
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "' and a.consult in (" + sb.toString() + ")";
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "' and a.consult in (" + sb.toString() + ")";
|
|
|
//抽取數據
|
|
|
List<ConsultTeam> consultTeamsTemp = SpringUtil.getBean(DBExtract.class).extract(ConsultTeam.class, sql);
|
|
|
consultTeams.addAll(consultTeamsTemp);
|
|
@ -339,7 +339,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
} else {
|
|
|
//判断是不是最后的一段
|
|
|
if (consultIdMaps.size() == (i + 1)) {
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "' and a.consult in (" + sb.toString() + ")";
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "' and a.consult in (" + sb.toString() + ")";
|
|
|
//抽取數據
|
|
|
List<ConsultTeam> consultTeamsTemp = SpringUtil.getBean(DBExtract.class).extract(ConsultTeam.class, sql);
|
|
|
consultTeams.addAll(consultTeamsTemp);
|
|
@ -393,7 +393,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
}
|
|
|
if ((1 + 1) % 100 == 0) {
|
|
|
//每隔100统计一次
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "' and a.consult in (" + sb.toString() + ")";
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "' and a.consult in (" + sb.toString() + ")";
|
|
|
//抽取數據
|
|
|
List<ConsultTeam> consultTeamsTemp = SpringUtil.getBean(DBExtract.class).extract(ConsultTeam.class, sql);
|
|
|
consultTeams.addAll(consultTeamsTemp);
|
|
@ -401,7 +401,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
} else {
|
|
|
//判断是不是最后的一段
|
|
|
if (consultIdMaps.size() == (i + 1)) {
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "'and a.consult in (" + sb.toString() + ")";
|
|
|
String sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "'and a.consult in (" + sb.toString() + ")";
|
|
|
//抽取數據
|
|
|
List<ConsultTeam> consultTeamsTemp = SpringUtil.getBean(DBExtract.class).extract(ConsultTeam.class, sql);
|
|
|
consultTeams.addAll(consultTeamsTemp);
|
|
@ -411,9 +411,9 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
String sql = "";
|
|
|
//找出今天的咨询信息
|
|
|
if (consultIdMaps.size() > 0) {
|
|
|
sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "'and a.consult in (" + sb.toString() + ")";
|
|
|
sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "'and a.consult in (" + sb.toString() + ")";
|
|
|
} else {
|
|
|
sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "' and a.consult ='Rey' ";
|
|
|
sql = "select admin_team_code,id,consult from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "' and a.consult ='Rey' ";
|
|
|
} //抽取數據
|
|
|
|
|
|
List<ConsultTeamDto> consultTeamDtos = getConsultTeams(ims, consultTeams);
|
|
@ -824,7 +824,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
String quotaId = "2";
|
|
|
try {
|
|
|
//找出今天的解约信息
|
|
|
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< '" + tomorrow + "' and a.apply_unsign_date >'"+Constant.getStartTime()+"' ";
|
|
|
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< '" + tomorrow + "' and a.apply_unsign_date >'"+Constant.getStartTimeByDate(tomorrow)+"' ";
|
|
|
//抽取數據
|
|
|
List<SignFamily> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamily.class, sql);
|
|
|
//清洗數據
|
|
@ -976,7 +976,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_9() throws ParseException {
|
|
|
String quotaId = "9";
|
|
|
//找出今天的待签约信息
|
|
|
String sql = " select id,code,idcard,hospital,admin_team_code,doctor,doctor_health from wlyy_sign_family a where a.type =2 and a.status=0 and a.patient_apply_date< '" + tomorrow + "' and a.patient_apply_date >'"+Constant.getStartTime()+"' ";
|
|
|
String sql = " select id,code,idcard,hospital,admin_team_code,doctor,doctor_health from wlyy_sign_family a where a.type =2 and a.status=0 and a.patient_apply_date< '" + tomorrow + "' and a.patient_apply_date >'"+Constant.getStartTimeByDate(tomorrow)+"' ";
|
|
|
try {
|
|
|
//抽取數據
|
|
|
List<SignFamily> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamily.class, sql);
|
|
@ -998,7 +998,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
String quotaId = "10";
|
|
|
try {
|
|
|
//找出今天的已改簽信息
|
|
|
String sql = " select id,code,idcard,hospital,admin_team_code from wlyy_sign_family a where a.type =2 and a.status =100 and a.patient_apply_date< '" + tomorrow + "' and a.patient_apply_date >'"+Constant.getStartTime()+"' 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.status =100 and a.patient_apply_date< '" + tomorrow + "' and a.patient_apply_date >'"+Constant.getStartTimeByDate(tomorrow)+"' and a.expenses_status=1 ";
|
|
|
//抽取數據
|
|
|
List<SignFamily> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamily.class, sql);
|
|
|
//清洗數據
|
|
@ -1019,7 +1019,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
String quotaId = "25";
|
|
|
try {
|
|
|
//找出总的咨询信息
|
|
|
String sql = " select * from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTime() + "'";
|
|
|
String sql = " select * from wlyy_consult_team a where a.czrq< '" + tomorrow + "' and a.czrq> '" + Constant.getStartTimeByDate(tomorrow) + "'";
|
|
|
//抽取數據
|
|
|
List<ConsultTeam> consultTeams = SpringUtil.getBean(DBExtract.class).extract(ConsultTeam.class, sql);
|
|
|
//過濾數據
|
|
@ -1040,7 +1040,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
String quotaId = "26";
|
|
|
try {
|
|
|
//找出今天统计未缴费签约总数
|
|
|
String sql = "select code,idcard,hospital,admin_team_code from wlyy_sign_family a where a.type =2 and a.status>0 and a.apply_date< '" + tomorrow + "' and a.apply_date> '" + Constant.getStartTime() + "' and a.expenses_status=0 ";
|
|
|
String sql = "select code,idcard,hospital,admin_team_code from wlyy_sign_family a where a.type =2 and a.status>0 and a.apply_date< '" + tomorrow + "' and a.apply_date> '" + Constant.getStartTimeByDate(tomorrow) + "' and a.expenses_status=0 ";
|
|
|
//抽取數據
|
|
|
List<SignFamily> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamily.class, sql);
|
|
|
//清洗數據
|
|
@ -1140,7 +1140,7 @@ 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.getNowYear() + "'";
|
|
|
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) + "'";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1160,7 +1160,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_30() {
|
|
|
String quotaId = "30";
|
|
|
try {
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id,fr.renew_change_reason from wlyy_sign_family_renew_log fr where fr.old_admin_team_id=fr.admin_team_id and fr.hospital=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6) and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYear() + "'";
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id,fr.renew_change_reason from wlyy_sign_family_renew_log fr where fr.old_admin_team_id=fr.admin_team_id and fr.hospital=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6) and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "'";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1182,7 +1182,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_47() {
|
|
|
String quotaId = "47";
|
|
|
try {
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id,fr.renew_change_reason from wlyy_sign_family_renew_log fr where fr.hospital=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6) and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYear() + "'";
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id,fr.renew_change_reason from wlyy_sign_family_renew_log fr where fr.hospital=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6) and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "'";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1204,7 +1204,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_48() {
|
|
|
String quotaId = "48";
|
|
|
try {
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id,fr.renew_change_reason from wlyy_sign_family_renew_log fr where LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6) and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYear() + "'";
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id,fr.renew_change_reason from wlyy_sign_family_renew_log fr where LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6) and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "'";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1226,7 +1226,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_31() {
|
|
|
String quotaId = "31";
|
|
|
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.getNowYear() + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6)" ;
|
|
|
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) + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6)" ;
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1246,7 +1246,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_32() {
|
|
|
String quotaId = "32";
|
|
|
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.getNowYear() + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6)";
|
|
|
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) + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6)";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1266,7 +1266,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_33() {
|
|
|
String quotaId = "33";
|
|
|
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.getNowYear() + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital and LEFT(fr.hospital,6)!=LEFT(fr.old_hospital,6) ";
|
|
|
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) + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital and LEFT(fr.hospital,6)!=LEFT(fr.old_hospital,6) ";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1286,7 +1286,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_34() {
|
|
|
String quotaId = "34";
|
|
|
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.getNowYear() + "' and fr.admin_team_id!=fr.old_admin_team_id and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10";
|
|
|
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) + "' and fr.admin_team_id!=fr.old_admin_team_id and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1306,7 +1306,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_35() {
|
|
|
String quotaId = "35";
|
|
|
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.getNowYear() + "' and fr.admin_team_id!=fr.old_admin_team_id 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 fr.admin_team_id!=fr.old_admin_team_id and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10 ";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1325,7 +1325,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_38() {
|
|
|
String quotaId = "38";
|
|
|
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.getNowYear() + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10";
|
|
|
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) + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1345,7 +1345,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_39() {
|
|
|
String quotaId = "39";
|
|
|
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.getNowYear() + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital 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 fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10 ";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1369,7 +1369,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_40() {
|
|
|
String quotaId = "40";
|
|
|
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.getNowYear() + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital 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.hospital,fr.admin_team_id from wlyy_sign_family_renew_log fr where fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital 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);
|
|
|
//清洗數據
|
|
@ -1389,7 +1389,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_41() {
|
|
|
String quotaId = "41";
|
|
|
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.getNowYear() + "' and fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital 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 fr.admin_team_id!=fr.old_admin_team_id and fr.hospital!=fr.old_hospital 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);
|
|
|
//清洗數據
|
|
@ -1409,7 +1409,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_42() {
|
|
|
String quotaId = "42";
|
|
|
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.getNowYear() + "' and fr.admin_team_id=fr.old_admin_team_id 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 fr.admin_team_id=fr.old_admin_team_id and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10 ";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1428,7 +1428,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_43() {
|
|
|
String quotaId = "43";
|
|
|
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.getNowYear() + "'and fr.hospital=fr.old_hospital 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 fr.hospital=fr.old_hospital and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10 ";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1447,7 +1447,7 @@ 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.getNowYear() + "' 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);
|
|
|
//清洗數據
|
|
@ -1466,7 +1466,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_45() {
|
|
|
String quotaId = "45";
|
|
|
try {
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id from wlyy_sign_family_renew_log fr where fr.hospital!=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6)and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYear() + "'";
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id from wlyy_sign_family_renew_log fr where fr.hospital!=fr.old_hospital and LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6)and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "'";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
@ -1485,7 +1485,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
private void computequota_46() {
|
|
|
String quotaId = "46";
|
|
|
try {
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id from wlyy_sign_family_renew_log fr where LEFT(fr.hospital,6)!=LEFT(fr.old_hospital,6) and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYear() + "'";
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id from wlyy_sign_family_renew_log fr where LEFT(fr.hospital,6)!=LEFT(fr.old_hospital,6) and fr.apply_date<'"+tomorrow+"' and fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "'";
|
|
|
//抽取數據
|
|
|
List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|