|
@@ -63,12 +63,6 @@
|
|
|
<if test="query.deviceId!=null">
|
|
<if test="query.deviceId!=null">
|
|
|
and device_id like concat('%',#{query.deviceId},'%')
|
|
and device_id like concat('%',#{query.deviceId},'%')
|
|
|
</if>
|
|
</if>
|
|
|
- <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>
|
|
|
|
|
<if test="query.alias!=null">
|
|
<if test="query.alias!=null">
|
|
|
and alias like concat('%',#{query.alias},'%')
|
|
and alias like concat('%',#{query.alias},'%')
|
|
|
</if>
|
|
</if>
|
|
@@ -79,6 +73,12 @@
|
|
|
) AS d
|
|
) AS d
|
|
|
LEFT JOIN (select * from bus_infusion_history) as i
|
|
LEFT JOIN (select * from bus_infusion_history) as i
|
|
|
on i.id=d.infusion_id
|
|
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>
|
|
|
order by d.create_time desc
|
|
order by d.create_time desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|