Browse Source

移除

4.0
FLYPHT 2 years ago
parent
commit
197dde622e
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelForm.java

+ 6
- 1
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelForm.java View File

@@ -3,10 +3,13 @@ package cc.smtweb.system.bpm.web.design.form;
import cc.smtweb.framework.core.annotation.SwTable; import cc.smtweb.framework.core.annotation.SwTable;
import cc.smtweb.framework.core.common.SwMap; import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.impl.DefaultEntity; import cc.smtweb.framework.core.db.impl.DefaultEntity;
import cc.smtweb.framework.core.util.JsonUtil;
import cc.smtweb.system.bpm.web.design.form.define.PageDataset; import cc.smtweb.system.bpm.web.design.form.define.PageDataset;
import cc.smtweb.system.bpm.web.design.form.define.PageDatasetField; import cc.smtweb.system.bpm.web.design.form.define.PageDatasetField;
import cc.smtweb.system.bpm.web.design.form.define.PageDatasets; import cc.smtweb.system.bpm.web.design.form.define.PageDatasets;


import java.util.Map;

/** /**
* Created by Akmm at 2022/4/15 17:26 * Created by Akmm at 2022/4/15 17:26
*/ */
@@ -150,7 +153,9 @@ public class ModelForm extends DefaultEntity {
} }


public void setContent(String mfContent) { public void setContent(String mfContent) {
put("mf_content", mfContent == null ? "{}" :mfContent.replaceAll("\\s*", ""));
String temStr = mfContent == null ? "{}" : mfContent;
Map map = JsonUtil.parseMap(temStr);
put("mf_content", JsonUtil.encodeString(map));
} }


public String getOption() { public String getOption() {


Loading…
Cancel
Save