BaseMapper.java 424 Bytes
Newer Older
liqin's avatar
liqin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
package cn.wisenergy.chnmuseum.party.common.mybatis;

import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * mapper 基类接口
 */
public interface BaseMapper<T, ID extends Serializable> extends Serializable {

    int delete(@Param("id") ID id);

    int save(T entity);

    int update(T entity);

    T getById(@Param("id") ID id);

    List<T> selectList(T entity);
}