|
@@ -86,6 +86,7 @@ public class ModelFormHelper { |
|
|
public static String buildSaveModel(ModelForm form) { |
|
|
public static String buildSaveModel(ModelForm form) { |
|
|
Map<String, PageDataSet> mapDataset = parsePageDataset(form.getDataset()); |
|
|
Map<String, PageDataSet> mapDataset = parsePageDataset(form.getDataset()); |
|
|
PageModel pageInfo = parsePageInfo(form.getContent()); |
|
|
PageModel pageInfo = parsePageInfo(form.getContent()); |
|
|
|
|
|
if (pageInfo == null) return ""; |
|
|
for (Map<String, Object> model : pageInfo.model) { |
|
|
for (Map<String, Object> model : pageInfo.model) { |
|
|
|
|
|
|
|
|
buildSaveModelFields(mapDataset, pageInfo, model, true); |
|
|
buildSaveModelFields(mapDataset, pageInfo, model, true); |
|
@@ -168,6 +169,7 @@ public class ModelFormHelper { |
|
|
public static String buildReqModel(ModelForm form) { |
|
|
public static String buildReqModel(ModelForm form) { |
|
|
Map<String, PageDataSet> mapDataset = parsePageDataset(form.getDataset()); |
|
|
Map<String, PageDataSet> mapDataset = parsePageDataset(form.getDataset()); |
|
|
PageModel pageInfo = parsePageInfo(form.getContent()); |
|
|
PageModel pageInfo = parsePageInfo(form.getContent()); |
|
|
|
|
|
if (pageInfo == null) return ""; |
|
|
for (Map<String, Object> model : pageInfo.model) { |
|
|
for (Map<String, Object> model : pageInfo.model) { |
|
|
String db = (String) model.get("dataset"); |
|
|
String db = (String) model.get("dataset"); |
|
|
//没有配置db,配置有误,不处理 |
|
|
//没有配置db,配置有误,不处理 |
|
|