ID_ AS "id", REV_ AS "rev", EXECUTION_ID_ AS "executionId", PROC_INST_ID_ AS "procInstId", PROC_DEF_ID_ AS "procDefId", NAME_ AS "name", PARENT_TASK_ID_ AS "parentTaskId", DESCRIPTION_ AS "description", TASK_DEF_KEY_ AS "taskDefKey", OWNER_ AS "owner", ASSIGNEE_ AS "assignee", DELEGATION_ AS "delegation", PRIORITY_ AS "priority", CREATE_TIME_ AS "createTime", DUE_DATE_ AS "dueDate", CATEGORY_ AS "category", SUSPENSION_STATE_ AS "suspensionState", TENANT_ID_ AS "tenantId", FORM_KEY_ AS "formKey", CLAIM_TIME_ AS "claimTime"
ID_ AS "id_",
PROC_DEF_ID_ AS "proc_def_id_",
TASK_DEF_KEY_ AS "task_def_key_",
PROC_INST_ID_ AS "proc_inst_id_",
EXECUTION_ID_ AS "execution_id_",
NAME_ AS "name_",
PARENT_TASK_ID_ AS "parent_task_id_",
DESCRIPTION_ AS "description_",
OWNER_ AS "owner_",
ASSIGNEE_ AS "assignee_",
START_TIME_ AS "start_time_",
CLAIM_TIME_ AS "claim_time_",
END_TIME_ AS "end_time_",
DURATION_ AS "duration_",
DELETE_REASON_ AS "delete_reason_",
PRIORITY_ AS "priority_",
DUE_DATE_ AS "due_date_",
FORM_KEY_ AS "form_key_",
CATEGORY_ AS "category_",
TENANT_ID_ AS "tenant_id_"
select
f.*,
p.NAME_ pname_ ,
p.DEPLOYMENT_ID_ deployment_id_,
p.DGRM_RESOURCE_NAME_ dgrm_resource_name_
from
(
select
from ACT_HI_TASKINST n
where (
n.ASSIGNEE_ = #{pd.username}
or
n.ASSIGNEE_ in ${pd.rnumbers}
)
group by n.EXECUTION_ID_
) f
left join
ACT_RE_PROCDEF p
on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE CONCAT(CONCAT('%', #{pd.keywords}),'%')
or
f.NAME_ LIKE CONCAT(CONCAT('%', #{pd.keywords}),'%')
or
f.ASSIGNEE_ LIKE CONCAT(CONCAT('%', #{pd.keywords}),'%')
)
and f.END_TIME_ >= CONCAT(#{pd.lastStart},' 00:00:00')
and f.END_TIME_ <= CONCAT(#{pd.lastEnd},' 23:59:59')
and
(
f.ASSIGNEE_ = #{pd.username}
or
f.ASSIGNEE_ in ${pd.rnumbers}
)
and f.END_TIME_ is not NULL
order by f.END_TIME_ desc
select
f.*,
p.NAME_ pname_ ,
p.DEPLOYMENT_ID_ deployment_id_,
p.DGRM_RESOURCE_NAME_ dgrm_resource_name_
from
(
select
from ACT_HI_TASKINST n
where (
n.ASSIGNEE_ = #{pd.username}
or
n.ASSIGNEE_ in ${pd.rnumbers}
)
group by n.EXECUTION_ID_
) f
left join
ACT_RE_PROCDEF p
on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE CONCAT(CONCAT('%', #{pd.keywords}),'%')
or
f.NAME_ LIKE CONCAT(CONCAT('%', #{pd.keywords}),'%')
or
f.ASSIGNEE_ LIKE CONCAT(CONCAT('%', #{pd.keywords}),'%')
)
and f.END_TIME_ >= CONCAT(#{pd.lastStart},' 00:00:00')
and f.END_TIME_ <= CONCAT(#{pd.lastEnd},' 23:59:59')
and
(
f.ASSIGNEE_ = #{pd.username}
or
f.ASSIGNEE_ in ${pd.rnumbers}
)
and f.END_TIME_ is not NULL
order by f.END_TIME_ desc
select
f.*,
p.NAME_ pname_ ,
p.DEPLOYMENT_ID_ deployment_id_,
p.DGRM_RESOURCE_NAME_ dgrm_resource_name_
from
(
select
n.EXECUTION_ID_,n.ASSIGNEE_,n.NAME_,n.END_TIME_,n.PROC_DEF_ID_,n.DURATION_,n.ID_,n.TASK_DEF_KEY_,n.PROC_INST_ID_,n.PARENT_TASK_ID_
,n.DESCRIPTION_,n.OWNER_,n.START_TIME_,n.CLAIM_TIME_,n.DELETE_REASON_,n.PRIORITY_,DUE_DATE_,n.FORM_KEY_,n.CATEGORY_,n.TENANT_ID_
from ACT_HI_TASKINST n
where (
n.ASSIGNEE_ = #{pd.username}
or
n.ASSIGNEE_ in ${pd.rnumbers}
)
group by n.EXECUTION_ID_,n.ASSIGNEE_,n.NAME_,n.END_TIME_,n.PROC_DEF_ID_,n.DURATION_,n.ID_,n.TASK_DEF_KEY_,n.PROC_INST_ID_,n.PARENT_TASK_ID_
,n.DESCRIPTION_,n.OWNER_,n.START_TIME_,n.CLAIM_TIME_,n.DELETE_REASON_,n.PRIORITY_,DUE_DATE_,n.FORM_KEY_,n.CATEGORY_,n.TENANT_ID_
) f
left join
ACT_RE_PROCDEF p
on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE '%' || #{pd.keywords} || '%'
or
f.NAME_ LIKE '%' || #{pd.keywords} || '%'
or
f.ASSIGNEE_ LIKE '%' || #{pd.keywords} || '%'
)
and f.END_TIME_ >= to_timestamp(#{pd.lastStart}||' 00:00:00','yyyy-mm-dd hh24:mi:ss')
and f.END_TIME_ <= to_timestamp(#{pd.lastEnd}||' 23:59:59','yyyy-mm-dd hh24:mi:ss')
and
(
f.ASSIGNEE_ = #{pd.username}
or
f.ASSIGNEE_ in ${pd.rnumbers}
)
and f.END_TIME_ is not NULL
order by f.END_TIME_ desc
select
f.*,
p.NAME_ "pname_" ,
p.DEPLOYMENT_ID_ "deployment_id_",
p.DGRM_RESOURCE_NAME_ "dgrm_resource_name_"
from
(
select
from ACT_HI_TASKINST n
where (
n.ASSIGNEE_ = #{pd.username}
or
n.ASSIGNEE_ in ${pd.rnumbers}
)
group by n.EXECUTION_ID_,n.ASSIGNEE_,n.NAME_,n.END_TIME_,n.PROC_DEF_ID_,n.DURATION_,n.ID_,n.TASK_DEF_KEY_,n.PROC_INST_ID_,n.PARENT_TASK_ID_
,n.DESCRIPTION_,n.OWNER_,n.START_TIME_,n.CLAIM_TIME_,n.DELETE_REASON_,n.PRIORITY_,DUE_DATE_,n.FORM_KEY_,n.CATEGORY_,n.TENANT_ID_
) f
left join
ACT_RE_PROCDEF p
on f."proc_def_id_" = p.ID_
where 1=1
and
(
p.name_ LIKE '%' || #{pd.keywords} || '%'
or
f."name_" LIKE '%' || #{pd.keywords} || '%'
or
f."assignee_" LIKE '%' || #{pd.keywords} || '%'
)
and f."end_time_" >= to_date(#{pd.lastStart}||' 00:00:00','yyyy-mm-dd hh24:mi:ss')
and f."end_time_" <= to_date(#{pd.lastEnd}||' 23:59:59','yyyy-mm-dd hh24:mi:ss')
and
(
f."assignee_" = #{pd.username}
or
f."assignee_" in ${pd.rnumbers}
)
and f."end_time_" is not NULL
order by f."end_time_" desc
select
from act_ru_task where 1 = 1
and NAME_ like CONCAT('%',#{paramCondition.name},'%')
select
from act_ru_task where 1 = 1
and NAME_ like CONCAT('%',#{paramCondition.name},'%')
select
f.ID_ AS "id", f.REV_ AS "rev", f.EXECUTION_ID_ AS "executionId", f.PROC_INST_ID_ AS "procInstId",
f.PROC_DEF_ID_ AS "procDefId", f.NAME_ AS "name", f.PARENT_TASK_ID_ AS "parentTaskId",
f.DESCRIPTION_ AS "description", f.TASK_DEF_KEY_ AS "taskDefKey", f.OWNER_ AS "owner",
f.ASSIGNEE_ AS "assignee", f.DELEGATION_ AS "delegation", f.PRIORITY_ AS "priority", f.CREATE_TIME_ AS
"createTime", f.DUE_DATE_ AS "dueDate",
f.CATEGORY_ AS "category", f.SUSPENSION_STATE_ AS "suspensionState", f.TENANT_ID_ AS "tenantId", f.FORM_KEY_ AS
"formKey", f.CLAIM_TIME_ AS "claimTime",
p.NAME_ as "pname",
p.DGRM_RESOURCE_NAME_ as "dgrmResourceName"
from act_ru_task f
left join ACT_RE_PROCDEF p on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
or
f.NAME_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
or
f.ASSIGNEE_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
)
and f.CREATE_TIME_ >= #{paramCondition.lastStart}
and f.CREATE_TIME_ <= #{paramCondition.lastEnd}
and
(
f.ASSIGNEE_ = #{paramCondition.username}
or
f.ASSIGNEE_ in ${paramCondition.username}
)
order by f.CREATE_TIME_ desc
select
f.ID_ AS "id", f.REV_ AS "rev", f.EXECUTION_ID_ AS "executionId", f.PROC_INST_ID_ AS "procInstId",
f.PROC_DEF_ID_ AS "procDefId", f.NAME_ AS "name", f.PARENT_TASK_ID_ AS "parentTaskId",
f.DESCRIPTION_ AS "description", f.TASK_DEF_KEY_ AS "taskDefKey", f.OWNER_ AS "owner",
f.ASSIGNEE_ AS "assignee", f.DELEGATION_ AS "delegation", f.PRIORITY_ AS "priority", f.CREATE_TIME_ AS
"createTime", f.DUE_DATE_ AS "dueDate",
f.CATEGORY_ AS "category", f.SUSPENSION_STATE_ AS "suspensionState", f.TENANT_ID_ AS "tenantId", f.FORM_KEY_ AS
"formKey", f.CLAIM_TIME_ AS "claimTime",
p.NAME_ as "pname",
p.DGRM_RESOURCE_NAME_ as "dgrmResourceName"
from act_ru_task f
left join ACT_RE_PROCDEF p on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
or
f.NAME_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
or
f.ASSIGNEE_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
)
and f.CREATE_TIME_ >= #{paramCondition.lastStart}
and f.CREATE_TIME_ <= #{paramCondition.lastEnd}
and
(
f.ASSIGNEE_ = #{paramCondition.username}
or
f.ASSIGNEE_ in ${paramCondition.username}
)
order by f.CREATE_TIME_ desc
select
f.ID_ AS "id", f.REV_ AS "rev", f.EXECUTION_ID_ AS "executionId", f.PROC_INST_ID_ AS "procInstId",
f.PROC_DEF_ID_ AS "procDefId", f.NAME_ AS "name", f.PARENT_TASK_ID_ AS "parentTaskId",
f.DESCRIPTION_ AS "description", f.TASK_DEF_KEY_ AS "taskDefKey", f.OWNER_ AS "owner",
f.ASSIGNEE_ AS "assignee", f.DELEGATION_ AS "delegation", f.PRIORITY_ AS "priority", f.CREATE_TIME_ AS
"createTime", f.DUE_DATE_ AS "dueDate",
f.CATEGORY_ AS "category", f.SUSPENSION_STATE_ AS "suspensionState", f.TENANT_ID_ AS "tenantId", f.FORM_KEY_ AS
"formKey", f.CLAIM_TIME_ AS "claimTime",
p.NAME_ as "pname",
p.DGRM_RESOURCE_NAME_ as "dgrmResourceName"
from act_ru_task f
left join ACT_RE_PROCDEF p on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE '%' || #{paramCondition.keywords} || '%'
or
f.NAME_ LIKE '%' || #{paramCondition.keywords} || '%'
or
f.ASSIGNEE_ LIKE '%' || #{paramCondition.keywords} || '%'
)
and f.CREATE_TIME_ >= to_timestamp(#{paramCondition.lastStart}||'00:00:00','yyyy-mm-dd hh24:mi:ss')
and f.CREATE_TIME_ <= to_timestamp(#{paramCondition.lastEnd}||'23:59:59','yyyy-mm-dd hh24:mi:ss')
and
(
f.ASSIGNEE_ = #{paramCondition.username}
or
f.ASSIGNEE_ in ${paramCondition.username}
)
order by f.CREATE_TIME_ desc
select
f.ID_ AS "id", f.REV_ AS "rev", f.EXECUTION_ID_ AS "executionId", f.PROC_INST_ID_ AS "procInstId",
f.PROC_DEF_ID_ AS "procDefId", f.NAME_ AS "name", f.PARENT_TASK_ID_ AS "parentTaskId",
f.DESCRIPTION_ AS "description", f.TASK_DEF_KEY_ AS "taskDefKey", f.OWNER_ AS "owner",
f.ASSIGNEE_ AS "assignee", f.DELEGATION_ AS "delegation", f.PRIORITY_ AS "priority", f.CREATE_TIME_ AS
"createTime", f.DUE_DATE_ AS "dueDate",
f.CATEGORY_ AS "category", f.SUSPENSION_STATE_ AS "suspensionState", f.TENANT_ID_ AS "tenantId", f.FORM_KEY_ AS
"formKey", f.CLAIM_TIME_ AS "claimTime",
p.NAME_ as "pname",
p.DGRM_RESOURCE_NAME_ as "dgrmResourceName"
from act_ru_task f
left join ACT_RE_PROCDEF p on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE '%' || #{paramCondition.keywords} || '%'
or
f.NAME_ LIKE '%' || #{paramCondition.keywords} || '%'
or
f.ASSIGNEE_ LIKE '%' || #{paramCondition.keywords} || '%'
)
and f.CREATE_TIME_ >= to_date(#{paramCondition.lastStart}||'00:00:00','yyyy-mm-dd hh24:mi:ss')
and f.CREATE_TIME_ <= to_date(#{paramCondition.lastEnd}||'23:59:59','yyyy-mm-dd hh24:mi:ss')
and
(
f.ASSIGNEE_ = #{paramCondition.username}
or
f.ASSIGNEE_ in ${paramCondition.username}
)
order by f.CREATE_TIME_ desc
select
f.ID_ AS "id", f.REV_ AS "rev", f.EXECUTION_ID_ AS "executionId", f.PROC_INST_ID_ AS "procInstId",
f.PROC_DEF_ID_ AS "procDefId", f.NAME_ AS "name", f.PARENT_TASK_ID_ AS "parentTaskId",
f.DESCRIPTION_ AS "description", f.TASK_DEF_KEY_ AS "taskDefKey", f.OWNER_ AS "owner",
f.ASSIGNEE_ AS "assignee", f.DELEGATION_ AS "delegation", f.PRIORITY_ AS "priority", f.CREATE_TIME_ AS
"createTime", f.DUE_DATE_ AS "dueDate",
f.CATEGORY_ AS "category", f.SUSPENSION_STATE_ AS "suspensionState", f.TENANT_ID_ AS "tenantId", f.FORM_KEY_ AS
"formKey", f.CLAIM_TIME_ AS "claimTime",
p.NAME_ as "pname",
p.DGRM_RESOURCE_NAME_ as "dgrmResourceName"
from act_ru_task f
left join ACT_RE_PROCDEF p on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
or
f.NAME_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
or
f.ASSIGNEE_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
)
and f.CREATE_TIME_ >= #{paramCondition.lastStart}
and f.CREATE_TIME_ <= #{paramCondition.lastEnd}
and
(
f.ASSIGNEE_ = #{paramCondition.username}
or
f.ASSIGNEE_ in ${paramCondition.username}
)
order by f.CREATE_TIME_ desc
select
f.ID_ AS "id", f.REV_ AS "rev", f.EXECUTION_ID_ AS "executionId", f.PROC_INST_ID_ AS "procInstId",
f.PROC_DEF_ID_ AS "procDefId", f.NAME_ AS "name", f.PARENT_TASK_ID_ AS "parentTaskId",
f.DESCRIPTION_ AS "description", f.TASK_DEF_KEY_ AS "taskDefKey", f.OWNER_ AS "owner",
f.ASSIGNEE_ AS "assignee", f.DELEGATION_ AS "delegation", f.PRIORITY_ AS "priority", f.CREATE_TIME_ AS
"createTime", f.DUE_DATE_ AS "dueDate",
f.CATEGORY_ AS "category", f.SUSPENSION_STATE_ AS "suspensionState", f.TENANT_ID_ AS "tenantId", f.FORM_KEY_ AS
"formKey", f.CLAIM_TIME_ AS "claimTime",
p.NAME_ as "pname",
p.DGRM_RESOURCE_NAME_ as "dgrmResourceName"
from act_ru_task f
left join ACT_RE_PROCDEF p on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
or
f.NAME_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
or
f.ASSIGNEE_ LIKE CONCAT(CONCAT('%', #{paramCondition.keywords}),'%')
)
and f.CREATE_TIME_ >= #{paramCondition.lastStart}
and f.CREATE_TIME_ <= #{paramCondition.lastEnd}
and
(
f.ASSIGNEE_ = #{paramCondition.username}
or
f.ASSIGNEE_ in ${paramCondition.username}
)
order by f.CREATE_TIME_ desc
select
f.ID_ AS "id", f.REV_ AS "rev", f.EXECUTION_ID_ AS "executionId", f.PROC_INST_ID_ AS "procInstId",
f.PROC_DEF_ID_ AS "procDefId", f.NAME_ AS "name", f.PARENT_TASK_ID_ AS "parentTaskId",
f.DESCRIPTION_ AS "description", f.TASK_DEF_KEY_ AS "taskDefKey", f.OWNER_ AS "owner",
f.ASSIGNEE_ AS "assignee", f.DELEGATION_ AS "delegation", f.PRIORITY_ AS "priority", f.CREATE_TIME_ AS
"createTime", f.DUE_DATE_ AS "dueDate",
f.CATEGORY_ AS "category", f.SUSPENSION_STATE_ AS "suspensionState", f.TENANT_ID_ AS "tenantId", f.FORM_KEY_ AS
"formKey", f.CLAIM_TIME_ AS "claimTime",
p.NAME_ as "pname",
p.DGRM_RESOURCE_NAME_ as "dgrmResourceName"
from act_ru_task f
left join ACT_RE_PROCDEF p on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE '%' || #{paramCondition.keywords} || '%'
or
f.NAME_ LIKE '%' || #{paramCondition.keywords} || '%'
or
f.ASSIGNEE_ LIKE '%' || #{paramCondition.keywords} || '%'
)
and f.CREATE_TIME_ >= to_timestamp(#{paramCondition.lastStart},'yyyy-mm-dd hh24:mi:ss')
and f.CREATE_TIME_ <= to_timestamp(#{paramCondition.lastEnd},'yyyy-mm-dd hh24:mi:ss')
and
(
f.ASSIGNEE_ = #{paramCondition.username}
or
f.ASSIGNEE_ in ${paramCondition.username}
)
order by f.CREATE_TIME_ desc
select
f.ID_ AS "id", f.REV_ AS "rev", f.EXECUTION_ID_ AS "executionId", f.PROC_INST_ID_ AS "procInstId",
f.PROC_DEF_ID_ AS "procDefId", f.NAME_ AS "name", f.PARENT_TASK_ID_ AS "parentTaskId",
f.DESCRIPTION_ AS "description", f.TASK_DEF_KEY_ AS "taskDefKey", f.OWNER_ AS "owner",
f.ASSIGNEE_ AS "assignee", f.DELEGATION_ AS "delegation", f.PRIORITY_ AS "priority", f.CREATE_TIME_ AS
"createTime", f.DUE_DATE_ AS "dueDate",
f.CATEGORY_ AS "category", f.SUSPENSION_STATE_ AS "suspensionState", f.TENANT_ID_ AS "tenantId", f.FORM_KEY_ AS
"formKey", f.CLAIM_TIME_ AS "claimTime",
p.NAME_ as "pname",
p.DGRM_RESOURCE_NAME_ as "dgrmResourceName"
from act_ru_task f
left join ACT_RE_PROCDEF p on f.PROC_DEF_ID_ = p.ID_
where 1=1
and
(
p.NAME_ LIKE '%' || #{paramCondition.keywords} || '%'
or
f.NAME_ LIKE '%' || #{paramCondition.keywords} || '%'
or
f.ASSIGNEE_ LIKE '%' || #{paramCondition.keywords} || '%'
)
and f.CREATE_TIME_ >= to_date(#{paramCondition.lastStart},'yyyy-mm-dd hh24:mi:ss')
and f.CREATE_TIME_ <= to_date(#{paramCondition.lastEnd},'yyyy-mm-dd hh24:mi:ss')
and
(
f.ASSIGNEE_ = #{paramCondition.username}
or
f.ASSIGNEE_ in ${paramCondition.username}
)
order by f.CREATE_TIME_ desc