guang
2023-05-05 566411019444e53ca143298ee490d33cf510e28c
提交 | 用户 | 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.User;
7
8 public interface UserMapper {
9     /**新增,返回主键*/
10     int insert(User user);
11     /**新增,返回主键*/
12     int insertById(User user);
13     /**查询条数*/
14     int selectCount(SqlSentence sqlSentence);
15     /**查询条数*/
16     int selectCountSql(SqlSentence sqlSentence);
17     /**查询列表,返回实体类的List*/
18     List<User> selectList(SqlSentence sqlSentence);
19     /**查询列表,返回Map的List*/
20     List<Map<String,Object>> selectListMap(SqlSentence sqlSentence);
21     /**查询,返回单个实体*/
22     User selectOne(SqlSentence sqlSentence);
23     /**查询,返回单个map*/
24     Map<String,Object> selectOneMap(SqlSentence sqlSentence);
25     /**查询,返回实体类没有大数据的*/
26     User selectOneByKey(Object object);
27     /**查询,返回实体类有大数据的*/
28     User selectOneByKeyBlob(Object object);
29     /**更新,返回更新数量*/
30     int updateWhere(SqlSentence sqlSentence);
31     /**更新,返回更新数量*/
32     int updateAll(User user);
33     /**删除,返回删除数量*/
34     int deleteWhere(SqlSentence sqlSentence);
35     /**删除,返回删除数量*/
36     int deleteById(Object object);
37 }