|
@ -182,10 +182,14 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
computequota_31(); //统计续签夸团队
|
|
|
computequota_32(); //统计续签夸社区
|
|
|
computequota_33(); //统计续签夸区
|
|
|
computequota_34(); //续签签入
|
|
|
computequota_35(); //统计续签签出
|
|
|
computequota_34(); //续签团队签入
|
|
|
computequota_35(); //统计团队签出
|
|
|
computequota_36(sql, signFamilies, null); //签约服务类型
|
|
|
computequota_37(); //统计转签
|
|
|
computequota_38(); //续签机构签入
|
|
|
computequota_39(); //统计机构签出
|
|
|
computequota_40(); //续签区签入
|
|
|
computequota_41(); //统计区签出
|
|
|
|
|
|
|
|
|
quartzJobLog.setJobContent(allContent.toString());
|
|
@ -1271,12 +1275,90 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
}
|
|
|
allContent.append("-----------35----------");
|
|
|
}
|
|
|
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.`status`>0 and fr.apply_date<'"+tomorrow+"' and fr.apply_date> '" + Constant.getStartTime() + "' 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);
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies, sql, "now");
|
|
|
//统计数据
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel1(returnDatas, null, quotaId);
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
allContent.append("统计失败:" + e.getMessage());
|
|
|
}
|
|
|
allContent.append("-----------38----------");
|
|
|
}
|
|
|
|
|
|
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.`status`>0 and fr.apply_date<'"+ tomorrow+"' and fr.apply_date> '" + Constant.getStartTime() + "' 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);
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies, sql, "now");
|
|
|
//统计数据
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel1(returnDatas, null, quotaId);
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
allContent.append("统计失败:" + e.getMessage());
|
|
|
}
|
|
|
allContent.append("-----------39----------");
|
|
|
}
|
|
|
public List<Map<String, Object>> getCityTowms() {
|
|
|
List<Map<String, Object>> map = jdbcTemplate.queryForList(getAvgSqlByCode("city_town_SQL"));
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
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.`status`>0 and fr.apply_date<'"+tomorrow+"' and fr.apply_date> '" + Constant.getStartTime() + "' 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);
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies, sql, "now");
|
|
|
//统计数据
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel1(returnDatas, null, quotaId);
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
allContent.append("统计失败:" + e.getMessage());
|
|
|
}
|
|
|
allContent.append("-----------40----------");
|
|
|
}
|
|
|
|
|
|
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.`status`>0 and fr.apply_date<'"+ tomorrow+"' and fr.apply_date> '" + Constant.getStartTime() + "' 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);
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies, sql, "now");
|
|
|
//统计数据
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel1(returnDatas, null, quotaId);
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
allContent.append("统计失败:" + e.getMessage());
|
|
|
}
|
|
|
allContent.append("-----------41----------");
|
|
|
}
|
|
|
|
|
|
public List<Map<String, Object>> getCityHoss() {
|
|
|
List<Map<String, Object>> map = jdbcTemplate.queryForList(getAvgSqlByCode("city_hos_SQL"));
|
|
|
return map;
|