init2
This commit is contained in:
33
doc/easycode/mapper.java.vm
Normal file
33
doc/easycode/mapper.java.vm
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user