You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
package ${packageName}.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import ${packageName}.domain.${ClassName};
|
|
#if($table.sub)
|
|
import ${packageName}.domain.${subClassName};
|
|
#end
|
|
|
|
/**
|
|
* ${functionName}Mapper接口
|
|
*
|
|
* @author ${author}
|
|
* @date ${datetime}
|
|
*/
|
|
public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
|
|
{
|
|
/**
|
|
* 分页查询${functionName}列表
|
|
*
|
|
* param page 分页信息
|
|
* @param ${className} ${functionName}信息
|
|
* @return ${functionName}集合
|
|
*/
|
|
public IPage<${ClassName}> select${ClassName}Page(IPage<${ClassName}> page,@Param("entity") ${ClassName} ${className});
|
|
|
|
/**
|
|
* 查询所有${functionName}列表
|
|
*
|
|
* @param ${className} ${functionName}信息
|
|
* @return ${functionName}集合
|
|
*/
|
|
public List<${ClassName}> select${ClassName}List(${ClassName} ${className});
|
|
}
|