接口 BaseMapper<Model>

  • 类型参数:
    Model - The Model Class 这里是泛型不是Model类

    public interface BaseMapper<Model>
    DAO公共基类,由MybatisGenerator自动生成请勿修改
    • 方法详细资料

      • countByExample

        long countByExample​(Example example)
      • deleteByExample

        int deleteByExample​(Example example)
      • deleteByPrimaryKey

        int deleteByPrimaryKey​(Number id)
      • insert

        int insert​(Model record)
      • insertSelective

        int insertSelective​(Model record)
      • selectByPrimaryKey

        Model selectByPrimaryKey​(Number id)
      • updateByExampleSelective

        int updateByExampleSelective​(@Param("record")
                                     Model record,
                                     @Param("example")
                                     Example example)
      • updateByExample

        int updateByExample​(@Param("record")
                            Model record,
                            @Param("example")
                            Example example)
      • updateByPrimaryKeySelective

        int updateByPrimaryKeySelective​(Model record)
      • updateByPrimaryKey

        int updateByPrimaryKey​(Model record)