更新去重计算

This commit is contained in:
zhal 2023-09-20 16:24:56 +08:00
parent 38b11b4c07
commit 1d296095e1
2 changed files with 4 additions and 4 deletions

View File

@ -760,7 +760,7 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
//创建文件
ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params);
System.out.println("流程手册的存入=================" + ro);
//createIndexByFile(processExecutionContext,"1","2",dcContext.getFilePath(),new JSONObject());
createIndexByFile(processExecutionContext, dcContext.getFileName(),"process",dcContext.getFilePath(),new JSONObject());
}
}
@ -799,7 +799,7 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
paramss.put("dc", dcContexts);
AppAPI appAPIs = SDK.getAppAPI();
ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, paramss);
//createIndexByFile(processExecutionContext,"1","2",dcContexts.getFilePath(),new JSONObject());
//createIndexByFile(processExecutionContext, dcContexts.getFileName(),"process",dcContexts.getFilePath(),new JSONObject());
}
}
}
@ -1718,8 +1718,8 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
bo_Read_log.set("SENDNUMSJ", data);
//去重漏发人数
String disnum = DBSql.getString("SELECT COUNT(DISTINCT user_id ) AS NUMBERS from BO_ACT_DATAID where 1=1 AND PROCESSID='" + processInstId + "'");
String disread_num = DBSql.getString("SELECT COUNT(DISTINCT user_id ) AS NUMBERS from BO_ACT_ALREADY_DATAID where 1=1 AND PROCESSID='" + processInstId + "'");
String disnum = DBSql.getString("SELECT COUNT(DISTINCT user_id) AS NUMBERS from BO_ACT_DATAID where 1=1 AND PROCESSID='" + processInstId + "'");
String disread_num = DBSql.getString("SELECT COUNT(DISTINCT user_id) AS NUMBERS from BO_ACT_ALREADY_DATAID where 1=1 AND PROCESSID='" + processInstId + "'");
Integer dis_data = Integer.parseInt(disnum)+Integer.parseInt(disread_num);
bo_Read_log.set("DISTINCTSUM", dis_data);