SysConfigMapper.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package com.ruoyi.system.mapper;
  2. import com.ruoyi.system.domain.SysConfig;
  3. import org.apache.ibatis.annotations.Mapper;
  4. import java.util.List;
  5. /**
  6. * 参数配置 数据层
  7. *
  8. * @author ruoyi
  9. */
  10. @Mapper
  11. public interface SysConfigMapper {
  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. /**
  62. * 根据key查询value
  63. * @param configKey
  64. * @return
  65. */
  66. String getByConfigKey(String configKey);
  67. }