调整
This commit is contained in:
parent
80d46efc8d
commit
eab570d844
@ -77,7 +77,7 @@ export default {
|
||||
calculable: true,
|
||||
series: [
|
||||
{
|
||||
name: '设备指令统计',
|
||||
name: '品牌统计',
|
||||
type: 'pie',
|
||||
roseType: 'radius',
|
||||
radius: [15, 95],
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user