public abstract class BaseServiceImpl<T,E extends Serializable> extends Object implements BaseService<T,E>
Constructor and Description |
---|
BaseServiceImpl() |
public abstract BaseMapper<T,E> getMappser()
public List<T> select(T t)
select
in interface BaseService<T,E extends Serializable>
public List<T> selectAll()
selectAll
in interface BaseService<T,E extends Serializable>
public List<T> selectByIds(String ids)
selectByIds
in interface BaseService<T,E extends Serializable>
public int selectCount(T t)
selectCount
in interface BaseService<T,E extends Serializable>
public int deleteByPrimaryKey(E id)
deleteByPrimaryKey
in interface BaseService<T,E extends Serializable>
public int insert(T record)
insert
in interface BaseService<T,E extends Serializable>
public T addValue(T record, boolean flag)
record
- flag
- public int insertSelective(T record)
insertSelective
in interface BaseService<T,E extends Serializable>
public int updateByPrimaryKeySelective(T record)
updateByPrimaryKeySelective
in interface BaseService<T,E extends Serializable>
public int updateByPrimaryKey(T record)
updateByPrimaryKey
in interface BaseService<T,E extends Serializable>
public List<T> selectListByPage(T record)
selectListByPage
in interface BaseService<T,E extends Serializable>
public int deleteByPrimaryKey(Object o)
deleteByPrimaryKey
in interface BaseService<T,E extends Serializable>
public int delete(T t)
delete
in interface BaseService<T,E extends Serializable>
public boolean existsWithPrimaryKey(Object o)
existsWithPrimaryKey
in interface BaseService<T,E extends Serializable>
public T selectByPrimaryKey(Object o)
selectByPrimaryKey
in interface BaseService<T,E extends Serializable>
public T selectOne(T t)
selectOne
in interface BaseService<T,E extends Serializable>
public int deleteByIds(String s)
deleteByIds
in interface BaseService<T,E extends Serializable>
public int insertList(List<T> list)
insertList
in interface BaseService<T,E extends Serializable>
public int insertUseGeneratedKeys(T t)
insertUseGeneratedKeys
in interface BaseService<T,E extends Serializable>
public ReType show(T t, int page, int limit)
show
in interface BaseService<T,E extends Serializable>
t
- 实体page
- 页limit
- 行public String showAll(T t)
showAll
in interface BaseService<T,E extends Serializable>
public ReType getList(T t, int page, int limit)
getList
in interface BaseService<T,E extends Serializable>
public int deleteByExample(Object o)
deleteByExample
in interface BaseService<T,E extends Serializable>
public List<T> selectByExample(Object o)
selectByExample
in interface BaseService<T,E extends Serializable>
public int selectCountByExample(Object o)
selectCountByExample
in interface BaseService<T,E extends Serializable>
public T selectOneByExample(Object o)
selectOneByExample
in interface BaseService<T,E extends Serializable>
public int updateByExample(T t, Object o)
updateByExample
in interface BaseService<T,E extends Serializable>
public int updateByExampleSelective(T t, Object o)
updateByExampleSelective
in interface BaseService<T,E extends Serializable>
public List<T> selectByExampleAndRowBounds(Object o, org.apache.ibatis.session.RowBounds rowBounds)
selectByExampleAndRowBounds
in interface BaseService<T,E extends Serializable>
public List<T> selectByRowBounds(T t, org.apache.ibatis.session.RowBounds rowBounds)
selectByRowBounds
in interface BaseService<T,E extends Serializable>
Copyright © 2019. All rights reserved.