This commit is contained in:
2025-10-15 12:35:14 +08:00
parent d6f224deb5
commit fd2f9e3ef3
3 changed files with 146 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
##导入宏定义
$!{define.vm}
##设置表后缀(宏定义)
#setTableSuffix("Mapper")
##保存文件(宏定义)
#save("/mapper", "Mapper.java")
##包路径(宏定义)
#setPackageSuffix("mapper")
##定义实体对象名
#set($entityName = $!tool.firstLowerCase($!tableInfo.name))
import $!{tableInfo.savePackageName}.entity.$!tableInfo.name;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
##表注释(宏定义)
#tableComment("数据库访问")
public interface $!{tableName} extends BaseMapper<$!tableInfo.name> {
/**
* 自定义分页
*
* @param page
* @param $entityName
* @return
*/
List<$!tableInfo.name> selectPage(IPage page, $!tableInfo.name $entityName);
}