fwq
2024-09-27 932bb2fc449ec0774db8b52163e86e4cbf612198
提交 | 用户 | 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     /**查询列表,返回实体类的List*/
16     List<${entityName}> selectList(SqlSentence sqlSentence);
17     /**查询列表,返回Map的List*/
18     List<Map<String,Object>> selectListMap(SqlSentence sqlSentence);
19     /**查询,返回单个实体*/
20     ${entityName} selectOne(SqlSentence sqlSentence);
21     /**查询,返回单个map*/
22     Map<String,Object> selectOneMap(SqlSentence sqlSentence);
23     /**查询,返回实体类没有大数据的*/
24     ${entityName} selectOneByKey(Object object);
25     /**查询,返回实体类有大数据的*/
26     ${entityName} selectOneByKeyBlob(Object object);
27     /**更新,返回更新数量*/
28     int updateWhere(SqlSentence sqlSentence);
29     /**更新,返回更新数量*/
30     int updateAll(${entityName} ${entityNameSmall});
31     /**删除,返回删除数量*/
32     int deleteWhere(SqlSentence sqlSentence);
33     /**删除,返回删除数量*/
34     int deleteById(Object object);
35 }