抽象类BaseService @ClassName: BaseService @Description: Service实现这个 @author fuce @date 2018年6月3日
| 11 | * |
| 12 | */ |
| 13 | public interface BaseService<T,T2> { |
| 14 | |
| 15 | int deleteByPrimaryKey(String id); |
| 16 | |
| 17 | int insertSelective(T record); |
| 18 | |
| 19 | T selectByPrimaryKey(String id); |
| 20 | |
| 21 | int updateByPrimaryKeySelective(T record); |
| 22 | |
| 23 | int updateByExampleSelective(@Param("record") T record, @Param("example") T2 example); |
| 24 | |
| 25 | int updateByExample(@Param("record") T record, @Param("example") T2 example); |
| 26 | |
| 27 | List<T> selectByExample(T2 example); |
| 28 | |
| 29 | long countByExample(T2 example); |
| 30 | |
| 31 | int deleteByExample(T2 example); |
| 32 | |
| 33 | } |
no outgoing calls
no test coverage detected