sql优化
spring事务相关
- 事务注解
- 锁类型注解
tkMapper
- 只需要部分列,可以用 ex.selectProperties(“id”,“uuid”)
- limit 可以直接写在 setOrderByClause 里
Example ex = new Example(BusinessnumBind.class); ex.setOrderByClause("createdTime desc limit 1");
Example ex = new Example(BusinessnumBind.class);
ex.setOrderByClause("createdTime desc limit 1");