This commit is contained in:
sxu 2023-12-08 17:52:22 +08:00
parent f25b863f38
commit 92b5bfd676
1 changed files with 7 additions and 2 deletions

View File

@ -59,8 +59,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if test="maId != null "> and d.ma_id = #{maId}</if>
<if test="code != null and code != ''"> and d.code = #{code}</if>
<if test="typeId != null and level != null and level != 1">
and d.type_id = #{typeId} or t.parent_id = #{typeId}
<if test="typeId != null">
<if test="level != null and level == 2">
and t.parent_id = #{typeId}
</if>
<if test="level != null and level == 3">
and d.type_id = #{typeId}
</if>
</if>
<if test="maStatus != null and maStatus != ''"> and d.ma_status = #{maStatus}</if>
<if test="leaseScope != null "> and d.lease_scope = #{leaseScope}</if>