|
|
|
|
@ -256,11 +256,13 @@ public class OnlineFormController {
@@ -256,11 +256,13 @@ public class OnlineFormController {
|
|
|
|
|
onlineForm.setWidgetJson(jsonObject.toJSONString()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ★ 新增: 处理新增字段和子表
|
|
|
|
|
JSONObject updatedJson = syncNewFieldsAndSubTables(onlineForm, onlineFormDto, JSON.parseObject(onlineForm.getWidgetJson())); |
|
|
|
|
if (updatedJson != null) { |
|
|
|
|
onlineForm.setWidgetJson(updatedJson.toJSONString()); |
|
|
|
|
onlineFormDto.setWidgetJson(updatedJson.toJSONString()); |
|
|
|
|
// ★ 新增: 处理新增字段和子表(仅编辑表单:5=编辑 / 10=移动端编辑)
|
|
|
|
|
if (onlineFormDto.getFormType() == FormType.EDIT_FORM) { |
|
|
|
|
JSONObject updatedJson = syncNewFieldsAndSubTables(onlineForm, onlineFormDto, JSON.parseObject(onlineForm.getWidgetJson())); |
|
|
|
|
if (updatedJson != null) { |
|
|
|
|
onlineForm.setWidgetJson(updatedJson.toJSONString()); |
|
|
|
|
onlineFormDto.setWidgetJson(updatedJson.toJSONString()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!onlineFormService.update(onlineForm, originalOnlineForm, datasourceIdSet)) { |
|
|
|
|
|