# tk.mybatis mapper扩展功能 **Repository Path**: asgards/mapper-ext ## Basic Information - **Project Name**: tk.mybatis mapper扩展功能 - **Description**: tk.mybatis mapper扩展功能,增加selectCount,selectExist,selectMaxId, selectMaxCreateTime等功能,并支持sharding-jdbc 注解模式 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-10-15 - **Last Updated**: 2023-09-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #tk.mybatis mapper扩展功能 ## Quick Start http://localhost:8080/index.html # 基于tk.mybatis mapper 见: https://gitee.com/free/Mapper ## 目标 * 支持对常用功能的统计,查询,以简化查询功能。 * 增加一些新特性。 ## 功能特性 * 支持selectIds select id from table_name where condition * 支持selectMaxId select max(id) from table_name where condition * 支持selectCountExist select exists(select 1 from table_name where condition limit 1) * 支持selectCountExistByExample select exists(select 1 from table_name where condition limit 1) * 支持selectCountAndMinMaxTimeByExample select count(*) count,min(create_time),max(create_time) from table_name where * 支持sharding-jdbc注解,见mapper-sharding模块 * 支持按id取模分表 * 支持按时间分表(按日/月或年),表名格式支持日期格化yyyy-MM-dd HH配置 ## 使用 * 配置见:MybatisConfiguration.java,MybatisLoadInit.java * 使用见DflRoleBiz.java ## 演示示例 见: IDflRoleBizMapperExtTest.java