|
@ -89,7 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
from dc_device d |
|
|
from dc_device d |
|
|
join dc_online_sum s on s.device_id = d.id |
|
|
join dc_online_sum s on s.device_id = d.id |
|
|
where |
|
|
where |
|
|
s.statistical_date = CURDATE() |
|
|
DATE(s.statistical_date) = CURDATE() |
|
|
<if test="type.length != 0"> |
|
|
<if test="type.length != 0"> |
|
|
and (d.device_type in |
|
|
and (d.device_type in |
|
|
<foreach item="typeItem" collection="type" open="(" separator="," close=")"> |
|
|
<foreach item="typeItem" collection="type" open="(" separator="," close=")"> |
|
|