Kaynağa Gözat

页面+BillType,表定义加buildBean

4.0
郑根木 2 yıl önce
ebeveyn
işleme
5d9fc400b0
3 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. +1
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormHelper.java
  2. +2
    -1
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormLoadHandler.java
  3. +1
    -0
      smtweb-framework/core/src/main/java/cc/smtweb/framework/core/db/EntityDao.java

+ 1
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormHelper.java Dosyayı Görüntüle

@@ -517,6 +517,7 @@ public class ModelFormHelper {
public static void buildFieldInfo(ModelTable table, ModelField field, SwMap col) {
col.put("name", field.getName());
col.put("dataType", field.getDataType());
col.put("fieldType", field.getFieldType());
col.put("null", field.getNotNull());
col.put("default", field.getDefaultValue());
col.put("title", field.getTitle());


+ 2
- 1
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormLoadHandler.java Dosyayı Görüntüle

@@ -12,6 +12,7 @@ import cc.smtweb.framework.core.util.SpringUtil;
import cc.smtweb.system.bpm.spring.BpmConfigBean;
import cc.smtweb.system.bpm.util.IdeaUtil;
import cc.smtweb.system.bpm.web.design.db.ModelProjectCache;
import cc.smtweb.system.bpm.web.sys.base.billType.BillTypeCache;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
@@ -36,7 +37,7 @@ public class ModelFormLoadHandler extends DefaultLoadHandler<ModelForm> {
long billType = bean.getBillType();
if (billType > 0L) {
SwMap opts = bean.getOpts();
// opts.put(ModelFormHelper.KEY_BILL_TYPE + SwConsts.TEXT_SUFFIX, BillTypeCache.);
opts.put(ModelFormHelper.KEY_BILL_TYPE + SwConsts.TEXT_SUFFIX, BillTypeCache.getInstance().getName(billType));
}

return bean;


+ 1
- 0
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/db/EntityDao.java Dosyayı Görüntüle

@@ -359,6 +359,7 @@ public class EntityDao<T> extends AbstractEntityDao<T> {
* 查询对象所有数据,返回列表
*/
public List<T> query(String fields) {
if (StringUtils.isEmpty(fields) && columns.isEmpty()) return null;
StringBuilder sb = new StringBuilder();
handleSelect(sb, fields);



Yükleniyor…
İptal
Kaydet