Service.java.template 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package org.dromara.${module}.${submodule}.service;
  2. import org.dromara.${module}.${submodule}.domain.bo.${ClassName}Bo;
  3. import org.dromara.${module}.${submodule}.domain.vo.${ClassName}Vo;
  4. import org.dromara.common.mybatis.core.page.PageQuery;
  5. import org.dromara.common.mybatis.core.page.TableDataInfo;
  6. import java.util.Collection;
  7. import java.util.List;
  8. /**
  9. * ${tableComment}Service接口
  10. *
  11. * @author ${author}
  12. * @date ${date}
  13. */
  14. public interface I${ClassName}Service {
  15. /**
  16. * 查询${tableComment}
  17. */
  18. ${ClassName}Vo queryById(${pkType} ${pkField});
  19. /**
  20. * 查询${tableComment}列表
  21. */
  22. List<${ClassName}Vo> queryList(${ClassName}Bo bo);
  23. /**
  24. * 分页查询${tableComment}列表
  25. */
  26. TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo, PageQuery pageQuery);
  27. /**
  28. * 新增${tableComment}
  29. */
  30. Boolean insertByBo(${ClassName}Bo bo);
  31. /**
  32. * 修改${tableComment}
  33. */
  34. Boolean updateByBo(${ClassName}Bo bo);
  35. /**
  36. * 校验并批量删除${tableComment}
  37. */
  38. Boolean deleteWithValidByIds(Collection<${pkType}> ids, Boolean isValid);
  39. }