|
@@ -2,6 +2,7 @@ package com.gxzc.zen.common.base
|
|
|
|
|
|
import com.baomidou.mybatisplus.mapper.BaseMapper
|
|
|
import com.baomidou.mybatisplus.mapper.Wrapper
|
|
|
+import com.baomidou.mybatisplus.plugins.pagination.Pagination
|
|
|
import org.apache.ibatis.annotations.Param
|
|
|
|
|
|
/**
|
|
@@ -16,7 +17,12 @@ interface BaseMapper<T> : BaseMapper<T> {
|
|
|
/**
|
|
|
* 通过自定义SQL查询
|
|
|
*/
|
|
|
- fun selectByParams(params: MutableMap<String, Any>?): MutableList<T>
|
|
|
+ fun selectByParams(@Param("p") params: MutableMap<String, Any?>?): MutableList<T>
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 自定义SQL查询 分页
|
|
|
+ */
|
|
|
+ fun selectByParamsPage(page: Pagination, @Param("p") params: LinkedHashMap<String, Any?>?): MutableList<T>
|
|
|
|
|
|
/**
|
|
|
* 自定义更新逻辑(忽略mp自带的逻辑删除功能)
|