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