IPlusService.java
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 ;
}