🐞 fix: 报警分析-厂界在线 正确统计报警次数
This commit is contained in:
parent
54f02f32ab
commit
7389545496
|
@ -216,8 +216,7 @@
|
|||
pp.dept_name as "pp",
|
||||
ppp.dept_name as "ppp",
|
||||
td.address,
|
||||
td.name,
|
||||
d.zt
|
||||
td.name
|
||||
|
||||
FROM th_device_report d
|
||||
LEFT JOIN th_device td ON d.sn = td.sn
|
||||
|
@ -236,7 +235,7 @@
|
|||
<if test="deviceSn != null and deviceSn != ''">
|
||||
AND d.sn = #{deviceSn}
|
||||
</if>
|
||||
GROUP BY d.sn, p.dept_name, pp.dept_name, ppp.dept_name, td.address, td.name, d.zt
|
||||
GROUP BY d.sn, p.dept_name, pp.dept_name, ppp.dept_name, td.address, td.name
|
||||
ORDER BY count DESC
|
||||
</select>
|
||||
|
||||
|
|
Loading…
Reference in New Issue