|
|
@@ -2,18 +2,19 @@ package cc.smtweb.system.bpm.web.engine.dynPage; |
|
|
|
|
|
|
|
import cc.smtweb.framework.core.common.SwConsts; |
|
|
|
import cc.smtweb.framework.core.common.SwEnum; |
|
|
|
import cc.smtweb.framework.core.db.vo.ModelField; |
|
|
|
import cc.smtweb.framework.core.exception.BizException; |
|
|
|
import cc.smtweb.framework.core.common.SwMap; |
|
|
|
import cc.smtweb.framework.core.db.DbEngine; |
|
|
|
import cc.smtweb.framework.core.db.EntityDao; |
|
|
|
import cc.smtweb.framework.core.db.cache.ModelTableCache; |
|
|
|
import cc.smtweb.framework.core.db.impl.DefaultEntity; |
|
|
|
import cc.smtweb.framework.core.db.vo.ModelField; |
|
|
|
import cc.smtweb.framework.core.db.vo.ModelTable; |
|
|
|
import cc.smtweb.framework.core.exception.BizException; |
|
|
|
import cc.smtweb.framework.core.exception.SwException; |
|
|
|
import cc.smtweb.framework.core.mvc.service.SqlNamedPara; |
|
|
|
import cc.smtweb.framework.core.util.MapUtil; |
|
|
|
import cc.smtweb.framework.core.util.NumberUtil; |
|
|
|
import cc.smtweb.framework.core.util.PubUtil; |
|
|
|
import cc.smtweb.system.bpm.web.design.form.define.*; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
@@ -36,7 +37,7 @@ public class DynPageHelper { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public static SwMap createBean(PageDataset dataSet) { |
|
|
|
if(dataSet.masterTable<=0){ |
|
|
|
if (dataSet.masterTable <= 0) { |
|
|
|
return new SwMap(); |
|
|
|
} |
|
|
|
//主表 |
|
|
@@ -306,6 +307,18 @@ public class DynPageHelper { |
|
|
|
args.put(name + "_2", ss[1]); |
|
|
|
return "(" + field + ">=:" + name + "_1 and " + field + "<=:" + name + "_2)"; |
|
|
|
}); |
|
|
|
|
|
|
|
mapBuilder.put(SwEnum.OptType.IN.value, (opt, field, name, value, args) -> { |
|
|
|
if (PubUtil.isEmpty(value.toString())) return ""; |
|
|
|
args.put(name, value); |
|
|
|
return field + " in (:" + name + ") "; |
|
|
|
}); |
|
|
|
|
|
|
|
mapBuilder.put(SwEnum.OptType.NOT_IN.value, (opt, field, name, value, args) -> { |
|
|
|
if (PubUtil.isEmpty(value.toString())) return ""; |
|
|
|
args.put(name, value); |
|
|
|
return field + " not in (:" + name + ") "; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
private static IBuilderExpr getBuilder(String opt) { |
|
|
|