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

[Bug] 修改数据表中日期字段为null,修改不成功 #765

Open
ansyxpf opened this issue Sep 20, 2024 · 3 comments
Open

[Bug] 修改数据表中日期字段为null,修改不成功 #765

ansyxpf opened this issue Sep 20, 2024 · 3 comments

Comments

@ansyxpf
Copy link

ansyxpf commented Sep 20, 2024

APIJSON Version/APIJSON 版本号

6.1.0

Database Type & Version/数据库类型及版本号

8.0.32

Environment/环境信息

- JDK/基础库:1.8.0_422
- OS/系统:Windows 10

APIAuto Screenshots/APIAuto 请求与结果完整截屏

https://ibb.co/ng4mnMC , https://ibb.co/3SWWQZT, https://ibb.co/fDhCcsN

Current Behavior/问题描述

MySQL数据库的数据表中日期字段本来有值(假设2024-09-20),现在想修改为null,传递null修改后,日期没有修改成功。不是传递的字符串“null”,数据表中的日期字段可以为null,apijson修改不成功,请假一下,哪里出了问题?

Expected Behavior/期望结果

日期字段传递null后把原本的日期(2024-09-20)修改为null

Any additional comments?/其它补充说明?

No response

Tasks

No tasks being tracked yet.
@TommyLemon
Copy link
Collaborator

通用文档搜 @null

@ansyxpf
Copy link
Author

ansyxpf commented Sep 23, 2024

通用文档搜@null

我看通用文档,为null的字段会被忽略,我想强制修改字段的值为null,有什么实现方案吗?

@TommyLemon
Copy link
Collaborator

TommyLemon commented Sep 28, 2024

用 "@null":"key1,key2..."

016f31a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants