wangmengzhao
2023-12-13 d8228730095cdcaccb40dd2dc290fc44779e340a
wumei-smart-master/springboot/wumei-iot/src/main/java/com/ruoyi/iot/service/IDeviceService.java
@@ -43,19 +43,28 @@
    /**
     * 查询总设备数(台)
     *
     * @param id
     * @return
     * @throws Exception
     */
    public int selectDeviceCount(String tenantName)throws Exception;
    public AjaxResult selectDeviceCount(int id) throws Exception;
    /**
     * 根据登录用户的id查询设备的使用人数
     *
     * @param tenantName
     * @param id
     * @return
     * @throws Exception
     */
    public int selectUserDeviceByCount(String tenantName) throws Exception;
    public int selectUserDeviceByCount(int id) throws Exception;
    /**
     * 查询所有的设备
     *
     * @return
     * @throws Exception
     */
    public List<Device> selectDeviceAll() throws Exception;
    /**
     * 根据设备编号查询简介设备
@@ -126,7 +135,7 @@
     * @param device 设备
     * @return 设备集合
     */
    public List<DeviceShortOutput> selectDeviceShortList(Device device);
    public List<DeviceShortOutput> selectDeviceShortList(Device device, boolean repairFlag);
    /**
     * 新增设备
@@ -229,4 +238,5 @@
     * @return 结果
     */
    public int updateDeviceUserBySN(List<String> snList, Long userId);
}