public interface CommonService<T>
extends com.baomidou.mybatisplus.extension.service.IService<T>
| 限定符和类型 | 方法和说明 |
|---|---|
List<Map> |
commonQuery(String columns,
String conditions,
String relation)
多表通用查询
|
List<Map> |
commonQueryByParams(String sqlParams)
sql
|
Long |
commonQueryCount(String conditions,
String relation)
获取总条数
|
List<T> |
commonQueryReturnEntity(String columns,
String conditions,
String relation)
多表通用查询 返回entity
|
count, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdList<Map> commonQuery(String columns, String conditions, String relation)
columns - 需要返回的字段conditions - 需要拼接的where条件 以及分页SQLrelation - 表间关系List<Map> commonQueryByParams(String sqlParams)
sqlParams - 完整版SQL查询语句Long commonQueryCount(String conditions, String relation)
conditions - relation - Copyright © 2020. All rights reserved.