⬆️ Upgrading ORM Framework from Mybatis Plus 2.x to Mybatis Plus 3.x

This commit is contained in:
萌萌哒SAKURA酱 committed 2018-11-23 00:58:35 +08:00
1 parent abab6b1859
commit ff47da2767
128 files changed
+1579 -749

No files matched your search

@@ -1,8 +1,26 @@
/*
* Copyright (c) 2018-2025, lengleng 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 pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package ${package}.${moduleName}.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package}.${moduleName}.entity.${className};
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* ${comments}
@@ -10,7 +28,13 @@ import org.apache.ibatis.annotations.Mapper;
* @author ${author}
* @date ${datetime}
*/
@Mapper
public interface ${className}Mapper extends BaseMapper<${className}> {
/**
* ${comments}简单分页查询
* @param ${classname} ${comments}
* @return
*/
IPage<${className}> get${className}Page(Page page, @Param("${classname}") ${className} ${classname});
}