package org.scy.common.ds.mybatis;

import org.scy.common.ds.query.Selector;

import java.util.List;

/**
 * Mybatis 映射文件配置基类
 * Created by shicy on 2017/5/15.
 */
public interface BaseMapper<T> {

    T getById(int id);

    int add(T model);

    int update(T model);

    int delete(T model);
    int deleteById(int id);

    List<T> find(Selector selector);
    int countFind(Selector selector);

}

@@ -237,24 +237,24 @@
 model);%0A
-%0A
     
-int
+void
  update(
@@ -263,24 +263,24 @@
 model);%0A
-%0A
     
-int
+void
  delete(
@@ -292,36 +292,8 @@
 el);
-%0A    int deleteById(int id);
 %0A%0A  

修改BaseMapper，去掉 deleteById() 方法