71 lines
1.7 KiB
Java
71 lines
1.7 KiB
Java
package com.ruoyi.system.mapper;
|
|
|
|
import java.util.List;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.ruoyi.system.domain.UsdtConfig;
|
|
import com.ruoyi.system.domain.UsdtConfigPlus;
|
|
|
|
/**
|
|
* 全局配置Mapper接口
|
|
*
|
|
* @author luqj
|
|
* @date 2026-10-08
|
|
*/
|
|
public interface UsdtConfigMapper extends BaseMapper<UsdtConfigPlus>
|
|
{
|
|
/** 锁定全局配置记录;空表时在 MySQL InnoDB 下同时锁定首记录间隙。 */
|
|
UsdtConfig selectFirstForUpdate();
|
|
|
|
/** 使用旧版本作为条件原子更新加密信封,防止并发轮换互相覆盖。 */
|
|
int rotateEnvelope(@Param("config") UsdtConfig config, @Param("oldVersion") Long oldVersion);
|
|
/**
|
|
* 查询全局配置
|
|
*
|
|
* @param id 全局配置ID
|
|
* @return 全局配置
|
|
*/
|
|
public UsdtConfig selectUsdtConfigById(Long id);
|
|
|
|
/**
|
|
* 查询全局配置列表
|
|
*
|
|
* @param usdtConfig 全局配置
|
|
* @return 全局配置集合
|
|
*/
|
|
public List<UsdtConfig> selectUsdtConfigList(UsdtConfig usdtConfig);
|
|
|
|
/**
|
|
* 新增全局配置
|
|
*
|
|
* @param usdtConfig 全局配置
|
|
* @return 结果
|
|
*/
|
|
public int insertUsdtConfig(UsdtConfig usdtConfig);
|
|
|
|
/**
|
|
* 修改全局配置
|
|
*
|
|
* @param usdtConfig 全局配置
|
|
* @return 结果
|
|
*/
|
|
public int updateUsdtConfig(UsdtConfig usdtConfig);
|
|
|
|
/**
|
|
* 删除全局配置
|
|
*
|
|
* @param id 全局配置ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteUsdtConfigById(Long id);
|
|
|
|
/**
|
|
* 批量删除全局配置
|
|
*
|
|
* @param ids 需要删除的数据ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteUsdtConfigByIds(Long[] ids);
|
|
}
|