🐞 fix: 报警分析-厂界在线 正确统计报警次数

This commit is contained in:
LokerL 2024-12-15 19:47:06 +08:00
parent 54f02f32ab
commit 7389545496
1 changed files with 2 additions and 3 deletions

View File

@ -216,8 +216,7 @@
pp.dept_name as "pp", pp.dept_name as "pp",
ppp.dept_name as "ppp", ppp.dept_name as "ppp",
td.address, td.address,
td.name, td.name
d.zt
FROM th_device_report d FROM th_device_report d
LEFT JOIN th_device td ON d.sn = td.sn LEFT JOIN th_device td ON d.sn = td.sn
@ -236,7 +235,7 @@
<if test="deviceSn != null and deviceSn != ''"> <if test="deviceSn != null and deviceSn != ''">
AND d.sn = #{deviceSn} AND d.sn = #{deviceSn}
</if> </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 ORDER BY count DESC
</select> </select>