SysConfigMapper.java 1.5 KB

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