扫码关注官方订阅号
insert into中嵌套select子句,select中的where子句无法使用参数!是mybatis无法识别出来吗
mapper.xml:
测试:
无法插入:
修改mapper.xml:
可以插入:
ProductProcess类:
认证0级讲师
看起来像是你在 new ProductProcess(...) 的时候, materialName 和 blenderName 传反了?
new ProductProcess(...)
materialName
blenderName
// 在你的 mybatis 实现的 DAO 接口中的参数前增加注解 @Param("materialName"), @Param("blenderName")
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
看起来像是你在
new ProductProcess(...)的时候,materialName和blenderName传反了?