This commit is contained in:
tangzh 2025-07-19 21:06:21 +08:00
parent 80d46efc8d
commit eab570d844
2 changed files with 2 additions and 4 deletions

View File

@ -77,7 +77,7 @@ export default {
calculable: true,
series: [
{
name: '设备指令统计',
name: '品牌统计',
type: 'pie',
roseType: 'radius',
radius: [15, 95],

View File

@ -3,9 +3,7 @@
<mapper namespace="me.zhengjie.modules.system.mapper.DashboardMapper">
<select id="getPieChatData" resultType="me.zhengjie.modules.system.domain.dto.DashboardDataVo">
select t.text, t.value from (
select CONCAT(d.brand, ' | ', d.model) text, count(cl.id) value from bus_device d LEFT JOIN bus_command_log cl on d.id = cl.device_id GROUP BY d.id ORDER BY value desc
) t limit 10
select d.brand text, count(1) value from bus_device d group by d.brand
</select>
<select id="getCardData" resultType="me.zhengjie.modules.system.domain.dto.DashboardDataVo">