Giter Club home page Giter Club logo

Comments (4)

xuxiaolong123 avatar xuxiaolong123 commented on September 28, 2024

如果不使用参数的写法,直接写死 例如:
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.

nieqiurong avatar nieqiurong commented on September 28, 2024

提供复现工程.

from mybatis-plus.

xuxiaolong123 avatar xuxiaolong123 commented on September 28, 2024

提供复现工程.
java22 + mysql8 + ruoyi 3.8.7 + springboot3.2.0 + mybatis-plus3.5.5 + kotlin1.9.20
1
2
这儿正确的结果应该是Object[0] 而不是Object[Object[0]]

from mybatis-plus.

nieqiurong avatar nieqiurong commented on September 28, 2024

81bcb97

from mybatis-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.