M - "实体类"的 Mapper Interface 接口T - 实体类public class UncheckQueryConditionCrudServiceImpl<M extends CrudMapper<T>,T> extends BaseCrudServiceImpl<M,T>
null
即可。切记对于数据库表数据较多的时候,请不要使用此基类,应该使用 BaseCrudServiceImpl,去重写
BaseCrudServiceImpl.checkCommonQueryConditionIsAllNull(SqlCommandType, Result, Object, Map)
方法,这才是比较安全的做法,不然很可能被人使用为直接查询全表的数据。BaseCrudServiceImplcrudMapper, entityClass, fieldColumns, mapperClass, tableInfo| Constructor and Description |
|---|
UncheckQueryConditionCrudServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkCommonQueryConditionIsAllNull(org.apache.ibatis.mapping.SqlCommandType sqlCommandType,
app.myoss.cloud.core.lang.dto.Result<?> result,
T condition,
Map<String,Object> extraCondition)
检查通用查询条件字段是否为空,这里只检查主键id是否为空,防止全表扫描
|
addPageExtraInfo, checkNull4Create, checkPageConditionIsAllNull, checkPrimaryKeyIsNull, checkPrimaryKeyIsNull, checkPrimaryKeyIsNull, checkRecordIfExist4Create, checkRecordIfExist4Update, checkRecordIfExist4Update, convertToOrders, convertToUpdateUseMap, create, create, create, createBatch, createBatch, createBatch, createBatchCallable, createCallable, createValidate, deleteByCondition, deleteByCondition, deleteByPrimaryKey, deleteByPrimaryKey, findByPrimaryKey, findByPrimaryKey, findCount, findCount, findExistRecord4CheckRecord, findList, findListWithSort, findOne, findPage, findPageByHelper, getPrimaryKeyValue, pageHelperQuery, pageQuery, save, save, save, saveOrUpdate, saveOrUpdate, setCrudMapper, setValue4Create, setValue4Update, setValue4Update, updateByCondition, updateByCondition, updateByCondition, updateByConditionCallable, updateByPrimaryKey, updateByPrimaryKey, updateByPrimaryKey, updateByPrimaryKeyCallable, updateUseMapByCondition, updateUseMapByCondition, updateUseMapByCondition, updateUseMapByConditionCallable, validFieldValue, validFieldValuepublic UncheckQueryConditionCrudServiceImpl()
protected boolean checkCommonQueryConditionIsAllNull(org.apache.ibatis.mapping.SqlCommandType sqlCommandType,
app.myoss.cloud.core.lang.dto.Result<?> result,
T condition,
Map<String,Object> extraCondition)
BaseCrudServiceImplcheckCommonQueryConditionIsAllNull in class BaseCrudServiceImpl<M extends CrudMapper<T>,T>sqlCommandType - 执行的 SQL 命令类型result - 执行结果condition - 查询条件extraCondition - 扩展查询条件,需要自定义Copyright © 2018–2020. All rights reserved.