/**
     * 根据 ID 删除
     *
     * @param id 主键ID
     */
    int deleteById(Serializable id);

java的包装类型 (Integer,Long,String,Double...)几乎都实现了这个接口.
用Serializable来定义 id的类型,是使用的接口类型,

其实传的还是Interger,Long....

相关文章:

  • 2021-05-30
  • 2021-10-06
  • 2022-03-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-06-23
相关资源
相似解决方案