Merge branch 'dev'

This commit is contained in:
wangliwen 2022-12-13 11:00:26 +08:00
commit 34ea6630f3
1 changed files with 15 additions and 7 deletions

View File

@ -29,12 +29,20 @@
</resultMap>
<select id="getMyProcessInstancePage" parameterType="map" resultMap="ProcessActivityEntity">
SELECT aht.*, arp.NAME_ as DEF_NAME, ahp.BUSINESS_KEY_, ahp.START_TIME_, ahp.END_TIME_,
ahp.START_USER_ID_, arp.VERSION_ as DEF_VERSION_
FROM (SELECT DISTINCT PROC_DEF_ID_, PROC_INST_ID_,ASSIGNEE_ FROM ACT_HI_TASKINST) aht
LEFT JOIN ACT_HI_PROCINST ahp on aht.PROC_INST_ID_ = ahp.PROC_INST_ID_
LEFT JOIN ACT_RE_PROCDEF arp on aht.PROC_DEF_ID_ = arp.ID_
WHERE aht.ASSIGNEE_ = #{userId}
SELECT
aht.*,
arp.NAME_ AS DEF_NAME,
ahp.BUSINESS_KEY_,
ahp.START_TIME_,
ahp.END_TIME_,
ahp.START_USER_ID_,
arp.VERSION_ AS DEF_VERSION_
FROM
( SELECT DISTINCT PROC_DEF_ID_, PROC_INST_ID_, ASSIGNEE_ FROM ACT_HI_TASKINST ) aht
LEFT JOIN ACT_HI_PROCINST ahp ON aht.PROC_INST_ID_ = ahp.PROC_INST_ID_
LEFT JOIN ACT_RE_PROCDEF arp ON aht.PROC_DEF_ID_ = arp.ID_
WHERE
aht.ASSIGNEE_ = #{userId}
<if test="processInstanceId != null">
and aht.PROC_INST_ID_ = #{processInstanceId}
</if>