fix
This commit is contained in:
parent
f25b863f38
commit
92b5bfd676
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue