|
@@ -121,10 +121,10 @@
|
|
|
<if test="zoneId != null">
|
|
<if test="zoneId != null">
|
|
|
and v.id in(select resource_id from imcs_z_zone_productionresource e where e.zone_id = #{zoneId})
|
|
and v.id in(select resource_id from imcs_z_zone_productionresource e where e.zone_id = #{zoneId})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="code == null and code == ''">
|
|
|
|
|
|
|
+ <if test="code == null and code != ''">
|
|
|
and v.code = #{code}
|
|
and v.code = #{code}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="name == null and name == ''">
|
|
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
and v.name like concat('%', #{name}, '%')
|
|
and v.name like concat('%', #{name}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="ip == null and ip == ''">
|
|
<if test="ip == null and ip == ''">
|