TemplateConfigMapper.java 1.7 KB

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