feat: 更新接口默认就是按照字段更新

This commit is contained in:
martsforever
2025-10-14 21:48:08 +08:00
parent 02ddb27ca8
commit e7d06dcb8f
+1 -1
View File
@@ -210,7 +210,7 @@ async def update(session: AsyncSessionDep, query_config, module_config, debug_da
"error": "row parameter is missing", "error": "row parameter is missing",
} }
if update_by_fields: if not update_fields and update_by_fields:
update_fields = row.keys() update_fields = row.keys()
row_id = get_value(row, 'id', None) row_id = get_value(row, 'id', None)