package ${package.Mapper};
|
|
import ${package.Entity}.${entity};
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import ${superMapperClassPackage};
|
import ${package.Other}.vo.${voInfo.voName};
|
import ${package.Other}.form.${formInfo.formName};
|
import java.util.List;
|
#if(${mapperAnnotation})
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
#end
|
|
/**
|
* $!{table.comment} Mapper 接口
|
*
|
* @author ${author}
|
* @since ${date}
|
*/
|
#if(${mapperAnnotation})
|
@Mapper
|
#end
|
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
|
|
/**
|
* id查找${table.comment}
|
* @param id
|
* @return
|
*/
|
${voInfo.voName} getById(Integer id);
|
|
/**
|
* 分页
|
*/
|
IPage getPage(IPage page, @Param("query") ${entity}Query query);
|
|
}
|