提交 e5ee8caa 编写于 作者: T terrymanu

remove setNewConditionValue for ConditionContext

上级 4996340f
......@@ -65,27 +65,6 @@ public final class ConditionContext {
return Optional.fromNullable(conditions.get(new ShardingColumnContext(column, table)));
}
/**
* 解析参数中间的新数据.
*
* @param parameters 参数列表
*/
public void setNewConditionValue(final List<Object> parameters) {
// for (Condition each : conditions.values()) {
// if (each.valueIndices.isEmpty()) {
// continue;
// }
// for (int i = 0; i < each.valueIndices.size(); i++) {
// Object value = parameters.get(each.valueIndices.get(i));
// if (value instanceof Comparable<?>) {
// each.values.set(i, (Comparable<?>) value);
// } else {
// each.values.set(i, "");
// }
// }
// }
}
/**
* 条件对象.
*
......@@ -131,7 +110,7 @@ public final class ConditionContext {
values.add((Comparable) ((SQLNumberExpr) sqlExpr).getNumber());
}
}
/**
* 获取分片值.
*
......
......@@ -58,7 +58,6 @@ public class PreparedSQLRouter {
} else {
List<Object> generatedIds = generateId();
parameters.addAll(generatedIds);
sqlContext.getConditionContext().setNewConditionValue(parameters);
}
return engine.routeSQL(sqlContext, parameters);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册