mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-19 09:25:54 +08:00
发布v1.1版本
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import com.ruoyi.iot.domain.AlertLog;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备告警Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-01-13
|
||||
*/
|
||||
@Repository
|
||||
public interface AlertLogMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备告警
|
||||
*
|
||||
* @param alertLogId 设备告警主键
|
||||
* @return 设备告警
|
||||
*/
|
||||
public AlertLog selectAlertLogByAlertLogId(Long alertLogId);
|
||||
|
||||
/**
|
||||
* 查询设备告警列表
|
||||
*
|
||||
* @param alertLog 设备告警
|
||||
* @return 设备告警集合
|
||||
*/
|
||||
public List<AlertLog> selectAlertLogList(AlertLog alertLog);
|
||||
|
||||
/**
|
||||
* 新增设备告警
|
||||
*
|
||||
* @param alertLog 设备告警
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAlertLog(AlertLog alertLog);
|
||||
|
||||
/**
|
||||
* 修改设备告警
|
||||
*
|
||||
* @param alertLog 设备告警
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAlertLog(AlertLog alertLog);
|
||||
|
||||
/**
|
||||
* 删除设备告警
|
||||
*
|
||||
* @param alertLogId 设备告警主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAlertLogByAlertLogId(Long alertLogId);
|
||||
|
||||
/**
|
||||
* 批量删除设备告警
|
||||
*
|
||||
* @param alertLogIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAlertLogByAlertLogIds(Long[] alertLogIds);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.iot.domain.Alert;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 设备告警Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-01-13
|
||||
*/
|
||||
@Repository
|
||||
public interface AlertMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备告警
|
||||
*
|
||||
* @param alertId 设备告警主键
|
||||
* @return 设备告警
|
||||
*/
|
||||
public Alert selectAlertByAlertId(Long alertId);
|
||||
|
||||
/**
|
||||
* 查询设备告警列表
|
||||
*
|
||||
* @param alert 设备告警
|
||||
* @return 设备告警集合
|
||||
*/
|
||||
public List<Alert> selectAlertList(Alert alert);
|
||||
|
||||
/**
|
||||
* 新增设备告警
|
||||
*
|
||||
* @param alert 设备告警
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAlert(Alert alert);
|
||||
|
||||
/**
|
||||
* 修改设备告警
|
||||
*
|
||||
* @param alert 设备告警
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAlert(Alert alert);
|
||||
|
||||
/**
|
||||
* 删除设备告警
|
||||
*
|
||||
* @param alertId 设备告警主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAlertByAlertId(Long alertId);
|
||||
|
||||
/**
|
||||
* 批量删除设备告警
|
||||
*
|
||||
* @param alertIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAlertByAlertIds(Long[] alertIds);
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import com.ruoyi.iot.domain.Category;
|
||||
import com.ruoyi.iot.model.IdAndName;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品分类Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface CategoryMapper
|
||||
{
|
||||
/**
|
||||
* 查询产品分类
|
||||
*
|
||||
* @param categoryId 产品分类主键
|
||||
* @return 产品分类
|
||||
*/
|
||||
public Category selectCategoryByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 查询产品分类列表
|
||||
*
|
||||
* @param category 产品分类
|
||||
* @return 产品分类集合
|
||||
*/
|
||||
public List<Category> selectCategoryList(Category category);
|
||||
|
||||
/**
|
||||
* 查询产品简短分类列表
|
||||
*
|
||||
* @return 产品分类集合
|
||||
*/
|
||||
public List<IdAndName> selectCategoryShortList();
|
||||
|
||||
/**
|
||||
* 新增产品分类
|
||||
*
|
||||
* @param category 产品分类
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCategory(Category category);
|
||||
|
||||
/**
|
||||
* 修改产品分类
|
||||
*
|
||||
* @param category 产品分类
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCategory(Category category);
|
||||
|
||||
/**
|
||||
* 删除产品分类
|
||||
*
|
||||
* @param categoryId 产品分类主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCategoryByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 批量删除产品分类
|
||||
*
|
||||
* @param categoryIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCategoryByCategoryIds(Long[] categoryIds);
|
||||
|
||||
/**
|
||||
* 分类下的产品数量
|
||||
*
|
||||
* @param categoryIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int productCountInCategorys(Long[] categoryIds);
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import com.ruoyi.iot.domain.DeviceJob;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 调度任务信息 数据层
|
||||
*
|
||||
* @author kerwincui
|
||||
*/
|
||||
@Repository
|
||||
public interface DeviceJobMapper
|
||||
{
|
||||
/**
|
||||
* 查询调度任务日志集合
|
||||
*
|
||||
* @param job 调度信息
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<DeviceJob> selectJobList(DeviceJob job);
|
||||
|
||||
/**
|
||||
* 根据设备Ids查询调度任务日志集合
|
||||
*
|
||||
* @param deviceIds 设备ID数组
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<DeviceJob> selectShortJobListByDeviceIds(Long[] deviceIds);
|
||||
|
||||
/**
|
||||
* 查询所有调度任务
|
||||
*
|
||||
* @return 调度任务列表
|
||||
*/
|
||||
public List<DeviceJob> selectJobAll();
|
||||
|
||||
/**
|
||||
* 通过调度ID查询调度任务信息
|
||||
*
|
||||
* @param jobId 调度ID
|
||||
* @return 角色对象信息
|
||||
*/
|
||||
public DeviceJob selectJobById(Long jobId);
|
||||
|
||||
/**
|
||||
* 通过调度ID删除调度任务信息
|
||||
*
|
||||
* @param jobId 调度ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJobById(Long jobId);
|
||||
|
||||
/**
|
||||
* 批量删除调度任务信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJobByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 根据设备Ids批量删除调度任务信息
|
||||
*
|
||||
* @param deviceIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJobByDeviceIds(Long[] deviceIds);
|
||||
|
||||
/**
|
||||
* 修改调度任务信息
|
||||
*
|
||||
* @param job 调度任务信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateJob(DeviceJob job);
|
||||
|
||||
/**
|
||||
* 新增调度任务信息
|
||||
*
|
||||
* @param job 调度任务信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertJob(DeviceJob job);
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import com.ruoyi.iot.domain.DeviceLog;
|
||||
import com.ruoyi.iot.model.MonitorModel;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备日志Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-01-13
|
||||
*/
|
||||
@Repository
|
||||
public interface DeviceLogMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备日志
|
||||
*
|
||||
* @param logId 设备日志主键
|
||||
* @return 设备日志
|
||||
*/
|
||||
public DeviceLog selectDeviceLogByLogId(Long logId);
|
||||
|
||||
/**
|
||||
* 查询设备日志列表
|
||||
*
|
||||
* @param deviceLog 设备日志
|
||||
* @return 设备日志集合
|
||||
*/
|
||||
public List<DeviceLog> selectDeviceLogList(DeviceLog deviceLog);
|
||||
|
||||
/**
|
||||
* 查询设备监测数据
|
||||
*
|
||||
* @param deviceLog 设备日志
|
||||
* @return 设备日志集合
|
||||
*/
|
||||
public List<MonitorModel> selectMonitorList(DeviceLog deviceLog);
|
||||
|
||||
/**
|
||||
* 新增设备日志
|
||||
*
|
||||
* @param deviceLog 设备日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceLog(DeviceLog deviceLog);
|
||||
|
||||
/**
|
||||
* 修改设备日志
|
||||
*
|
||||
* @param deviceLog 设备日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceLog(DeviceLog deviceLog);
|
||||
|
||||
/**
|
||||
* 删除设备日志
|
||||
*
|
||||
* @param logId 设备日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceLogByLogId(Long logId);
|
||||
|
||||
/**
|
||||
* 批量删除设备日志
|
||||
*
|
||||
* @param logIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceLogByLogIds(Long[] logIds);
|
||||
|
||||
/**
|
||||
* 根据设备Ids批量删除设备日志
|
||||
*
|
||||
* @param deviceIds 需要删除的数据设备Ids
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceLogByDeviceIds(Long[] deviceIds);
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import com.ruoyi.iot.domain.Device;
|
||||
import com.ruoyi.iot.model.AuthenticateInputModel;
|
||||
import com.ruoyi.iot.model.DeviceAllShortOutput;
|
||||
import com.ruoyi.iot.model.DeviceAuthenticateModel;
|
||||
import com.ruoyi.iot.model.DeviceShortOutput;
|
||||
import com.ruoyi.iot.model.ThingsModels.ThingsModelValuesInput;
|
||||
import com.ruoyi.iot.model.ThingsModels.ThingsModelValuesOutput;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface DeviceMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备
|
||||
*
|
||||
* @param deviceId 设备主键
|
||||
* @return 设备
|
||||
*/
|
||||
public Device selectDeviceByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 根据设备编号查询设备
|
||||
*
|
||||
* @param serialNumber 设备主键
|
||||
* @return 设备
|
||||
*/
|
||||
public Device selectDeviceBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 根据设备编号查询简介设备
|
||||
*
|
||||
* @param serialNumber 设备主键
|
||||
* @return 设备
|
||||
*/
|
||||
public Device selectShortDeviceBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 根据设备编号查询设备认证信息
|
||||
*
|
||||
* @param model 设备编号和产品ID
|
||||
* @return 设备
|
||||
*/
|
||||
public DeviceAuthenticateModel selectDeviceAuthenticate(AuthenticateInputModel model);
|
||||
|
||||
/**
|
||||
* 查询设备和运行状态
|
||||
*
|
||||
* @param deviceId 设备主键
|
||||
* @return 设备
|
||||
*/
|
||||
public DeviceShortOutput selectDeviceRunningStatusByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 查询设备的物模型值
|
||||
*
|
||||
* @param serialNumber 设备编号
|
||||
* @return 设备
|
||||
*/
|
||||
public ThingsModelValuesOutput selectDeviceThingsModelValueBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 修改设备的物模型值
|
||||
*
|
||||
* @param input 设备ID和物模型值
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceThingsModelValue(ThingsModelValuesInput input);
|
||||
|
||||
|
||||
/**
|
||||
* 查询设备列表
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 设备集合
|
||||
*/
|
||||
public List<Device> selectDeviceList(Device device);
|
||||
|
||||
/**
|
||||
* 查询设备简短列表
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 设备集合
|
||||
*/
|
||||
public List<DeviceShortOutput> selectDeviceShortList(Device device);
|
||||
|
||||
/**
|
||||
* 查询所有设备简短列表
|
||||
*
|
||||
* @return 设备集合
|
||||
*/
|
||||
public List<DeviceAllShortOutput> selectAllDeviceShortList();
|
||||
|
||||
/**
|
||||
* 新增设备
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevice(Device device);
|
||||
|
||||
/**
|
||||
* 修改设备
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevice(Device device);
|
||||
|
||||
/**
|
||||
* 更新设备状态
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceStatus(Device device);
|
||||
|
||||
/**
|
||||
* 通过设备编号修改设备
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceBySerialNumber(Device device);
|
||||
|
||||
/**
|
||||
* 删除设备
|
||||
*
|
||||
* @param deviceId 设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 批量删除设备
|
||||
*
|
||||
* @param deviceIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceByDeviceIds(Long[] deviceIds);
|
||||
|
||||
/**
|
||||
* 查询设备序列号的数量
|
||||
* @param deviceNum
|
||||
* @return
|
||||
*/
|
||||
public int getDeviceNumCount(String deviceNum);
|
||||
|
||||
/**
|
||||
* 根据设备IDS删除设备分组
|
||||
* @param deviceIds
|
||||
* @return
|
||||
*/
|
||||
public int deleteDeviceGroupByDeviceIds(Long[] deviceIds);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.iot.domain.DeviceUser;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 设备用户Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface DeviceUserMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备用户
|
||||
*
|
||||
* @param deviceId 设备用户主键
|
||||
* @return 设备用户
|
||||
*/
|
||||
public DeviceUser selectDeviceUserByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 查询设备用户列表
|
||||
*
|
||||
* @param deviceUser 设备用户
|
||||
* @return 设备用户集合
|
||||
*/
|
||||
public List<DeviceUser> selectDeviceUserList(DeviceUser deviceUser);
|
||||
|
||||
/**
|
||||
* 新增设备用户
|
||||
*
|
||||
* @param deviceUser 设备用户
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceUser(DeviceUser deviceUser);
|
||||
|
||||
/**
|
||||
* 修改设备用户
|
||||
*
|
||||
* @param deviceUser 设备用户
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceUser(DeviceUser deviceUser);
|
||||
|
||||
/**
|
||||
* 删除设备用户
|
||||
*
|
||||
* @param deviceId 设备用户主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceUserByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 批量删除设备用户
|
||||
*
|
||||
* @param deviceIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceUserByDeviceIds(Long[] deviceIds);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.iot.domain.Firmware;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 产品固件Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface FirmwareMapper
|
||||
{
|
||||
/**
|
||||
* 查询产品固件
|
||||
*
|
||||
* @param firmwareId 产品固件主键
|
||||
* @return 产品固件
|
||||
*/
|
||||
public Firmware selectFirmwareByFirmwareId(Long firmwareId);
|
||||
|
||||
/**
|
||||
* 查询产品固件列表
|
||||
*
|
||||
* @param firmware 产品固件
|
||||
* @return 产品固件集合
|
||||
*/
|
||||
public List<Firmware> selectFirmwareList(Firmware firmware);
|
||||
|
||||
/**
|
||||
* 新增产品固件
|
||||
*
|
||||
* @param firmware 产品固件
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFirmware(Firmware firmware);
|
||||
|
||||
/**
|
||||
* 修改产品固件
|
||||
*
|
||||
* @param firmware 产品固件
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFirmware(Firmware firmware);
|
||||
|
||||
/**
|
||||
* 删除产品固件
|
||||
*
|
||||
* @param firmwareId 产品固件主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFirmwareByFirmwareId(Long firmwareId);
|
||||
|
||||
/**
|
||||
* 批量删除产品固件
|
||||
*
|
||||
* @param firmwareIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFirmwareByFirmwareIds(Long[] firmwareIds);
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.iot.domain.Group;
|
||||
import com.ruoyi.iot.model.DeviceGroupInput;
|
||||
import com.ruoyi.iot.model.IdOutput;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 设备分组Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface GroupMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备分组
|
||||
*
|
||||
* @param groupId 设备分组主键
|
||||
* @return 设备分组
|
||||
*/
|
||||
public Group selectGroupByGroupId(Long groupId);
|
||||
|
||||
/**
|
||||
* 通过分组ID查询关联的设备ID数组
|
||||
* @param groupId
|
||||
* @return
|
||||
*/
|
||||
public List<IdOutput> selectDeviceIdsByGroupId(Long groupId);
|
||||
|
||||
/**
|
||||
* 查询设备分组列表
|
||||
*
|
||||
* @param group 设备分组
|
||||
* @return 设备分组集合
|
||||
*/
|
||||
public List<Group> selectGroupList(Group group);
|
||||
|
||||
/**
|
||||
* 新增设备分组
|
||||
*
|
||||
* @param group 设备分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGroup(Group group);
|
||||
|
||||
/**
|
||||
* 分组下批量增加设备分组
|
||||
* @param input
|
||||
* @return
|
||||
*/
|
||||
public int insertDeviceGroups(DeviceGroupInput input);
|
||||
|
||||
/**
|
||||
* 修改设备分组
|
||||
*
|
||||
* @param group 设备分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGroup(Group group);
|
||||
|
||||
/**
|
||||
* 删除设备分组
|
||||
*
|
||||
* @param groupId 设备分组主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGroupByGroupId(Long groupId);
|
||||
|
||||
/**
|
||||
* 批量删除分组
|
||||
*
|
||||
* @param groupIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGroupByGroupIds(Long[] groupIds);
|
||||
|
||||
/**
|
||||
* 批量删除设备分组
|
||||
* @param groupIds
|
||||
* @return
|
||||
*/
|
||||
public int deleteDeviceGroupByGroupIds(Long[] groupIds);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.iot.domain.OauthClientDetails;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 云云对接Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-02-07
|
||||
*/
|
||||
@Repository
|
||||
public interface OauthClientDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询云云对接
|
||||
*
|
||||
* @param clientId 云云对接主键
|
||||
* @return 云云对接
|
||||
*/
|
||||
public OauthClientDetails selectOauthClientDetailsByClientId(String clientId);
|
||||
|
||||
/**
|
||||
* 查询云云对接列表
|
||||
*
|
||||
* @param oauthClientDetails 云云对接
|
||||
* @return 云云对接集合
|
||||
*/
|
||||
public List<OauthClientDetails> selectOauthClientDetailsList(OauthClientDetails oauthClientDetails);
|
||||
|
||||
/**
|
||||
* 新增云云对接
|
||||
*
|
||||
* @param oauthClientDetails 云云对接
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOauthClientDetails(OauthClientDetails oauthClientDetails);
|
||||
|
||||
/**
|
||||
* 修改云云对接
|
||||
*
|
||||
* @param oauthClientDetails 云云对接
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOauthClientDetails(OauthClientDetails oauthClientDetails);
|
||||
|
||||
/**
|
||||
* 删除云云对接
|
||||
*
|
||||
* @param clientId 云云对接主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOauthClientDetailsByClientId(String clientId);
|
||||
|
||||
/**
|
||||
* 批量删除云云对接
|
||||
*
|
||||
* @param clientIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOauthClientDetailsByClientIds(String[] clientIds);
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import com.ruoyi.iot.domain.Product;
|
||||
import com.ruoyi.iot.model.ChangeProductStatusModel;
|
||||
import com.ruoyi.iot.model.IdAndName;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface ProductMapper
|
||||
{
|
||||
/**
|
||||
* 查询产品
|
||||
*
|
||||
* @param productId 产品主键
|
||||
* @return 产品
|
||||
*/
|
||||
public Product selectProductByProductId(Long productId);
|
||||
|
||||
/**
|
||||
* 查询产品列表
|
||||
*
|
||||
* @param product 产品
|
||||
* @return 产品集合
|
||||
*/
|
||||
public List<Product> selectProductList(Product product);
|
||||
|
||||
/**
|
||||
* 查询产品简短列表
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 产品集合
|
||||
*/
|
||||
public List<IdAndName> selectProductShortList(Long userId);
|
||||
|
||||
/**
|
||||
* 新增产品
|
||||
*
|
||||
* @param product 产品
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProduct(Product product);
|
||||
|
||||
/**
|
||||
* 修改产品
|
||||
*
|
||||
* @param product 产品
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProduct(Product product);
|
||||
|
||||
/**
|
||||
* 更新产品状态,1-未发布,2-已发布
|
||||
*
|
||||
* @param model
|
||||
* @return 结果
|
||||
*/
|
||||
public int changeProductStatus(ChangeProductStatusModel model);
|
||||
|
||||
/**
|
||||
* 修改物模型JSON
|
||||
*
|
||||
* @param product 产品
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateThingsModelJson(Product product);
|
||||
|
||||
/**
|
||||
* 删除产品
|
||||
*
|
||||
* @param productId 产品主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProductByProductId(Long productId);
|
||||
|
||||
/**
|
||||
* 批量删除产品
|
||||
*
|
||||
* @param productIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProductByProductIds(Long[] productIds);
|
||||
|
||||
/**
|
||||
* 批量删除产品物模型
|
||||
*
|
||||
* @param productIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProductThingsModelByProductIds(Long[] productIds);
|
||||
|
||||
/**
|
||||
* 产品下的固件数量
|
||||
* @param productIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int firmwareCountInProducts(Long[] productIds);
|
||||
|
||||
/**
|
||||
* 产品下的设备数量
|
||||
* @param productIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deviceCountInProducts(Long[] productIds);
|
||||
|
||||
/**
|
||||
* 产品下的物模型数量
|
||||
* @param productId 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int thingsCountInProduct(Long productId);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.iot.domain.Scene;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 场景联动Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-01-13
|
||||
*/
|
||||
@Repository
|
||||
public interface SceneMapper
|
||||
{
|
||||
/**
|
||||
* 查询场景联动
|
||||
*
|
||||
* @param sceneId 场景联动主键
|
||||
* @return 场景联动
|
||||
*/
|
||||
public Scene selectSceneBySceneId(Long sceneId);
|
||||
|
||||
/**
|
||||
* 查询场景联动列表
|
||||
*
|
||||
* @param scene 场景联动
|
||||
* @return 场景联动集合
|
||||
*/
|
||||
public List<Scene> selectSceneList(Scene scene);
|
||||
|
||||
/**
|
||||
* 新增场景联动
|
||||
*
|
||||
* @param scene 场景联动
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScene(Scene scene);
|
||||
|
||||
/**
|
||||
* 修改场景联动
|
||||
*
|
||||
* @param scene 场景联动
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScene(Scene scene);
|
||||
|
||||
/**
|
||||
* 删除场景联动
|
||||
*
|
||||
* @param sceneId 场景联动主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSceneBySceneId(Long sceneId);
|
||||
|
||||
/**
|
||||
* 批量删除场景联动
|
||||
*
|
||||
* @param sceneIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSceneBySceneIds(Long[] sceneIds);
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import com.ruoyi.iot.domain.ThingsModel;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 物模型Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface ThingsModelMapper
|
||||
{
|
||||
/**
|
||||
* 查询物模型
|
||||
*
|
||||
* @param modelId 物模型主键
|
||||
* @return 物模型
|
||||
*/
|
||||
public ThingsModel selectThingsModelByModelId(Long modelId);
|
||||
|
||||
/**
|
||||
* 查询物模型列表
|
||||
*
|
||||
* @param thingsModel 物模型
|
||||
* @return 物模型集合
|
||||
*/
|
||||
public List<ThingsModel> selectThingsModelList(ThingsModel thingsModel);
|
||||
|
||||
/**
|
||||
* 根据产品ID数组获取物模型列表
|
||||
* @param modelIds
|
||||
* @return
|
||||
*/
|
||||
public List<ThingsModel> selectThingsModelListByProductIds(Long[] modelIds);
|
||||
|
||||
/**
|
||||
* 新增物模型
|
||||
*
|
||||
* @param thingsModel 物模型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertThingsModel(ThingsModel thingsModel);
|
||||
|
||||
/**
|
||||
* 批量新增物模型
|
||||
* @param thingsModels
|
||||
* @return
|
||||
*/
|
||||
public int insertBatchThingsModel(List<ThingsModel> thingsModels);
|
||||
|
||||
/**
|
||||
* 修改物模型
|
||||
*
|
||||
* @param thingsModel 物模型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateThingsModel(ThingsModel thingsModel);
|
||||
|
||||
/**
|
||||
* 删除物模型
|
||||
*
|
||||
* @param modelId 物模型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteThingsModelByModelId(Long modelId);
|
||||
|
||||
/**
|
||||
* 批量删除物模型
|
||||
*
|
||||
* @param modelIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteThingsModelByModelIds(Long[] modelIds);
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import com.ruoyi.iot.domain.ThingsModelTemplate;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 通用物模型Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface ThingsModelTemplateMapper
|
||||
{
|
||||
/**
|
||||
* 查询通用物模型
|
||||
*
|
||||
* @param templateId 通用物模型主键
|
||||
* @return 通用物模型
|
||||
*/
|
||||
public ThingsModelTemplate selectThingsModelTemplateByTemplateId(Long templateId);
|
||||
|
||||
/**
|
||||
* 根据id数组查询通用物模型集合
|
||||
* @param templateIds
|
||||
* @return
|
||||
*/
|
||||
public List<ThingsModelTemplate> selectThingsModelTemplateByTemplateIds (Long[] templateIds);
|
||||
|
||||
/**
|
||||
* 查询通用物模型列表
|
||||
*
|
||||
* @param thingsModelTemplate 通用物模型
|
||||
* @return 通用物模型集合
|
||||
*/
|
||||
public List<ThingsModelTemplate> selectThingsModelTemplateList(ThingsModelTemplate thingsModelTemplate);
|
||||
|
||||
/**
|
||||
* 新增通用物模型
|
||||
*
|
||||
* @param thingsModelTemplate 通用物模型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertThingsModelTemplate(ThingsModelTemplate thingsModelTemplate);
|
||||
|
||||
/**
|
||||
* 修改通用物模型
|
||||
*
|
||||
* @param thingsModelTemplate 通用物模型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateThingsModelTemplate(ThingsModelTemplate thingsModelTemplate);
|
||||
|
||||
/**
|
||||
* 删除通用物模型
|
||||
*
|
||||
* @param templateId 通用物模型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteThingsModelTemplateByTemplateId(Long templateId);
|
||||
|
||||
/**
|
||||
* 批量删除通用物模型
|
||||
*
|
||||
* @param templateIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteThingsModelTemplateByTemplateIds(Long[] templateIds);
|
||||
}
|
||||
Reference in New Issue
Block a user