bug修改

This commit is contained in:
lym
2024-05-20 17:01:11 +08:00
parent 7553f1d2d7
commit f1f79e18bd
10 changed files with 70 additions and 57 deletions
@@ -24,21 +24,21 @@
p.deleted
from process p
<where>
p.deleted = 0
<if test="page.userId != null and page.userId != '' ">
and p.id in (select process_id from process_user where user_id = #{page.userId})
p.deleted = 0 and p.organ_id = #{vo.organId}
<if test="vo.userId != null and vo.userId != '' ">
and p.id in (select process_id from process_user where user_id = #{vo.userId})
</if>
<if test="page.name != null and page.name != '' ">
and p.name like concat('%', #{page.name}, '%')
<if test="vo.name != null and vo.name != '' ">
and p.name like concat('%', #{vo.name}, '%')
</if>
<if test="page.isEnabled != null">
and p.is_enabled = #{page.isEnabled}
<if test="vo.isEnabled != null">
and p.is_enabled = #{vo.isEnabled}
</if>
<if test="page.type != null">
and p.type = #{page.type}
<if test="vo.type != null">
and p.type = #{vo.type}
</if>
<if test="page.pieceType != null">
and p.piece_type = #{page.pieceType}
<if test="vo.pieceType != null">
and p.piece_type = #{vo.pieceType}
</if>
</where>
</select>