public class BaseMybatisServiceImpl<T,Mapper extends tk.mybatis.mapper.common.Mapper<T>,ID extends Serializable>
extends top.wboost.common.base.service.impl.BaseServiceImpl<T,ID>
implements top.wboost.common.base.service.BaseService<T,ID>
| 构造器和说明 |
|---|
BaseMybatisServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
delete(ID... ids) |
List<T> |
findByField(String key,
Object value) |
List<T> |
findByField(String key,
Object value,
top.wboost.common.base.enums.QueryType queryType) |
T |
findById(ID id) |
org.springframework.data.domain.Page<T> |
findList(T t,
top.wboost.common.base.page.QueryPage basePage,
String... likeFields) |
org.springframework.data.domain.Page<T> |
findList(T t,
String... likeFields) |
protected Mapper |
getMapper() |
T |
save(T t) |
void |
setRepository(top.wboost.common.base.repository.BaseRepository<T,ID> repository) |
T |
update(ID id,
T t) |
void |
updateById(ID id,
Field key,
Object value) |
public T save(T t)
save 在接口中 top.wboost.common.base.service.BaseService<T,ID extends Serializable>public T update(ID id, T t)
update 在接口中 top.wboost.common.base.service.BaseService<T,ID extends Serializable>public boolean delete(ID... ids)
delete 在接口中 top.wboost.common.base.service.BaseService<T,ID extends Serializable>public void updateById(ID id, Field key, Object value)
updateById 在接口中 top.wboost.common.base.service.BaseService<T,ID extends Serializable>public T findById(ID id)
findById 在接口中 top.wboost.common.base.service.BaseService<T,ID extends Serializable>public org.springframework.data.domain.Page<T> findList(T t, top.wboost.common.base.page.QueryPage basePage, String... likeFields)
findList 在接口中 top.wboost.common.base.service.BaseService<T,ID extends Serializable>public org.springframework.data.domain.Page<T> findList(T t, String... likeFields)
findList 在接口中 top.wboost.common.base.service.BaseService<T,ID extends Serializable>public List<T> findByField(String key, Object value)
findByField 在接口中 top.wboost.common.base.service.BaseService<T,ID extends Serializable>public List<T> findByField(String key, Object value, top.wboost.common.base.enums.QueryType queryType)
findByField 在接口中 top.wboost.common.base.service.BaseService<T,ID extends Serializable>public void setRepository(top.wboost.common.base.repository.BaseRepository<T,ID> repository)
setRepository 在接口中 top.wboost.common.base.service.BaseService<T,ID extends Serializable>protected Mapper getMapper()
Copyright © 2019. All rights reserved.