|
@@ -65,19 +65,19 @@
|
|
|
from (select * from bus_device
|
|
from (select * from bus_device
|
|
|
<where>
|
|
<where>
|
|
|
is_delete=0
|
|
is_delete=0
|
|
|
- <if test="query.productNo!=null">
|
|
|
|
|
|
|
+ <if test="query.productNo!=null and query.productNo != ''">
|
|
|
and product_no like concat('%',#{query.productNo},'%')
|
|
and product_no like concat('%',#{query.productNo},'%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="query.deviceId!=null">
|
|
|
|
|
|
|
+ <if test="query.deviceId!=null and query.deviceId != ''">
|
|
|
and device_id like concat('%',#{query.deviceId},'%')
|
|
and device_id like concat('%',#{query.deviceId},'%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="query.alias!=null">
|
|
|
|
|
|
|
+ <if test="query.alias!=null and query.alias != ''">
|
|
|
and alias like concat('%',#{query.alias},'%')
|
|
and alias like concat('%',#{query.alias},'%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="query.status!=null">
|
|
|
|
|
|
|
+ <if test="query.status!=null and query.status != ''">
|
|
|
and status = #{query.status}
|
|
and status = #{query.status}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="query.iccId!=null">
|
|
|
|
|
|
|
+ <if test="query.iccId!=null and query.iccId !=''">
|
|
|
and sim_iccid like concat('%',#{query.iccId},'%')
|
|
and sim_iccid like concat('%',#{query.iccId},'%')
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|