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

META-INF.templates.mapper.vm Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
/*
 *      Copyright (c) 2018-2058, Zodiac Stack All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 */
package $!{package.Mapper};

import $!{package.Entity}.$!{entity};
#set($voPackage=$package.Entity.replace("entity","vo"))
import $!{voPackage}.$!{entity}VO;
import $!{superMapperClassPackage};
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;

/**
 * $!{table.comment} Mapper 接口。。
 *
 * @author $!{author}
 * @since $!{date}
 */
#if($!{kotlin})
interface $!{table.mapperName} : $!{superMapperClass}<$!{entity}>
#else
public interface $!{table.mapperName} extends $!{superMapperClass}<$!{entity}> {

    /**
     * 自定义分页。
     *
     * @param page 分页对象
     * @param $!{table.entityPath} 数据VO类
     * @return $!{entity}VO列表
     */
    List<$!{entity}VO> select$!{entity}Page(IPage page, $!{entity}VO $!{table.entityPath});

}
#end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy