fix (farm): 大屏
- 统计图bug
This commit is contained in:
@@ -46,5 +46,24 @@
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectDeviceTypeCount"
|
||||
resultType="cn.iocoder.yudao.module.farm.controller.admin.digitalcockpit.vo.DeviceInfoRespVO$DeviceInfo">
|
||||
|
||||
SELECT
|
||||
device_type as deviceTypeName,
|
||||
COUNT(*) as deviceCount
|
||||
FROM farm_device_info
|
||||
<where>
|
||||
deleted = b'0'
|
||||
<if test="baseId != null and baseId != ''">
|
||||
AND base_id = #{baseId}
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY device_type
|
||||
ORDER BY deviceCount DESC
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user