JAVA 增删改查接口命名规范(dao层与 service 层

开发时,有很多规范,这里写的是命名规范。

Dao 接口命名
 
  • insert
  • batchInsert
  • selectOne
  • selectById
  • count
  • selectList
  • update
  • deleteById

 

Service 接口命名
 
  • add
  • findById
  • findByXXX
  • findXXXList
  • modify
  • remove

猜你喜欢

转载自www.cnblogs.com/asplover/p/12209046.html