|
@ -147,7 +147,10 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
*/
|
|
|
public Map<String,Object> getCityRenewTotals(){
|
|
|
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 " +
|
|
|
String sql=" select fr.sign_code code,fr.old_hospital hospital,fr.old_admin_team_id admin_team_id ,p.`code` patient " +
|
|
|
" from wlyy_sign_family_renew_log fr " +
|
|
|
" join wlyy_patient p ON p.idcard = fr.idcard" +
|
|
|
" where " +
|
|
|
" fr.apply_date<'"+ tomorrow+"' and " +
|
|
|
" fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "' and " +
|
|
|
" LENGTH(fr.hospital)=10 and " +
|
|
@ -171,7 +174,10 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
*/
|
|
|
public Map<String,Object> getTowmRenewTotals(){
|
|
|
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 " +
|
|
|
String sql=" select fr.sign_code code,fr.old_hospital hospital,fr.old_admin_team_id admin_team_id ,p.`code` patient " +
|
|
|
" from wlyy_sign_family_renew_log fr " +
|
|
|
" join wlyy_patient p ON p.idcard = fr.idcard" +
|
|
|
" where " +
|
|
|
" fr.apply_date<'"+ tomorrow+"' and " +
|
|
|
" fr.sign_year= '" + Constant.getNowYearByDate(tomorrow) + "' and " +
|
|
|
" LEFT(fr.hospital,6)=LEFT(fr.old_hospital,6) and " +
|
|
@ -195,7 +201,11 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
*/
|
|
|
public Map<String,Object> getOrgRenewTotals(){
|
|
|
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 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 ,p.`code` patient " +
|
|
|
" from wlyy_sign_family_renew_log fr " +
|
|
|
" join wlyy_patient p ON p.idcard = fr.idcard" +
|
|
|
" 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);
|
|
|
Map<String,Object> map = new HashedMap();
|
|
@ -214,7 +224,11 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
*/
|
|
|
public Map<String,Object> getTeamRenewTotals(){
|
|
|
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 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 ,p.`code` patient " +
|
|
|
" from wlyy_sign_family_renew_log fr " +
|
|
|
" join wlyy_patient p ON p.idcard = fr.idcard" +
|
|
|
" 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);
|
|
|
Map<String,Object> map = new HashedMap();
|
|
@ -229,7 +243,11 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
|
|
|
public Map<String,Object> getTeamRenewOut(){
|
|
|
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 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 ,p.`code` patient " +
|
|
|
" from wlyy_sign_family_renew_log fr " +
|
|
|
" join wlyy_patient p ON p.idcard = fr.idcard " +
|
|
|
" 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);
|
|
|
Map<String,Object> map = new HashedMap();
|
|
@ -244,7 +262,11 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
|
|
|
public Map<String,Object> getOrgRenewOut(){
|
|
|
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 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 ,p.`code` patient " +
|
|
|
" from wlyy_sign_family_renew_log fr " +
|
|
|
" join wlyy_patient p ON p.idcard = fr.idcard" +
|
|
|
" 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);
|
|
|
Map<String,Object> map = new HashedMap();
|
|
@ -259,7 +281,11 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
|
|
|
public Map<String,Object> getTownRenewOut(){
|
|
|
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 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 ,p.`code` patient " +
|
|
|
" from wlyy_sign_family_renew_log fr " +
|
|
|
" join wlyy_patient p ON p.idcard = fr.idcard " +
|
|
|
" 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);
|
|
|
Map<String,Object> map = new HashedMap();
|
|
@ -302,56 +328,56 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
Map<String,Object> orgSignFamilies =getOrgRenewTotals();
|
|
|
Map<String,Object> teamSignFamilies =getTeamRenewTotals();
|
|
|
//数据抽取迁出率
|
|
|
Map<String,Object> townSignOutFamilies =getTowmRenewTotals();
|
|
|
Map<String,Object> orgSignOutFamilies =getOrgRenewTotals();
|
|
|
Map<String,Object> teamSignOutFamilies =getTeamRenewTotals();
|
|
|
|
|
|
|
|
|
|
|
|
computequota_1(sql, signFamilies, null); //统计今天的签约
|
|
|
computequota_2(); //统计今天的解约
|
|
|
computequota_3(); //统计今天的健康咨询量
|
|
|
computequota_4(); //统计今天的随访量
|
|
|
computequota_5(); //统计今天的健康指导
|
|
|
computequota_6(sql, signFamilies, null); //统计今天的签约患者性别
|
|
|
computequota_7(sql, signFamilies, null);//统计今天的签约患者分组
|
|
|
computequota_8(sql, signFamilies, null);//统计今天的签约患者年龄
|
|
|
computequota_9();//统计今天的待签约
|
|
|
computequota_10();//统计今天的改签
|
|
|
computequota_12(sql, signFamilies, null);//统计今天的签约下按年龄分组后再
|
|
|
computequota_13(sql, signFamilies, null);//统计今天的签约量
|
|
|
computequota_16_1(sql, signFamilies, null);//统计今天的签约数的扣费钱
|
|
|
computequota_15(sql, signFamilies, null);//统计今天的健康分布统计
|
|
|
computequota_17(sql, signFamilies, null);//统计今天的年龄疾病
|
|
|
computequota_20();//统计今天的已经签约患者绑定设备
|
|
|
computequota_21();//统计今天的已经签约微信关注人数
|
|
|
computequota_49();//统计今天的已经签约未扣费微信关注人数
|
|
|
computequota_50();//统计今天的已经签约已扣费微信关注人数
|
|
|
computequota_22();//未回复的咨询量
|
|
|
computequota_23();//及时回复的咨询量
|
|
|
computequota_24();//及时回复的咨询量时间分布
|
|
|
computequota_25();//统计质询量总数
|
|
|
computequota_26();//统计未缴费签约总数
|
|
|
computequota_27();//统计代预约量
|
|
|
computequota_28();//统计平均值
|
|
|
computequota_31(); //统计续签夸团队
|
|
|
computequota_32(); //统计续签夸社区
|
|
|
computequota_33(); //统计续签夸区
|
|
|
computequota_34(); //续签团队签入
|
|
|
computequota_35(teamSignOutFamilies); //统计团队签出
|
|
|
computequota_36(sql, signFamilies, null); //签约服务类型
|
|
|
//computequota_37(); //统计团队转签 没用指标
|
|
|
computequota_38(); //续签机构签入
|
|
|
computequota_39(orgSignOutFamilies); //统计机构签出
|
|
|
computequota_40(); //续签区签入
|
|
|
computequota_41(townSignOutFamilies); //统计区签出
|
|
|
computequota_42(teamSignFamilies); //统计团队续签
|
|
|
computequota_43(townSignFamilies); //统计社区续签
|
|
|
computequota_44(orgSignFamilies); //统计区续签
|
|
|
computequota_29(citySignFamilies); //统计市级续签
|
|
|
//computequota_45(); //统计社区转签 没用指标
|
|
|
//computequota_46(); //统计区转签 没用指标
|
|
|
computequota_30(); //统计团队续签原因
|
|
|
Map<String,Object> townSignOutFamilies =getTownRenewOut();
|
|
|
Map<String,Object> orgSignOutFamilies =getOrgRenewOut();
|
|
|
Map<String,Object> teamSignOutFamilies =getTeamRenewOut();
|
|
|
|
|
|
|
|
|
|
|
|
// computequota_1(sql, signFamilies, null); //统计今天的签约
|
|
|
// computequota_2(); //统计今天的解约
|
|
|
// computequota_3(); //统计今天的健康咨询量
|
|
|
// computequota_4(); //统计今天的随访量
|
|
|
// computequota_5(); //统计今天的健康指导
|
|
|
// computequota_6(sql, signFamilies, null); //统计今天的签约患者性别
|
|
|
// computequota_7(sql, signFamilies, null);//统计今天的签约患者分组
|
|
|
// computequota_8(sql, signFamilies, null);//统计今天的签约患者年龄
|
|
|
// computequota_9();//统计今天的待签约
|
|
|
// computequota_10();//统计今天的改签
|
|
|
// computequota_12(sql, signFamilies, null);//统计今天的签约下按年龄分组后再
|
|
|
// computequota_13(sql, signFamilies, null);//统计今天的签约量
|
|
|
// computequota_16_1(sql, signFamilies, null);//统计今天的签约数的扣费钱
|
|
|
// computequota_15(sql, signFamilies, null);//统计今天的健康分布统计
|
|
|
// computequota_17(sql, signFamilies, null);//统计今天的年龄疾病
|
|
|
// computequota_20();//统计今天的已经签约患者绑定设备
|
|
|
// computequota_21();//统计今天的已经签约微信关注人数
|
|
|
// computequota_49();//统计今天的已经签约未扣费微信关注人数
|
|
|
// computequota_50();//统计今天的已经签约已扣费微信关注人数
|
|
|
// computequota_22();//未回复的咨询量
|
|
|
// computequota_23();//及时回复的咨询量
|
|
|
// computequota_24();//及时回复的咨询量时间分布
|
|
|
// computequota_25();//统计质询量总数
|
|
|
// computequota_26();//统计未缴费签约总数
|
|
|
// computequota_27();//统计代预约量
|
|
|
// computequota_28();//统计平均值
|
|
|
// computequota_31(); //统计续签夸团队
|
|
|
// computequota_32(); //统计续签夸社区
|
|
|
// computequota_33(); //统计续签夸区
|
|
|
// computequota_34(); //续签团队签入
|
|
|
// computequota_35(teamSignOutFamilies); //统计团队签出
|
|
|
// computequota_36(sql, signFamilies, null); //签约服务类型
|
|
|
// //computequota_37(); //统计团队转签 没用指标
|
|
|
// computequota_38(); //续签机构签入
|
|
|
// computequota_39(orgSignOutFamilies); //统计机构签出
|
|
|
// computequota_40(); //续签区签入
|
|
|
// computequota_41(townSignOutFamilies); //统计区签出
|
|
|
// computequota_42(teamSignFamilies); //统计团队续签
|
|
|
// computequota_43(townSignFamilies); //统计社区续签
|
|
|
// computequota_44(orgSignFamilies); //统计区续签
|
|
|
// computequota_29(citySignFamilies); //统计市级续签
|
|
|
// //computequota_45(); //统计社区转签 没用指标
|
|
|
// //computequota_46(); //统计区转签 没用指标
|
|
|
// computequota_30(); //统计团队续签原因
|
|
|
// computequota_47(); //统计社区续签原因 没用指标
|
|
|
// computequota_48(); //统计区续签原因 没用指标
|
|
|
|
|
@ -1414,13 +1440,13 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
List<SignFamilyRenew> signFamilies = (List<SignFamilyRenew>)sign.get("signFamilies");
|
|
|
String sql = (String)sign.get("sql");
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies,"2",null,sql,"now");
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies,"3",null,sql,"now");
|
|
|
//统计数据 一级维度
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//统计数据 二级维度
|
|
|
List<Map<String, Map<String, List<ETLModel>>>> patientSexRoleData = SpringUtil.getBean(Level2Role.class).elt(returnDatas);
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 12, 10, 0);
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 3, 7,1);
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@ -1629,13 +1655,14 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
List<SignFamilyRenew> signFamilies = (List<SignFamilyRenew>)sign.get("signFamilies");
|
|
|
String sql = (String)sign.get("sql");
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies,"2",null ,sql, "now");
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies,"3",null ,sql, "now");
|
|
|
//统计数据 一级维度
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//统计数据 二级维度
|
|
|
List<Map<String, Map<String, List<ETLModel>>>> patientSexRoleData = SpringUtil.getBean(Level2Role.class).elt(returnDatas);
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 12, 10, 0);
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 3, 7,1);
|
|
|
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@ -1700,13 +1727,14 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
// //抽取數據
|
|
|
// List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies,"2",null,sql, "now");
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies,"3",null,sql, "now");
|
|
|
//统计数据 一级维度
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//统计数据 二级维度
|
|
|
List<Map<String, Map<String, List<ETLModel>>>> patientSexRoleData = SpringUtil.getBean(Level2Role.class).elt(returnDatas);
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 12, 10, 0);
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 3, 7,1);
|
|
|
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@ -1771,13 +1799,14 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
// //抽取數據
|
|
|
// List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies,"2",null, sql, "now");
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies,"3",null, sql, "now");
|
|
|
//统计数据 一级维度
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//统计数据 二级维度
|
|
|
List<Map<String, Map<String, List<ETLModel>>>> patientSexRoleData = SpringUtil.getBean(Level2Role.class).elt(returnDatas);
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 12, 10, 0);
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 3, 7,1);
|
|
|
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@ -1832,13 +1861,13 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
List<SignFamilyRenew> signFamilies = (List<SignFamilyRenew>)sign.get("signFamilies");
|
|
|
String sql = (String)sign.get("sql");
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies, "2",null,sql, "now");
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies, "3",null,sql, "now");
|
|
|
//统计数据 一级维度
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//统计数据 二级维度
|
|
|
List<Map<String, Map<String, List<ETLModel>>>> patientSexRoleData = SpringUtil.getBean(Level2Role.class).elt(returnDatas);
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 12, 10, 0);
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 3, 7,1);
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@ -1855,13 +1884,14 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
// //抽取數據
|
|
|
// List<SignFamilyRenew> signFamilies = SpringUtil.getBean(DBExtract.class).extract(SignFamilyRenew.class, sql);
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies, "2",null,sql, "now");
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies, "3",null,sql, "now");
|
|
|
//统计数据 一级维度
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//统计数据 二级维度
|
|
|
List<Map<String, Map<String, List<ETLModel>>>> patientSexRoleData = SpringUtil.getBean(Level2Role.class).elt(returnDatas);
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 12, 10, 0);
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 3, 7,1);
|
|
|
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@ -1911,13 +1941,14 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
List<SignFamilyRenew> signFamilies = (List<SignFamilyRenew>)sign.get("signFamilies");
|
|
|
String sql = (String)sign.get("sql");
|
|
|
//清洗數據
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies,"2",null,sql,"now");
|
|
|
FilterModel etlModels = SpringUtil.getBean(RenewSignDataFilter.class).filter(signFamilies,"3",null,sql,"now");
|
|
|
//统计数据 一级维度
|
|
|
List<Map<String, List<ETLModel>>> returnDatas = SpringUtil.getBean(Level1Role.class).elt(etlModels.getEtlModelList());
|
|
|
//统计数据 二级维度
|
|
|
List<Map<String, Map<String, List<ETLModel>>>> patientSexRoleData = SpringUtil.getBean(Level2Role.class).elt(returnDatas);
|
|
|
//保存数据
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 12, 10, 0);
|
|
|
SpringUtil.getBean(RedisStorage.class).saveByLevel2(patientSexRoleData, null, quotaId, 3, 7,1);
|
|
|
|
|
|
allContent.append(JsonUtil.objToStr(etlModels.getLogModel()));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|