serviceSubClass.ftl 919 B

1234567891011121314151617181920212223242526272829303132
  1. package ${servicePackage};
  2. import java.util.List;
  3. import org.jeecgframework.minidao.annotation.Param;
  4. import org.jeecgframework.minidao.pojo.MiniDaoPage;
  5. import ${domainPackage}.${className}Entity;
  6. /**
  7. * 描述:${codeName}
  8. * @author: ${author}
  9. * @since:${nowDate}
  10. * @version:1.0
  11. */
  12. public interface ${className}Service {
  13. public ${className}Entity get(String id);
  14. public int update(${className}Entity ${lowerName});
  15. public void insert(${className}Entity ${lowerName});
  16. public MiniDaoPage<${className}Entity> getAll(${className}Entity ${lowerName},int page,int rows);
  17. public void delete(${className}Entity ${lowerName});
  18. public List<${className}Entity> getBy${foreignKeyUpper}(String ${foreignKey});
  19. public void delBy${foreignKeyUpper}(String ${foreignKey});
  20. public void deleteBy${foreignKeyUpper}(String ${foreignKey});
  21. public Integer getCountBy${foreignKeyUpper}(String ${foreignKey});
  22. }