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