Class IdListProvider
java.lang.Object
cn.lm.mybatis.mapper.mapperhelper.MapperTemplate
cn.lm.mybatis.mapper.additional.idlist.IdListProvider
通过 ids 字符串的各种操作
ids 如 "1,2,3"
- Author:
- liuzh
-
Field Summary
Fields inherited from class cn.lm.mybatis.mapper.mapperhelper.MapperTemplate
entityClassMap, mapperClass, mapperHelper, methodMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteByIdList(org.apache.ibatis.mapping.MappedStatement ms) 根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段static void保证 idList 不能为空selectByIdList(org.apache.ibatis.mapping.MappedStatement ms) 根据主键字符串进行查询,类中只有存在一个带有@Id注解的字段Methods inherited from class cn.lm.mybatis.mapper.mapperhelper.MapperTemplate
addMethodMap, createSqlSource, dynamicSQL, getConfig, getEntityClass, getIDENTITY, getIDENTITY, isBEFORE, isCheckExampleEntityClass, isNotEmpty, setResultType, setSqlSource, setSqlSource, supportMethod, tableName
-
Constructor Details
-
IdListProvider
-
-
Method Details
-
notEmpty
保证 idList 不能为空- Parameters:
list-errorMsg-
-
deleteByIdList
根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段- Parameters:
ms-- Returns:
-
selectByIdList
根据主键字符串进行查询,类中只有存在一个带有@Id注解的字段- Parameters:
ms-- Returns:
-