All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fartherp.framework.database.service.ExtendGenericService Maven / Gradle / Ivy

There is a newer version: 3.0.6
Show newest version
/*
 * Copyright (c) 2018. CK. All rights reserved.
 */

package com.github.fartherp.framework.database.service;


import com.github.fartherp.framework.database.mybatis.plugin.page.Pagination;
import com.github.fartherp.framework.database.mybatis.plugin.search.vo.Searchable;
import com.github.fartherp.framework.database.mybatis.plugin.search.vo.Sort;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: CK
 * @date: 2018/4/21
 */
public interface ExtendGenericService extends GenericService {
    /**
     * 条件查询 searchable
     * @param searchable
     * @return
     */
    Pagination findBySearchable(Searchable searchable);

    /**
     * 条件查询 sort
     * @param sort
     * @return
     */
    List findBySort(Sort sort);

    /**
     * 根据条件统计所有记录数
     *
     * @param searchable
     * @return
     */
    long countBySearchable(Searchable searchable);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy