TemplateConfigMapper.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package com.gitee.gen.mapper;
  2. import com.gitee.gen.entity.TemplateConfig;
  3. import org.apache.ibatis.annotations.Mapper;
  4. import java.util.List;
  5. @Mapper
  6. public interface TemplateConfigMapper {
  7. TemplateConfig getByName(String name);
  8. /**
  9. * 查询所有记录
  10. *
  11. * @return 返回集合,没有返回空List
  12. */
  13. List<TemplateConfig> listAll();
  14. /**
  15. * 根据主键查询
  16. *
  17. * @param id 主键
  18. * @return 返回记录,没有返回null
  19. */
  20. TemplateConfig getById(Integer id);
  21. /**
  22. * 新增,插入所有字段
  23. *
  24. * @param templateConfig 新增的记录
  25. * @return 返回影响行数
  26. */
  27. int insert(TemplateConfig templateConfig);
  28. /**
  29. * 新增,忽略null字段
  30. *
  31. * @param templateConfig 新增的记录
  32. * @return 返回影响行数
  33. */
  34. int insertIgnoreNull(TemplateConfig templateConfig);
  35. /**
  36. * 修改,修改所有字段
  37. *
  38. * @param templateConfig 修改的记录
  39. * @return 返回影响行数
  40. */
  41. int update(TemplateConfig templateConfig);
  42. /**
  43. * 修改,忽略null字段
  44. *
  45. * @param templateConfig 修改的记录
  46. * @return 返回影响行数
  47. */
  48. int updateIgnoreNull(TemplateConfig templateConfig);
  49. /**
  50. * 删除记录
  51. *
  52. * @param templateConfig 待删除的记录
  53. * @return 返回影响行数
  54. */
  55. int delete(TemplateConfig templateConfig);
  56. List<TemplateConfig> listByGroupId(String groupId);
  57. int updateGroupNameByGroupId(Integer groupId, String groupName);
  58. int deleteByGroupId(Integer id);
  59. }