| | |
| | | import org.sxkj.fw.detection.excel.FwDeviceConfigExcel; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.mp.base.BaseService; |
| | | import org.springblade.core.tool.api.R; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 设备配置表 服务类 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-07 |
| | | * @since 2026-01-08 |
| | | */ |
| | | public interface IFwDeviceConfigService extends BaseService<FwDeviceConfigEntity> { |
| | | /** |
| | |
| | | */ |
| | | IPage<FwDeviceConfigVO> selectFwDeviceConfigPage(IPage<FwDeviceConfigVO> page, FwDeviceConfigVO fwDeviceConfig); |
| | | |
| | | /** |
| | | * 获取最新配置 |
| | | * |
| | | * @param deviceId |
| | | * @return |
| | | */ |
| | | FwDeviceConfigEntity selectLatestByDeviceId(Long deviceId); |
| | | |
| | | /** |
| | | * 获取最新版本配置 |
| | | * |
| | | * @param deviceId |
| | | * @return |
| | | */ |
| | | FwDeviceConfigEntity selectLatestVersionByDeviceId(Long deviceId); |
| | | |
| | | /** |
| | | * 获取最新版本号 |
| | | * |
| | | * @param deviceId |
| | | * @return |
| | | */ |
| | | Integer selectMaxConfigVersion(Long deviceId); |
| | | |
| | | /** |
| | | * 重置最新标记 |
| | | * |
| | | * @param deviceId |
| | | * @param excludeId |
| | | * @return |
| | | */ |
| | | int resetLatestByDeviceId(Long deviceId, Long excludeId); |
| | | |
| | | /** |
| | | * 新增或修改设备配置 |
| | | * |
| | | * @param fwDeviceConfig |
| | | * @return |
| | | */ |
| | | R saveOrUpdateConfig(FwDeviceConfigEntity fwDeviceConfig); |
| | | |
| | | |
| | | /** |
| | | * 导出数据 |