SysConfigMapper.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package com.ruoyi.system.mapper;
  2. import java.util.List;
  3. import com.ruoyi.system.domain.SysConfig;
  4. import org.apache.ibatis.annotations.Param;
  5. /**
  6. * 参数配置 数据层
  7. *
  8. * @author ruoyi
  9. */
  10. public interface SysConfigMapper
  11. {
  12. /**
  13. * 查询参数配置信息
  14. *
  15. * @param config 参数配置信息
  16. * @return 参数配置信息
  17. */
  18. public SysConfig selectConfig(SysConfig config);
  19. /**
  20. * 查询参数配置列表
  21. *
  22. * @param config 参数配置信息
  23. * @return 参数配置集合
  24. */
  25. public List<SysConfig> selectConfigList(SysConfig config);
  26. /**
  27. * 根据键名查询参数配置信息
  28. *
  29. * @param configKey 参数键名
  30. * @return 参数配置信息
  31. */
  32. public SysConfig checkConfigKeyUnique(String configKey);
  33. /**
  34. * 新增参数配置
  35. *
  36. * @param config 参数配置信息
  37. * @return 结果
  38. */
  39. public int insertConfig(SysConfig config);
  40. /**
  41. * 修改参数配置
  42. *
  43. * @param config 参数配置信息
  44. * @return 结果
  45. */
  46. public int updateConfig(SysConfig config);
  47. /**
  48. * 删除参数配置
  49. *
  50. * @param configId 参数ID
  51. * @return 结果
  52. */
  53. public int deleteConfigById(Long configId);
  54. /**
  55. * 批量删除参数信息
  56. *
  57. * @param configIds 需要删除的参数ID
  58. * @return 结果
  59. */
  60. public int deleteConfigByIds(Long[] configIds);
  61. List<SysConfig> selectRightList(@Param("type") String type);
  62. int updateThresholdConfig(SysConfig sysConfig);
  63. }