|
|
@ -315,8 +315,10 @@ public class CockpitWorkflowAnalysisCmd {
|
|
|
|
" from wfc_requestbase t\n" +
|
|
|
|
" from wfc_requestbase t\n" +
|
|
|
|
" inner join wfp_base p on p.id = t.workflowid\n" +
|
|
|
|
" inner join wfp_base p on p.id = t.workflowid\n" +
|
|
|
|
" where t.userid = ? \n" +
|
|
|
|
" where t.userid = ? \n" +
|
|
|
|
" and delete_type = 0 \n" +
|
|
|
|
" and t.delete_type=0\n" +
|
|
|
|
" and tenant_key= ? " +
|
|
|
|
" and p.delete_type=0\n" +
|
|
|
|
|
|
|
|
" and t.tenant_key= ? \n" +
|
|
|
|
|
|
|
|
" and p.tenant_key = ?" +
|
|
|
|
" group by t.workflowid,p.workflowname\n" +
|
|
|
|
" group by t.workflowid,p.workflowname\n" +
|
|
|
|
" ) p order by p.cou desc \n" +
|
|
|
|
" ) p order by p.cou desc \n" +
|
|
|
|
" ) w limit 5" ;
|
|
|
|
" ) w limit 5" ;
|
|
|
@ -333,6 +335,11 @@ public class CockpitWorkflowAnalysisCmd {
|
|
|
|
sqlParamEntity.setValue(tenantKey);
|
|
|
|
sqlParamEntity.setValue(tenantKey);
|
|
|
|
sqlparam.add(sqlParamEntity);
|
|
|
|
sqlparam.add(sqlParamEntity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sqlParamEntity = new SqlParamEntity();
|
|
|
|
|
|
|
|
sqlParamEntity.setParamType(SqlParamType.VARCHAR);
|
|
|
|
|
|
|
|
sqlParamEntity.setValue(tenantKey);
|
|
|
|
|
|
|
|
sqlparam.add(sqlParamEntity);
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> result = databaseUtils.executeForQuery(sourceType, groupId, sql,sqlparam);
|
|
|
|
Map<String, Object> result = databaseUtils.executeForQuery(sourceType, groupId, sql,sqlparam);
|
|
|
|
recordList = databaseUtils.getDataSourceList(result);
|
|
|
|
recordList = databaseUtils.getDataSourceList(result);
|
|
|
|
|
|
|
|
|
|
|
|