以他齐

Results 6 comments of 以他齐

有办法绕过这个设定吗

如果修改和删除只能通过id作为条件的话,很多业务很难实现哦~

对于DELETE,只传where子句的条件即可,但是对于PUT(update)而言,条件字段和要修改的字段如何区分呢?

感谢大佬的热心解答,我尝试下,有问题再咨询您。

![image](https://user-images.githubusercontent.com/9876828/141104658-829c54f3-494f-408c-9a06-f533551036a1.png) ![image](https://user-images.githubusercontent.com/9876828/141104708-1bcae193-013e-41e8-86b7-8cda419a4d95.png) 貌似不能绕过这个限制呢

从源码看,verifyId代码,直接受atLeastOne参数控制 ![image](https://user-images.githubusercontent.com/9876828/141226791-5505a705-1368-4213-9118-779363592ebb.png) 但是在调用verifyId的地方写死成了true ![image](https://user-images.githubusercontent.com/9876828/141226986-fd11c5bc-1ea4-4649-8869-b442ef2fdde8.png) 所以,即使改了无参构造,也是没有效果的