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'
|
||||
<where>
|
||||
<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 != ''">
|
||||
and d.device_name like concat('%',#{deviceName},'%')
|
||||
</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">
|
||||
<choose>
|
||||
<when test="level != null and level == 4">
|
||||
|
|
|
|||
Loading…
Reference in New Issue