public class IdListProvider extends MapperTemplate
ids 如 "1,2,3"
entityClassMap, mapperClass, mapperHelper, methodMap
Constructor and Description |
---|
IdListProvider(Class<?> mapperClass,
MapperHelper mapperHelper) |
Modifier and Type | Method and Description |
---|---|
String |
deleteByIdList(org.apache.ibatis.mapping.MappedStatement ms)
根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段
|
static void |
notEmpty(List<?> list,
String errorMsg)
保证 idList 不能为空
|
String |
selectByIdList(org.apache.ibatis.mapping.MappedStatement ms)
根据主键字符串进行查询,类中只有存在一个带有@Id注解的字段
|
addMethodMap, createSqlSource, dynamicSQL, getConfig, getEntityClass, getIDENTITY, getIDENTITY, isBEFORE, isCheckExampleEntityClass, isNotEmpty, setResultType, setSqlSource, setSqlSource, supportMethod, tableName
public IdListProvider(Class<?> mapperClass, MapperHelper mapperHelper)
public static void notEmpty(List<?> list, String errorMsg)
list
- errorMsg
- public String deleteByIdList(org.apache.ibatis.mapping.MappedStatement ms)
ms
- public String selectByIdList(org.apache.ibatis.mapping.MappedStatement ms)
ms
- Copyright © 2018. All rights reserved.