提交 | 用户 | age
|
9e1c8d
|
1 |
package com.hx.other.service.dao.mapper; |
G |
2 |
|
|
3 |
import java.util.List; |
|
4 |
import java.util.Map; |
|
5 |
import com.hx.mybatisTool.SqlSentence; |
|
6 |
import com.hx.other.service.model.Employee; |
|
7 |
|
|
8 |
public interface EmployeeMapper { |
|
9 |
/**新增,返回主键*/ |
|
10 |
int insert(Employee employee); |
|
11 |
/**新增,返回主键*/ |
|
12 |
int insertById(Employee employee); |
|
13 |
/**查询条数*/ |
|
14 |
int selectCount(SqlSentence sqlSentence); |
|
15 |
/**查询条数*/ |
|
16 |
int selectCountSql(SqlSentence sqlSentence); |
|
17 |
/**查询列表,返回实体类的List*/ |
|
18 |
List<Employee> selectList(SqlSentence sqlSentence); |
|
19 |
/**查询列表,返回Map的List*/ |
|
20 |
List<Map<String,Object>> selectListMap(SqlSentence sqlSentence); |
|
21 |
/**查询,返回单个实体*/ |
|
22 |
Employee selectOne(SqlSentence sqlSentence); |
|
23 |
/**查询,返回单个map*/ |
|
24 |
Map<String,Object> selectOneMap(SqlSentence sqlSentence); |
|
25 |
/**查询,返回实体类没有大数据的*/ |
|
26 |
Employee selectOneByKey(Object object); |
|
27 |
/**查询,返回实体类有大数据的*/ |
|
28 |
Employee selectOneByKeyBlob(Object object); |
|
29 |
/**更新,返回更新数量*/ |
|
30 |
int updateWhere(SqlSentence sqlSentence); |
|
31 |
/**更新,返回更新数量*/ |
|
32 |
int updateAll(Employee employee); |
|
33 |
/**删除,返回删除数量*/ |
|
34 |
int deleteWhere(SqlSentence sqlSentence); |
|
35 |
/**删除,返回删除数量*/ |
|
36 |
int deleteById(Object object); |
|
37 |
} |