Pārlūkot izejas kodu

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

master
郑根木 pirms 2 gadiem
vecāks
revīzija
5aaa2c2e8a
1 mainītis faili ar 11 papildinājumiem un 9 dzēšanām
  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 Parādīt failu

@@ -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;


Notiek ielāde…
Atcelt
Saglabāt