|
|
@@ -73,12 +73,14 @@
|
|
|
) AS d
|
|
|
LEFT JOIN (select * from bus_infusion_history) as i
|
|
|
on i.id=d.infusion_id
|
|
|
- <if test="query.deviceTypes != null and query.deviceTypes.size > 0">
|
|
|
- and type in
|
|
|
- <foreach item="type" index="index" collection="query.deviceTypes" open="(" separator="," close=")">
|
|
|
- #{type, jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
+ <where>
|
|
|
+ <if test="query.deviceTypes != null and query.deviceTypes.size > 0">
|
|
|
+ type in
|
|
|
+ <foreach item="type" index="index" collection="query.deviceTypes" open="(" separator="," close=")">
|
|
|
+ #{type, jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
order by d.create_time desc
|
|
|
</select>
|
|
|
|