初始化
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
##导入宏定义
|
||||
$!{define.vm}
|
||||
$!{mybatisCodehelper.vm}
|
||||
|
||||
##设置表后缀(宏定义)
|
||||
#set($daoName = $tool.append($tableInfo.name, ${daoSuffix}))
|
||||
##设置回调
|
||||
#set($daoSavePath = $tool.append(${mapperSrcFolder},"/",${mapperPackageName.replace(".","/")}))
|
||||
|
||||
$!callback.setSavePath($daoSavePath)
|
||||
$!callback.setFileName($tool.append($daoName, ".java"))
|
||||
|
||||
package ${mapperPackageName};
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import $!{modelPackageName}.$!{tableInfo.name};
|
||||
|
||||
##表注释(宏定义)
|
||||
#tableComment("表数据库访问层.")
|
||||
public interface $!{tableInfo.name}Dao extends BaseMapper<$!tableInfo.name> {
|
||||
}
|
Reference in New Issue
Block a user