Ver a proveniência

页面设计

master
郑根木 há 2 anos
ascendente
cometimento
50485a70da
3 ficheiros alterados com 8 adições e 0 eliminações
  1. +5
    -0
      smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/db/cache/ModelTableCache.java
  2. +1
    -0
      smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/define/PageDataset.java
  3. +2
    -0
      smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/define/PageDatasets.java

+ 5
- 0
smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/db/cache/ModelTableCache.java Ver ficheiro

@@ -104,4 +104,9 @@ public class ModelTableCache extends AbstractCache<ModelTable> {
list.sort(comparator);
return list;
}

public final String getTableName(long id) {
ModelTable bean = get(id);
return bean == null ? String.valueOf(id) : bean.getTitle();
}
}

+ 1
- 0
smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/define/PageDataset.java Ver ficheiro

@@ -26,6 +26,7 @@ public class PageDataset {
public String type;
//主表
public long masterTable;
public String masterTable_text;
//id字段 对应field的name
public String idField;
//list的自定义sql,仅列表支持,select fields from tables [condition] group by xxx order by xxx


+ 2
- 0
smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/define/PageDatasets.java Ver ficheiro

@@ -1,5 +1,6 @@
package cc.smtweb.system.bpm.web.design.form.define;

import cc.smtweb.framework.core.db.cache.ModelTableCache;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sun.istack.internal.NotNull;

@@ -28,6 +29,7 @@ public class PageDatasets {
this.list.add(ds);
mapId.put(ds.id, ds);
mapName.put(ds.name, ds);
ds.masterTable_text = ModelTableCache.getInstance().getTableName(ds.masterTable);
ds.resetFields();
}
}


Carregando…
Cancelar
Guardar