34 lines
788 B
Plaintext
34 lines
788 B
Plaintext
##导入宏定义
|
|
$!{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);
|
|
}
|