|
|
@@ -79,20 +79,6 @@ public class KanbanParser {
|
|
|
throw new IllegalStateException("参数值为null:" + parameterName);
|
|
|
}
|
|
|
|
|
|
- // 如果参数值为 {@link Type#SQL} ,需要取得查询结果
|
|
|
-// if (parameter.getType() == Type.SQL) {
|
|
|
-// String stringValue = (String) value;
|
|
|
-// // 不递归替换参数
|
|
|
-// // stringValue=replaceParameters(stringValue,parameters,true,jdbc);
|
|
|
-// checkCount(jdbc.getDataSource().getConnection(), stringValue);
|
|
|
-// Map<String, Object> data = jdbc.findMap(stringValue);
|
|
|
-// if (CollectionUtils.isEmpty(data)) {
|
|
|
-// throw new IllegalStateException("参数通过 SQL 取得结果为空:" + parameterName);
|
|
|
-// } else if (data.size() > 1) {
|
|
|
-// throw new IllegalStateException("参数通过 SQL 取得结果不止一列:" + parameterName);
|
|
|
-// }
|
|
|
-// value = data.values().iterator().next();
|
|
|
-// }
|
|
|
// TODO value 为时间
|
|
|
if (needSingleQuote != null && needSingleQuote) {
|
|
|
content = content.substring(0, start) + "'" + value + "'" + content.substring(end);
|