|
|
@@ -18,6 +18,7 @@ import cc.smtweb.framework.core.util.SqlUtil; |
|
|
|
import cc.smtweb.framework.core.util.StringUtil; |
|
|
|
import cc.smtweb.system.bpm.web.design.form.define.*; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.lang.NonNull; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashSet; |
|
|
@@ -144,12 +145,7 @@ public class DynPageHelper { |
|
|
|
* @param params |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public static SqlNamedPara buildSumSql(PageDataset dataSet, Map<String, Object> params) { |
|
|
|
return buildSumSqlEx(dataSet, params, null); |
|
|
|
} |
|
|
|
|
|
|
|
public static SqlNamedPara buildSumSqlEx(PageDataset dataSet, Map<String, Object> params, IBuildSqlListener listener) { |
|
|
|
SqlNamedPara sqlNamedPara = buildSelectSqlEx(dataSet, params, listener); |
|
|
|
public static SqlNamedPara buildSumSql(PageDataset dataSet, @NonNull SqlNamedPara sqlNamedPara) { |
|
|
|
StringBuilder sql = new StringBuilder(256); |
|
|
|
sql.append("select count(1) " + TOTAL_KEY); |
|
|
|
for (PageDatasetField field : dataSet.fields) { |
|
|
|