service.java.vm 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package ${packageName}.service;
  2. import java.util.List;
  3. import ${packageName}.domain.${ClassName};
  4. #if($table.tree)
  5. import com.ruoyi.common.core.domain.Ztree;
  6. #end
  7. /**
  8. * ${functionName}Service接口
  9. *
  10. * @author ${author}
  11. * @date ${datetime}
  12. */
  13. public interface I${ClassName}Service
  14. {
  15. /**
  16. * 查询${functionName}
  17. *
  18. * @param ${pkColumn.javaField} ${functionName}ID
  19. * @return ${functionName}
  20. */
  21. public ${ClassName} select${ClassName}ById(${pkColumn.javaType} ${pkColumn.javaField});
  22. /**
  23. * 查询${functionName}列表
  24. *
  25. * @param ${className} ${functionName}
  26. * @return ${functionName}集合
  27. */
  28. public List<${ClassName}> select${ClassName}List(${ClassName} ${className});
  29. /**
  30. * 新增${functionName}
  31. *
  32. * @param ${className} ${functionName}
  33. * @return 结果
  34. */
  35. public int insert${ClassName}(${ClassName} ${className});
  36. /**
  37. * 修改${functionName}
  38. *
  39. * @param ${className} ${functionName}
  40. * @return 结果
  41. */
  42. public int update${ClassName}(${ClassName} ${className});
  43. /**
  44. * 批量删除${functionName}
  45. *
  46. * @param ids 需要删除的数据ID
  47. * @return 结果
  48. */
  49. public int delete${ClassName}ByIds(String ids);
  50. /**
  51. * 删除${functionName}信息
  52. *
  53. * @param ${pkColumn.javaField} ${functionName}ID
  54. * @return 结果
  55. */
  56. public int delete${ClassName}ById(${pkColumn.javaType} ${pkColumn.javaField});
  57. #if($table.tree)
  58. /**
  59. * 查询${functionName}树列表
  60. *
  61. * @return 所有${functionName}信息
  62. */
  63. public List<Ztree> select${ClassName}Tree();
  64. #end
  65. }