Bladeren bron

修正:字段删除后,不能启动的问题

master
郑根木 2 jaren geleden
bovenliggende
commit
5aaa2c2e8a
1 gewijzigde bestanden met toevoegingen van 11 en 9 verwijderingen
  1. +11
    -9
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/define/PageDataset.java

+ 11
- 9
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/define/PageDataset.java Bestand weergeven

@@ -98,16 +98,18 @@ public class PageDataset {
}
if (table == null) continue;
ModelField mf = table.findField(field.field);
if (mf == null) throw new BizException("未找到表字段的定义信息(" + table.getName() + "." + field.field + ")");
// if (mf == null) throw new BizException("未找到表字段的定义信息(" + table.getName() + "." + field.field + ")");
field.table_text = table.getTitle();
field.fieldType = mf.getFieldType();
field.notNull = mf.getNotNull();
field.link = mf.getLink();

if (StringUtils.isEmpty(field.label)) field.label = mf.getTitle();
if (StringUtils.isEmpty(field.dataType)) field.dataType = mf.getDataType();
if (StringUtils.isEmpty(field.remark)) field.remark = mf.getRemark();
if (StringUtils.isEmpty(field.editor)) field.editor = mf.getEditor();
if (mf != null) {
field.fieldType = mf.getFieldType();
field.notNull = mf.getNotNull();
field.link = mf.getLink();

if (StringUtils.isEmpty(field.label)) field.label = mf.getTitle();
if (StringUtils.isEmpty(field.dataType)) field.dataType = mf.getDataType();
if (StringUtils.isEmpty(field.remark)) field.remark = mf.getRemark();
if (StringUtils.isEmpty(field.editor)) field.editor = mf.getEditor();
}
//过滤条件,需要建立依赖关系
if (isFilter) {
PageDatasetFilter filter = (PageDatasetFilter) field;


Laden…
Annuleren
Opslaan