Browse Source

优化在线率导出功能

develop
zhaoxianglong 8 months ago
parent
commit
1f0a696007
  1. 10
      zc-business/src/main/resources/mapper/business/StatusMapper.xml

10
zc-business/src/main/resources/mapper/business/StatusMapper.xml

@ -112,7 +112,15 @@
AND s.device_no = #{status.deviceNo}
</if>
<if test="status.type != null">
AND (d.device_type = #{status.type} or d.child_type=#{status.type})
AND (d.device_type in
<foreach item="typeItem" collection="status.types" open="(" separator="," close=")">
#{typeItem}
</foreach>
or d.child_type in
<foreach item="typeItem" collection="status.types" open="(" separator="," close=")">
#{typeItem}
</foreach>
)
</if>
<if test="status.deviceId != null">
AND s.device_id = #{status.deviceId}

Loading…
Cancel
Save