This commit is contained in:
parent
4d5b1bca09
commit
9d3f74efd3
|
|
@ -91,10 +91,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN ma_type mt1 ON mt1.type_id = mt2.parent_id and mt1.del_flag = '0'
|
LEFT JOIN ma_type mt1 ON mt1.type_id = mt2.parent_id and mt1.del_flag = '0'
|
||||||
<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="deviceName != null and deviceName != ''">
|
<if test="deviceName != null and deviceName != ''">
|
||||||
and d.device_name like concat('%',#{deviceName},'%')
|
and d.device_name like concat('%',#{deviceName},'%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="deviceName != null and deviceName != ''">
|
||||||
|
and d.code like concat('%',#{code},'%')
|
||||||
|
</if>
|
||||||
|
<if test="deviceName != null and deviceName != ''">
|
||||||
|
and d.identify_code like concat('%',#{identifyCode},'%')
|
||||||
|
</if>
|
||||||
<if test="typeId != null">
|
<if test="typeId != null">
|
||||||
<choose>
|
<choose>
|
||||||
<when test="level != null and level == 4">
|
<when test="level != null and level == 4">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue