是否支持 一次新增2条具有关联关系的记录(子从表)
Author: elonsolarCreated Dec 19, 2020Updated Sep 24, 2025
LabelsQuestion 使用问题Document 文档
环境信息
- 系统:
- JDK:
- 数据库:
- APIJSON:
问题描述
//从表
{
'Injured': {
'name': '橙橙',
'company_id': 1,
// 'accident_id':222 //外键
},
'tag': 'Injured'
}
//主表
{
'Accident': {
'user_name': '用户x',
'report_time': '2020-12-19 19:28:30',
'company_id': 1
},
'tag': 'Accident'
}
错误信息
无
Source: Tencent/APIJSON