public interface BaseDao<T extends BaseModel>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(T model) |
void |
deleteById(int id) |
T |
get(int id) |
T |
getByCode(String code)
如果没有code字段,则此方法抛错。
|
List<T> |
getByCodeList(List<String> codeList)
如果没有code字段,则此方法抛错。
|
Pagination<T> |
pagination(T model,
int pageStart,
int pageSize,
String sort) |
void |
updateModel(T model) |
void add(T model)
void deleteById(int id)
void updateModel(T model)
T get(int id)
List<T> getByCodeList(List<String> codeList)
codeList - Pagination<T> pagination(T model, int pageStart, int pageSize, String sort)
Copyright © 2022. All rights reserved.