We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在新增时调用远程函数(如:{"INSERT": {"A-()": "A(p1,p2)"}}),如何在远程函数中拿到新增记录的自增id。
The content you are editing has changed. Please copy your edits and refresh the page.
The text was updated successfully, but these errors were encountered:
会直接在当前表对象返回: "主键名": 自增id值
例如: "id": 2 可以直接在这个层级用远程函数访问 "fun()":"fun(id)"
Sorry, something went wrong.
这是我的配置: 我的远程函数: 没有看到id,是哪里配错了吗?
找到了,多谢
还有个问题啊,POST 插入时,如何在一个远程函数中,同时拿到插入的字段和返回的id(即拿到当前对象所有的字段)
"key-()":"saveCurObj()", // 预处理函数保存当前传参对象 "key2()":"fun(id)" // 后处理函数获取插入记录的 id 都拿到后放到 DemoFunctionParser 内同一个成员变量(可以是 JSONObject/Map 或其它自定义 JavaBean 等)保存即可
No branches or pull requests
Description
在新增时调用远程函数(如:{"INSERT": {"A-()": "A(p1,p2)"}}),如何在远程函数中拿到新增记录的自增id。
Tasks
The text was updated successfully, but these errors were encountered: