首页
编程日记
ChatGpt专题
LINUX学习
Java学习
前端教程
单片机
SAP
javascript
Toast提示信息
《红宝石》
开尔文四线法与电桥
flink
elasticsearch
单调双端队列
二维数组
基础入门
人手检测
协变,回避虚函数,特殊虚函数
go
gnu
制造
符号同步
ATM系统
升压ic
API接口开发系列
安杰思
BaseMapper
2024/4/11 20:25:58
像mybatis-plus一样自定义封装BaseMapper方法
今天刷视频的时候看到说判断是否存在使用select 1 from table where *** limit 1这种语句要比,select count 好。所以我看一下mybatis-plus的BaseMapper中的exists方法,发现也是用的select count来判断的 default boolean exists(Wrapper<T> quer…
阅读更多...