Comments (4)
如果不使用参数的写法,直接写死 例如:
prescriptionMealService.ktUpdate()
.eq(AnPrescriptionMeal::id,entity.mealId)
.setSql("stop_count = stop_count + 1").update();
又会报错
com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Please check the syntax correctness! sql not contains: "{0}"
at com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe(ExceptionUtils.java:49)
at com.baomidou.mybatisplus.core.conditions.AbstractWrapper.formatSqlMaybeWithParam(AbstractWrapper.java:507)
at com.baomidou.mybatisplus.extension.kotlin.KtUpdateWrapper.setSql(KtUpdateWrapper.kt:74)
at com.baomidou.mybatisplus.extension.kotlin.KtUpdateChainWrapper.setSql(KtUpdateChainWrapper.kt:57)
at com.baomidou.mybatisplus.extension.kotlin.KtUpdateChainWrapper.setSql(KtUpdateChainWrapper.kt:28)
at com.baomidou.mybatisplus.core.conditions.update.Update.setSql(Update.java:83)
at com.epzoon.enteral.service.impl.AnPrescriptionMealDetailServiceImpl.stop(AnPrescriptionMealDetailServiceImpl.kt:314)
from mybatis-plus.
提供复现工程.
from mybatis-plus.
提供复现工程.
java22 + mysql8 + ruoyi 3.8.7 + springboot3.2.0 + mybatis-plus3.5.5 + kotlin1.9.20
这儿正确的结果应该是Object[0] 而不是Object[Object[0]]
from mybatis-plus.
from mybatis-plus.
Related Issues (20)
- [错误报告]: updateWrapper无法正确处理pg 的 jsonb字段映射 HOT 1
- [错误报告]: 描述升级mybatis-plus-boot-starter的版本3.3.2到3.5.7之后,报错com.baomidou.mybatisplus.extension.parsers不存在 HOT 1
- [错误报告]: 分页查询中,Page.getRecords返回的列表所有元素均为null HOT 1
- [功能改进]: 代码生成器支持TypeHandler
- [错误报告]: 描述 乐观锁更新失败不会主动抛出异常 HOT 2
- 如何实现递归查询? HOT 1
- [错误报告]: 描述 关于过滤多租户插件使用@InterceptorIgnore的问题 HOT 1
- [错误报告]: 使用行行比较语法,解析报错:Failed to process, please exclude the tableName or statementId. HOT 2
- [错误报告]: 使用行行比较语法,解析报错
- [错误报告]: 使用LambdaQueryWrapper、LambdaUpdateWrapper或者QueryWrapper、UpdateWrapper运行IService中的update和remove方法有一定几率报错 HOT 2
- [错误报告]: 神通数据库使用mp saveBatch会报错
- [功能改进]: groovy的lambda构造器支持
- [功能改进]: Springboot3 已经不支持swagger, 能否进一步支持spring doc HOT 1
- [错误报告]: 流式查询失效问题 HOT 5
- [功能改进]: 描述 graalvm lambda表达式支持 HOT 1
- [功能改进]: saveBatch方法重载,使其达到真正的批量添加(mysql)
- muybatis plus 使用 ? 相关运算符
- [错误报告]: 人大金仓数据库,xml关联表查询时,不会拼接schema HOT 1
- [错误报告]: select字段名包含JSQLParser关键字时,使用mapper.selectPage()报打印异常日志 HOT 1
- [功能改进]: To resolve CVE-2022-25517
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mybatis-plus.