Commit 7ab92967 by fengshuonan

更新mapper的@param参数

parent 374ca8aa
...@@ -6,6 +6,7 @@ import ${package.EntitySpecResult}.${entity}Result; ...@@ -6,6 +6,7 @@ import ${package.EntitySpecResult}.${entity}Result;
import ${superMapperClassPackage}; import ${superMapperClassPackage};
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -29,7 +30,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> { ...@@ -29,7 +30,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
* @author ${author} * @author ${author}
* @Date ${date} * @Date ${date}
*/ */
List<${entity}Result> customList(${entity}Param paramCondition); List<${entity}Result> customList(@Param("paramCondition") ${entity}Param paramCondition);
/** /**
* 获取map列表 * 获取map列表
...@@ -37,7 +38,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> { ...@@ -37,7 +38,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
* @author ${author} * @author ${author}
* @Date ${date} * @Date ${date}
*/ */
List<Map<String, Object>> customMapList(${entity}Param paramCondition); List<Map<String, Object>> customMapList(@Param("paramCondition") ${entity}Param paramCondition);
/** /**
* 获取分页实体列表 * 获取分页实体列表
...@@ -45,7 +46,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> { ...@@ -45,7 +46,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
* @author ${author} * @author ${author}
* @Date ${date} * @Date ${date}
*/ */
Page<${entity}Result> customPageList(Page page, ${entity}Param paramCondition); Page<${entity}Result> customPageList(@Param("page") Page page, @Param("paramCondition") ${entity}Param paramCondition);
/** /**
* 获取分页map列表 * 获取分页map列表
...@@ -53,7 +54,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> { ...@@ -53,7 +54,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
* @author ${author} * @author ${author}
* @Date ${date} * @Date ${date}
*/ */
Page<Map<String, Object>> customPageMapList(Page page, ${entity}Param paramCondition); Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ${entity}Param paramCondition);
} }
#end #end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment