@@ -78,6 +78,7 @@ public abstract class AbstractListHandler extends AbstractHandler { | |||||
return R.success(SwListData.create(listData, rows)); | return R.success(SwListData.create(listData, rows)); | ||||
} | } | ||||
protected SqlPara buildSumSqlPara() { | protected SqlPara buildSumSqlPara() { | ||||
SqlPara sqlPara = getCache(KEY_SQLPARA); | SqlPara sqlPara = getCache(KEY_SQLPARA); | ||||
if (sqlPara == null) return null; | if (sqlPara == null) return null; | ||||
@@ -103,7 +103,7 @@ public class ModelFormHelper { | |||||
} | } | ||||
//必填字段 | //必填字段 | ||||
if (pdf.isNotNull() == MapUtil.readBool(field, "required")) { | |||||
if (pdf.isFieldNotNull() == MapUtil.readBool(field, "required")) { | |||||
field.remove("required"); | field.remove("required"); | ||||
} | } | ||||
@@ -202,7 +202,7 @@ public class ModelFormHelper { | |||||
} | } | ||||
//必填字段 | //必填字段 | ||||
if (!field.containsKey("required")) { | if (!field.containsKey("required")) { | ||||
field.put("required", pdf.isNotNull()); | |||||
field.put("required", pdf.isFieldNotNull()); | |||||
} | } | ||||
if (!field.containsKey("maxlength")) { | if (!field.containsKey("maxlength")) { | ||||
@@ -19,7 +19,7 @@ public class PageDatasetDynCond { | |||||
} | } | ||||
@JsonIgnore | @JsonIgnore | ||||
public boolean isOpt() { | |||||
public boolean isCondOpt() { | |||||
return StringUtils.isEmpty(param); | return StringUtils.isEmpty(param); | ||||
} | } | ||||
} | } |
@@ -36,7 +36,7 @@ public class PageDatasetField { | |||||
public String editor; | public String editor; | ||||
@JsonIgnore | @JsonIgnore | ||||
public boolean isNotNull() { | |||||
public boolean isFieldNotNull() { | |||||
return notNull == 1; | return notNull == 1; | ||||
} | } | ||||
} | } |
@@ -158,7 +158,7 @@ public class DynPageHelper { | |||||
* @return | * @return | ||||
*/ | */ | ||||
private static String buildDynCondSql(PageDataset dataSet, PageDatasetDynCond dynCond, Map<String, Object> params, SwMap args, Set<String> setFixedFilter) { | private static String buildDynCondSql(PageDataset dataSet, PageDatasetDynCond dynCond, Map<String, Object> params, SwMap args, Set<String> setFixedFilter) { | ||||
if (dynCond.isOpt()) {//是and/or | |||||
if (dynCond.isCondOpt()) {//是and/or | |||||
StringBuilder sql = new StringBuilder(256); | StringBuilder sql = new StringBuilder(256); | ||||
boolean b = false; | boolean b = false; | ||||
//递归调用 | //递归调用 | ||||
@@ -0,0 +1,14 @@ | |||||
package cc.smtweb.system.bpm.web.engine.dynPage; | |||||
import cc.smtweb.framework.core.mvc.service.AbstractListHandler; | |||||
import cc.smtweb.framework.core.mvc.service.SqlPara; | |||||
/** | |||||
* Created by Akmm at 2022/5/26 15:58 | |||||
*/ | |||||
public class DynPageListHandler extends AbstractListHandler { | |||||
@Override | |||||
protected SqlPara buildSqlPara() { | |||||
return null; | |||||
} | |||||
} |
@@ -28,7 +28,7 @@ public class DynPageLoadOneHandler extends AbstractDynPageHandler { | |||||
//对应的数据集定义 | //对应的数据集定义 | ||||
private PageDataset pageDataSet; | private PageDataset pageDataSet; | ||||
public R load() throws Exception { | |||||
public R load() { | |||||
dbName = params.readString("dataset"); | dbName = params.readString("dataset"); | ||||
filter = (SwMap)params.get("filter"); | filter = (SwMap)params.get("filter"); | ||||