Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] - upsert的时候指定那些属性可以update #869

Closed
zhoulijun89 opened this issue Jan 6, 2025 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@zhoulijun89
Copy link

Reason

upsert的时候 没有冲突全量添加,有冲突则局部更新。

Description

我有一批学生考试成绩信息需要保存,学号与科目做的唯一索引,upsert的时候如果索引冲突了,我希望只update 更新时间、更新人、批语等属性,分数和创建时间这些信息是不能修改的。没有索引冲突肯定是全属性保存。如果更新的时候能支持set(table.price(), table.price().plus(BigDecimal.ONE))这种数量增加的就更好啦。

Existing solutions

No response

@zhoulijun89 zhoulijun89 added the enhancement New feature or request label Jan 6, 2025
babyfish-ct added a commit that referenced this issue Jan 10, 2025
@babyfish-ct
Copy link
Owner

Try #0.9.44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants