From 41da7705737adc4365016d2efdf2659ec445abee Mon Sep 17 00:00:00 2001 From: linwei <872216696@qq.com> Date: Wed, 28 Jan 2026 16:49:29 +0800 Subject: [PATCH] 机构权限控制 --- drone-service/drone-fw/src/main/java/org/sxkj/fw/device/service/IFwDeviceService.java | 34 ++++++++++++++++++++++++++++++---- 1 files changed, 30 insertions(+), 4 deletions(-) diff --git a/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/service/IFwDeviceService.java b/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/service/IFwDeviceService.java index c0841e8..0537fae 100644 --- a/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/service/IFwDeviceService.java +++ b/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/service/IFwDeviceService.java @@ -21,12 +21,14 @@ import org.sxkj.fw.cockpit.vo.DeviceStatisticsVO; import org.sxkj.fw.device.dto.FwDeviceDTO; import org.sxkj.fw.device.entity.FwDeviceEntity; +import org.sxkj.fw.device.param.FwDevicePageParam; import org.sxkj.fw.device.vo.CockpitFwDeviceVO; import org.sxkj.fw.device.vo.DeviceTypeStatisticsVO; import org.sxkj.fw.device.vo.FwDeviceVO; import org.sxkj.fw.device.excel.FwDeviceExcel; import com.baomidou.mybatisplus.core.metadata.IPage; import org.springblade.core.mp.base.BaseService; +import org.springblade.core.mp.support.Query; import java.util.List; import java.util.Map; @@ -47,6 +49,15 @@ IPage<FwDeviceEntity> selectFwDevicePage(IPage<FwDeviceEntity> page, FwDeviceDTO fwDevice); /** + * 自定义分页返回 + * + * @param fwDevice + * @param query + * @return + */ + IPage<FwDeviceVO> selectFwDevicePageVo(FwDevicePageParam fwDevice, Query query); + + /** * 列表查询 * * @param isAreaSelect 是否过滤区域 @@ -54,7 +65,7 @@ * @param status 设备状态 * @return */ - List<FwDeviceEntity> selectFwDeviceList(Integer isAreaSelect, Long areaId, Integer status); + List<FwDeviceEntity> selectFwDeviceList(Integer isAreaSelect, Long areaId, Integer status, Integer isTrack); /** @@ -69,7 +80,7 @@ * 设备类型统计 * @return */ - List<DeviceStatisticsVO> statisticalDeviceType(); + List<DeviceStatisticsVO> statisticalDeviceType(List<Long> deptList); /** * 设备统计 - 按类型统计 @@ -81,7 +92,7 @@ * 设备出库去向统计 * @return 统计数据 */ - List<DeviceStatisticsVO> getDeviceOutStatistics(); + List<DeviceStatisticsVO> getDeviceOutStatistics(String effectiveRangeKmIsNotNull); /** * 设备生产厂商统计 @@ -93,7 +104,7 @@ * 设备报警统计 * @return */ - AlarmStatisticsVO statisticalDeviceAtt(); + AlarmStatisticsVO statisticalDeviceAtt(List<Long> deptList); /** * 驾驶舱获取设备列表 @@ -110,4 +121,19 @@ * @return */ Map<Long, String> selectSceneNameByDeviceIds(List<Long> deviceIds); + + /** + * 判断设备是否绑定区域 + * + * @param deviceId + * @return + */ + boolean existsAreaBindByDeviceId(Long deviceId); + + /** + * 新增或修改设备 + * @param fwDeviceEntity + * @return + */ + boolean saveOrUpdateDevice(FwDeviceEntity fwDeviceEntity); } -- Gitblit v1.9.3