下级已办待办查询BUG修复
This commit is contained in:
parent
048059e46b
commit
411bbfc6c1
|
|
@ -647,23 +647,21 @@
|
|||
from TSTaskList ta
|
||||
LEFT JOIN TSTwfProcessNode n on ta.WorkflowID = n.processid
|
||||
where ta.BUSSTATUS in ('-1', '0', '1', '3', '5')
|
||||
<where>
|
||||
<if test="customParamMap.childUnitSwitch != null and customParamMap.childUnitSwitch != ''">
|
||||
<choose>
|
||||
<when test='customParamMap.childUnitSwitch eq "1"'>
|
||||
and (
|
||||
n.CURRUSERID = #{customParamMap.userId}
|
||||
or exists(select 1 from CXAICORG.T_USERS tu left join CXAICORG.T_ORGUNITS torg on tu.ORGUNITID = torg.ORGUNITID
|
||||
where n.CURRUSERID = tu.USERID and torg.ORGNUMBER like #{customParamMap.myOrgNumberLike}
|
||||
and torg.ORGNUMBER != #{customParamMap.myOrgNumber}
|
||||
))
|
||||
</when>
|
||||
<otherwise>
|
||||
and n.CURRUSERID = #{customParamMap.userId}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
</where>
|
||||
<if test="customParamMap.childUnitSwitch != null and customParamMap.childUnitSwitch != ''">
|
||||
<choose>
|
||||
<when test='customParamMap.childUnitSwitch eq "1"'>
|
||||
and (
|
||||
n.CURRUSERID = #{customParamMap.userId}
|
||||
or exists(select 1 from CXAICORG.T_USERS tu left join CXAICORG.T_ORGUNITS torg on tu.ORGUNITID = torg.ORGUNITID
|
||||
where n.CURRUSERID = tu.USERID and torg.ORGNUMBER like #{customParamMap.myOrgNumberLike}
|
||||
and torg.ORGNUMBER != #{customParamMap.myOrgNumber}
|
||||
))
|
||||
</when>
|
||||
<otherwise>
|
||||
and n.CURRUSERID = #{customParamMap.userId}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
)
|
||||
) m
|
||||
<where>
|
||||
|
|
|
|||
Loading…
Reference in New Issue