|
@ -1232,7 +1232,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.`status`>0 and fr.apply_date<'"+tomorrow+"' and fr.admin_team_id!=fr.old_admin_team_id ";
|
|
|
String sql="select fr.sign_code code,fr.hospital,fr.admin_team_id from wlyy_sign_family_renew_log fr where fr.`status`>0 and fr.apply_date<'"+tomorrow+"' and fr.admin_team_id!=fr.old_admin_team_id and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10";
|
|
|
//抽取數據
|
|
|
List<SignFamily> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamily.class, sql);
|
|
|
//清洗數據
|
|
@ -1252,7 +1252,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.`status`>0 and fr.apply_date<'"+ tomorrow+"' and fr.admin_team_id!=fr.old_admin_team_id ";
|
|
|
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.`status`>0 and fr.apply_date<'"+ tomorrow+"' and fr.admin_team_id!=fr.old_admin_team_id and LENGTH(fr.hospital)=10 and LENGTH(fr.old_hospital)=10 ";
|
|
|
//抽取數據
|
|
|
List<SignFamily> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamily.class, sql);
|
|
|
//清洗數據
|