🐞 fix: 报警分析-厂界在线 正确统计报警次数
This commit is contained in:
parent
54f02f32ab
commit
7389545496
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue