|
@@ -306,8 +306,8 @@
|
|
|
LEFT JOIN t_b_device_in_out io ON io.service_id = s.id
|
|
|
LEFT JOIN sys_device d ON d.serial_no = io.device_serial_no
|
|
|
LEFT JOIN sys_supplier su ON su.id = d.supplier_id
|
|
|
- <where>
|
|
|
- and io.id IS NOT NULL
|
|
|
+ <where> 1 = 1
|
|
|
+ and io.id IS NOT NULL and su.id is not null
|
|
|
<if test="serviceUnitId != null and serviceUnitId != ''">
|
|
|
and s.id = #{serviceUnitId}
|
|
|
</if>
|