Browse Source

工作流

master
郑根木 2 years ago
parent
commit
576d35239d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormHelper.java

+ 2
- 0
smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormHelper.java View File

@@ -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,配置有误,不处理


Loading…
Cancel
Save