Merge pull request 'fix:高级检索修复审批状态查询' (#80) from fix/Query_task_approval_status into test

Reviewed-on: #80
pull/82/head
cuihaojie 1 year ago
commit 5eef5ac101

@ -499,19 +499,6 @@
</if> </if>
${izupuser.likeend} ${izupuser.likeend}
</if> </if>
<if test="izApprovalStatus != null">
${izApprovalStatus.rulesOp} tcp.FROMUSERID ${izApprovalStatus.dataOp} ${izApprovalStatus.likestar}
<!-- #{fromuserid.value}-->
<if test="izApprovalStatus.value instanceof java.util.List">
<foreach item="item" collection="izApprovalStatus.value" open="" separator="," close="">
#{item}
</foreach>
</if>
<if test="!izApprovalStatus.value instanceof java.util.List">
#{izApprovalStatus.value}
</if>
${izApprovalStatus.likeend}
</if>
<if test="iztaskrrom != null"> <if test="iztaskrrom != null">
${iztaskrrom.rulesOp} tcp.FROMSOURCEID ${iztaskrrom.dataOp} ${iztaskrrom.likestar} ${iztaskrrom.rulesOp} tcp.FROMSOURCEID ${iztaskrrom.dataOp} ${iztaskrrom.likestar}
<!-- #{fromuserid.value}--> <!-- #{fromuserid.value}-->
@ -655,6 +642,12 @@
where tc.ASSIGNEE = #{searchassignee} where tc.ASSIGNEE = #{searchassignee}
and tc.TENANTID = #{searchtenantid} and tc.TENANTID = #{searchtenantid}
and tc.STATES = 2 and tc.STATES = 2
<if test="izApprovalStatus != null ">
${izApprovalStatus.rulesOp}
(
#{izApprovalStatus.value} ${izApprovalStatus.dataOp} COALESCE(uf.STATSHIS, 1)
)
</if>
UNION UNION
select tc.*, select tc.*,
uf.COMMENTHIS, uf.COMMENTHIS,
@ -675,6 +668,12 @@
<if test="thisLoginUserid != null"> <if test="thisLoginUserid != null">
and uf.USERID = #{thisLoginUserid} and uf.USERID = #{thisLoginUserid}
</if> </if>
<if test="izApprovalStatus != null ">
${izApprovalStatus.rulesOp}
(
#{izApprovalStatus.value} ${izApprovalStatus.dataOp} COALESCE(uf.STATSHIS, 1)
)
</if>
) as tcp ) as tcp
<include refid="Base_Where_union"> <include refid="Base_Where_union">
</include> </include>
@ -703,6 +702,12 @@
<if test="thisLoginUserid != null"> <if test="thisLoginUserid != null">
and uf.USERID = #{thisLoginUserid} and uf.USERID = #{thisLoginUserid}
</if> </if>
<if test="izApprovalStatus != null ">
${izApprovalStatus.rulesOp}
(
#{izApprovalStatus.value} ${izApprovalStatus.dataOp} COALESCE(uf.STATSHIS, 1)
)
</if>
) as tcp ) as tcp
<include refid="Base_Where_union"> <include refid="Base_Where_union">
</include> </include>

Loading…
Cancel
Save