自定义排序完成

pull/1/head
潘建东 8 months ago
parent 2733c0f7a7
commit 04423ce974

@ -135,8 +135,9 @@ namespace ZKLT.Hadoop
_orderstr.Append(@$"CASE `{_column.Key!}`");
for (var i = 0; i < _orderTemp!.Length; i++)
{
_orderstr.Append(@$" WHEN @OR{_column.Key}{i} THEN {i}");
param.Add($@"@OR{_column.Key}{i}", _orderTemp[i]);
var _guid = Guid.NewGuid().ToString("N");
_orderstr.Append(@$" WHEN @{_guid} THEN {i}");
param.Add(_guid, _orderTemp[i]);
}
_orderstr.Append($@" ELSE {_orderTemp.Length} END,");
}

Loading…
Cancel
Save