类 IdListProvider
- java.lang.Object
-
- tk.mybatis.mapper.mapperhelper.MapperTemplate
-
- tk.mybatis.mapper.additional.idlist.IdListProvider
-
public class IdListProvider extends tk.mybatis.mapper.mapperhelper.MapperTemplate通过 ids 字符串的各种操作 ids 如 "1,2,3"- 作者:
- liuzh
-
-
构造器概要
构造器 构造器 说明 IdListProvider(Class<?> mapperClass, tk.mybatis.mapper.mapperhelper.MapperHelper mapperHelper)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 StringdeleteByIdList(org.apache.ibatis.mapping.MappedStatement ms)根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段static voidnotEmpty(List<?> list, String errorMsg)保证 idList 不能为空StringselectByIdList(org.apache.ibatis.mapping.MappedStatement ms)根据主键字符串进行查询,类中只有存在一个带有@Id注解的字段
-
-
-
构造器详细资料
-
IdListProvider
public IdListProvider(Class<?> mapperClass, tk.mybatis.mapper.mapperhelper.MapperHelper mapperHelper)
-
-
方法详细资料
-
notEmpty
public static void notEmpty(List<?> list, String errorMsg)
保证 idList 不能为空- 参数:
list-errorMsg-
-
deleteByIdList
public String deleteByIdList(org.apache.ibatis.mapping.MappedStatement ms)
根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段- 参数:
ms-- 返回:
-
selectByIdList
public String selectByIdList(org.apache.ibatis.mapping.MappedStatement ms)
根据主键字符串进行查询,类中只有存在一个带有@Id注解的字段- 参数:
ms-- 返回:
-
-