Giter Club home page Giter Club logo

Comments (7)

nieqiurong avatar nieqiurong commented on August 19, 2024

就这几个文字,我也不是华佗啊。

from mybatis-plus.

xiaohuihui7726 avatar xiaohuihui7726 commented on August 19, 2024

mapper.xml重写了insert方法,saveorupdate处理逻辑中会调用指定mapper.insert方法,可能执行到了你mapper.xml的sql

from mybatis-plus.

S0Louis avatar S0Louis commented on August 19, 2024

但仍有一事不明,为什么本地做测试时saveOrUpdateBatch 内部优化使用自身insert逻辑,而部署到test环境后,偶尔会出现加载在mapperXX.xml中重写的insert方法;

from mybatis-plus.

S0Louis avatar S0Louis commented on August 19, 2024

@nieqiurong 感谢回复,当时时间紧急,描述缺失细节,大概问题是这样的:
UserMaper接口和xml中重写了BaseMapper insert 这个方法,批量处理时,调用的是ServiceImpl的saveOrUpdateBatch方法,但在近期新增字段并未维护insert方法,然后saveOrUpdateBatch在test环境偶现生成的insert SQL中缺失新增字段;
本地尝试未曾复现,还在排查其具体原因

from mybatis-plus.

nieqiurong avatar nieqiurong commented on August 19, 2024

这个排查看下.

from mybatis-plus.

miemieYaho avatar miemieYaho commented on August 19, 2024

把你重写的删了

from mybatis-plus.

S0Louis avatar S0Louis commented on August 19, 2024

@miemieYaho 嗯嗯,删除后确实是可以解决这个问题

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.