|
|
@ -244,7 +244,7 @@ public class FlowRuntime
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="parent"></param>
|
|
|
|
/// <param name="parent"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public async string? GetNextConditionNodeId(FlowChild parent)
|
|
|
|
public string? GetNextConditionNodeId(FlowChild parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var conditionNodes = GetFlowConditions(parent);
|
|
|
|
var conditionNodes = GetFlowConditions(parent);
|
|
|
|
var conditionId = string.Empty;
|
|
|
|
var conditionId = string.Empty;
|
|
|
@ -260,7 +260,7 @@ public class FlowRuntime
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (conditionNode.UseSQL)
|
|
|
|
else if (conditionNode.UseSQL)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var scalar = await sugarClient.Ado.GetScalarAsync(conditionNode.SQLText,
|
|
|
|
var scalar = sugarClient.Ado.GetScalar(conditionNode.SQLText,
|
|
|
|
new SugarParameter(nameof(BaseModel<long>.Id), BusinessId));
|
|
|
|
new SugarParameter(nameof(BaseModel<long>.Id), BusinessId));
|
|
|
|
|
|
|
|
|
|
|
|
if (scalar != null && (scalar is int count && count > 0 || scalar is bool boolValue && boolValue))
|
|
|
|
if (scalar != null && (scalar is int count && count > 0 || scalar is bool boolValue && boolValue))
|
|
|
|