@@ -517,6 +517,7 @@ public class ModelFormHelper { | |||||
public static void buildFieldInfo(ModelTable table, ModelField field, SwMap col) { | public static void buildFieldInfo(ModelTable table, ModelField field, SwMap col) { | ||||
col.put("name", field.getName()); | col.put("name", field.getName()); | ||||
col.put("dataType", field.getDataType()); | col.put("dataType", field.getDataType()); | ||||
col.put("fieldType", field.getFieldType()); | |||||
col.put("null", field.getNotNull()); | col.put("null", field.getNotNull()); | ||||
col.put("default", field.getDefaultValue()); | col.put("default", field.getDefaultValue()); | ||||
col.put("title", field.getTitle()); | col.put("title", field.getTitle()); | ||||
@@ -12,6 +12,7 @@ import cc.smtweb.framework.core.util.SpringUtil; | |||||
import cc.smtweb.system.bpm.spring.BpmConfigBean; | import cc.smtweb.system.bpm.spring.BpmConfigBean; | ||||
import cc.smtweb.system.bpm.util.IdeaUtil; | import cc.smtweb.system.bpm.util.IdeaUtil; | ||||
import cc.smtweb.system.bpm.web.design.db.ModelProjectCache; | 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 org.apache.commons.lang3.StringUtils; | ||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
@@ -36,7 +37,7 @@ public class ModelFormLoadHandler extends DefaultLoadHandler<ModelForm> { | |||||
long billType = bean.getBillType(); | long billType = bean.getBillType(); | ||||
if (billType > 0L) { | if (billType > 0L) { | ||||
SwMap opts = bean.getOpts(); | 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; | return bean; | ||||
@@ -359,6 +359,7 @@ public class EntityDao<T> extends AbstractEntityDao<T> { | |||||
* 查询对象所有数据,返回列表 | * 查询对象所有数据,返回列表 | ||||
*/ | */ | ||||
public List<T> query(String fields) { | public List<T> query(String fields) { | ||||
if (StringUtils.isEmpty(fields) && columns.isEmpty()) return null; | |||||
StringBuilder sb = new StringBuilder(); | StringBuilder sb = new StringBuilder(); | ||||
handleSelect(sb, fields); | handleSelect(sb, fields); | ||||