package com.mindskip.xzs.service;
|
|
/**
|
* @version 2.2.0
|
* @description: service基础类
|
* Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
|
* @date 2021 /9/7 9:45
|
*/
|
public interface BaseService<T> {
|
/**
|
* 根据id删除数据,硬删除
|
*
|
* @param id id
|
* @return int int
|
*/
|
int deleteById(Integer id);
|
|
/**
|
* 插入数据,完整数据插入
|
*
|
* @param record record
|
* @return int int
|
*/
|
int insert(T record);
|
|
/**
|
* 插入不为null的数据
|
*
|
* @param record the record
|
* @return int int
|
*/
|
int insertByFilter(T record);
|
|
/**
|
* 根据id查询数据
|
*
|
* @param id the id
|
* @return t
|
*/
|
T selectById(Integer id);
|
|
/**
|
* 更新不为null的数据
|
*
|
* @param record the record
|
* @return int int
|
*/
|
int updateByIdFilter(T record);
|
|
/**
|
* 更新完整的数据
|
*
|
* @param record the record
|
* @return int int
|
*/
|
int updateById(T record);
|
}
|