IPlusService.java 1.01 KB
package com.huaheng.framework.mybatisPlus;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import java.util.List;
import java.util.Map;


public interface IPlusService<T> extends IService<T> {

    T selectFirstEntity(T entity) throws IllegalAccessException ;


    List<T> selectListEntityByEqual(T entity) throws IllegalAccessException ;


    List<Map<String, Object>> selectListMapByEqual(T entity, String SqlSelect) throws IllegalAccessException ;


    Page<Map<String, Object>> selectMapsPage(Page page, T entity) throws IllegalAccessException ;


    Page<T> selectPage(Page<T> page, T entity) throws IllegalAccessException ;


    Integer selectCount(T entity) throws IllegalAccessException;


    boolean updateByCondition(T record, T condition) throws IllegalAccessException;


    boolean delete(T entity) throws IllegalAccessException ;


    <T> EntityWrapper getWrapper (T entity)  throws IllegalAccessException ;
}