All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.mapper.ftl Maven / Gradle / Ivy

package ${packageName}.mappers;

import com.lframework.starter.mybatis.mapper.BaseMapper;
import ${packageName}.entity.${className};
<#if queryParams??>
import ${packageName}.vo.${moduleName}.${bizName}.Query${className}Vo;

import ${packageName}.dto.${moduleName}.${bizName}.${className}Dto;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 

* ${classDescription} Mapper 接口 *

* <#if author??> * @author ${author} */ public interface ${className}Mapper extends BaseMapper<${className}> { <#if queryParams??> /** * 查询列表 * @param vo * @return */ List${r"<"}${className}Dto${r">"} query(@Param("vo") Query${className}Vo vo); /** * 根据ID查询 */ ${className}Dto getById(<#list keys as key>@Param("${key.name}") ${key.type} ${key.name}<#if key_index != keys?size - 1>, ); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy