fix
This commit is contained in:
parent
f25b863f38
commit
92b5bfd676
|
|
@ -59,8 +59,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<where>
|
<where>
|
||||||
<if test="maId != null "> and d.ma_id = #{maId}</if>
|
<if test="maId != null "> and d.ma_id = #{maId}</if>
|
||||||
<if test="code != null and code != ''"> and d.code = #{code}</if>
|
<if test="code != null and code != ''"> and d.code = #{code}</if>
|
||||||
<if test="typeId != null and level != null and level != 1">
|
<if test="typeId != null">
|
||||||
and d.type_id = #{typeId} or t.parent_id = #{typeId}
|
<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>
|
||||||
<if test="maStatus != null and maStatus != ''"> and d.ma_status = #{maStatus}</if>
|
<if test="maStatus != null and maStatus != ''"> and d.ma_status = #{maStatus}</if>
|
||||||
<if test="leaseScope != null "> and d.lease_scope = #{leaseScope}</if>
|
<if test="leaseScope != null "> and d.lease_scope = #{leaseScope}</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue