提交 | 用户 | 时间
|
1ac2bc
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
懒 |
2 |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
3 |
<mapper namespace="cn.stylefeng.guns.workflow.modular.mapper.TaskHistoryMapper"> |
|
4 |
|
|
5 |
<!-- ACT_HI_ACTINST --> |
|
6 |
<sql id="ht"> |
|
7 |
ht.ID_ AS "id_", |
|
8 |
ht.PROC_DEF_ID_ AS "proc_def_id_", |
|
9 |
ht.PROC_INST_ID_ AS "proc_inst_id_", |
|
10 |
ht.EXECUTION_ID_ AS "execution_id_", |
|
11 |
ht.ACT_ID_ AS "act_id_", |
|
12 |
ht.TASK_ID_ AS "task_id_", |
|
13 |
ht.CALL_PROC_INST_ID_ AS "call_proc_inst_id_", |
|
14 |
ht.ACT_NAME_ AS "act_name_", |
|
15 |
ht.ACT_TYPE_ AS "act_type_", |
|
16 |
ht.ASSIGNEE_ AS "assignee_", |
|
17 |
ht.START_TIME_ AS "start_time_", |
|
18 |
ht.END_TIME_ AS "end_time_", |
|
19 |
ht.DURATION_ AS "duration_", |
|
20 |
ht.DELETE_REASON_ AS "delete_reason_", |
|
21 |
ht.TENANT_ID_ AS "tenant_id_" |
|
22 |
</sql> |
|
23 |
|
|
24 |
<select id="historyTaskList" resultType="map"> |
|
25 |
select |
|
26 |
<include refid="ht"/>, |
|
27 |
hv.TEXT_ text_ |
|
28 |
from |
|
29 |
ACT_HI_ACTINST ht |
|
30 |
left join |
|
31 |
ACT_HI_VARINST hv |
|
32 |
on ht.TASK_ID_ = hv.TASK_ID_ |
|
33 |
where 1=1 |
|
34 |
<if test="PROC_INST_ID_ != null and PROC_INST_ID_ != ''"><!-- 流程实例ID --> |
|
35 |
and ht.PROC_INST_ID_ = #{PROC_INST_ID_} |
|
36 |
</if> |
|
37 |
order by ht.ID_ |
|
38 |
</select> |
|
39 |
|
|
40 |
<select id="historyTaskList" resultType="map" databaseId="mssql"> |
|
41 |
select |
|
42 |
<include refid="ht"/>, |
|
43 |
hv.TEXT_ text_ |
|
44 |
from |
|
45 |
ACT_HI_ACTINST ht |
|
46 |
left join |
|
47 |
ACT_HI_VARINST hv |
|
48 |
on ht.TASK_ID_ = hv.TASK_ID_ |
|
49 |
where 1=1 |
|
50 |
<if test="PROC_INST_ID_ != null and PROC_INST_ID_ != ''"><!-- 流程实例ID --> |
|
51 |
and ht.PROC_INST_ID_ = #{PROC_INST_ID_} |
|
52 |
</if> |
|
53 |
order by ht.ID_ |
|
54 |
</select> |
|
55 |
|
|
56 |
<select id="historyTaskList" resultType="map" databaseId="pgsql"> |
|
57 |
select |
|
58 |
<include refid="ht"/>, |
|
59 |
hv.TEXT_ text_ |
|
60 |
from |
|
61 |
ACT_HI_ACTINST ht |
|
62 |
left join |
|
63 |
ACT_HI_VARINST hv |
|
64 |
on ht.TASK_ID_ = hv.TASK_ID_ |
|
65 |
where 1=1 |
|
66 |
<if test="PROC_INST_ID_ != null and PROC_INST_ID_ != ''"><!-- 流程实例ID --> |
|
67 |
and ht.PROC_INST_ID_ = #{PROC_INST_ID_} |
|
68 |
</if> |
|
69 |
order by ht.ID_ |
|
70 |
</select> |
|
71 |
|
|
72 |
<select id="historyTaskList" resultType="map" databaseId="oracle"> |
|
73 |
select |
|
74 |
<include refid="ht"/>, |
|
75 |
hv.TEXT_ "text_" |
|
76 |
from |
|
77 |
ACT_HI_ACTINST ht |
|
78 |
left join |
|
79 |
ACT_HI_VARINST hv |
|
80 |
on ht.TASK_ID_ = hv.TASK_ID_ |
|
81 |
where 1=1 |
|
82 |
<if test="PROC_INST_ID_ != null and PROC_INST_ID_ != ''"><!-- 流程实例ID --> |
|
83 |
and ht.PROC_INST_ID_ = #{PROC_INST_ID_} |
|
84 |
</if> |
|
85 |
order by ht.ID_ |
|
86 |
</select> |
|
87 |
</mapper> |