大屏:装备共享排名

This commit is contained in:
sxu 2025-01-07 13:29:22 +08:00
parent 16efe3dbac
commit 9fa708625b
3 changed files with 19 additions and 0 deletions

View File

@ -215,5 +215,7 @@ public interface DevInfoMapper {
List<DevInfo> getIdleDevRatio(); List<DevInfo> getIdleDevRatio();
List<DevInfo> getLeaseCountByTypeName(); List<DevInfo> getLeaseCountByTypeName();
List<DevInfo> getDeviceShareRanking();
} }

View File

@ -77,6 +77,13 @@ public class LargeScreenController {
return AjaxResult.success(groupedList.get(randomValue)); return AjaxResult.success(groupedList.get(randomValue));
} }
@ApiOperation("装备共享排名")
@GetMapping("/getDeviceShareRanking")
public AjaxResult getDeviceShareRanking() {
List<DevInfo> list = devInfoMapper.getDeviceShareRanking();
return AjaxResult.success(list);
}
@ApiOperation("订单数据") @ApiOperation("订单数据")
@GetMapping("/orderData") @GetMapping("/orderData")
public AjaxResult getOrderData() { public AjaxResult getOrderData() {

View File

@ -999,4 +999,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ma_type mt3 on mt3.type_id=mt4.parent_id LEFT JOIN ma_type mt3 on mt3.type_id=mt4.parent_id
group by type_name group by type_name
</select> </select>
<select id="getDeviceShareRanking" resultType="com.bonus.material.device.domain.DevInfo">
select
sd.dept_name as com_name,count(mdi.ma_id) as dev_count
from ma_dev_info mdi
LEFT JOIN sys_dept sd on sd.dept_id=mdi.own_co
where mdi.ma_status in (2,3)
group by mdi.own_co
order by dev_count desc
</select>
</mapper> </mapper>