@Override
List selectAll();
@Override
T selectByPrimaryKey(Object o);
@Override
public int selectCount(T o);
@Override
public List select(T o);
@Override
public T selectOne(T o);
@Override
public int updateByPrimaryKey(T o);
@Override
public int updateByPrimaryKeySelective(T o);
@Override
public int deleteByExample(Object o);
@Override
public List selectByExample(Object o);
@Override
public int selectCountByExample(Object o);
@Override
public T selectOneByExample(Object o);
@Override
public int updateByExample(T o, Object o2);
@Override
public int updateByExampleSelective(T o, Object o2);
@Override
public List selectByExampleAndRowBounds(Object o, RowBounds rowBounds);
@Override
public List selectByRowBounds(T o, RowBounds rowBounds);
}
BaseServiceImpl.java:
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
/**
-
@Author : JCccc
-
@CreateTime : 2020/8/13
-
@Description :
**/
public abstract class BaseServiceImpl implements BaseService {
@Autowired
private Mapper mapper;
@Override
public int deleteByPrimaryKey(Object o) {
return mapper.deleteByPrimaryKey(o);
}
@Override
public int delete(T t) {
return mapper.delete(t);
}
@Override
public int insert(T t) {
return mapper.insert(t);
}
@Override
public int insertSelective(T t) {
return mapper.insertSelective(t);
}
@Override
public List selectAll() {
return mapper.selectAll();
}
@Override
public int selectCount(