stringsql1=$"SELECT DISTINCT B.Id from Ghre_StudyRuleStaff A join Ghre_StudyRule B ON A.StudyRuleId = B.ID WHERE B.IsEnable=1 AND A.StaffId IN ({string.Join(",", ids1.Select(id => "'" + id + "'"))})";
ids1=awaitDb.Ado.SqlQueryAsync<string>(sql1);
switch(jsonParam.operationKey)
switch(jsonParam.operationKey)
{
{
case"Include":
case"EqualAny"://
conditions+=$" AND {name} LIKE '%{jsonParam.columnValue}%'";
conditions+=$" AND Id IN ({string.Join(",", ids1.Select(id => "'" + id + "'"))})";
break;
case"NotInclude":
conditions+=$" AND {name} NOT LIKE '%{jsonParam.columnValue}%'";
break;
case"IsNull":
conditions+=$" AND {name} IS NULL";
break;
case"NotNull":
conditions+=$" AND {name} IS NOT NULL";
break;
case"Equal":
conditions+=$" AND {name} ='{jsonParam.columnValue}'";
break;
case"NotEqual":
conditions+=$" AND {name} !='{jsonParam.columnValue}'";
break;
break;
case"GreaterOrEqual"://大于等于
case"NotEqualAny"://
conditions+=$" AND {name} >='{jsonParam.columnValue}'";
conditions+=$" AND Id NOT IN ({string.Join(",", ids1.Select(id => "'" + id + "'"))})";
break;
case"Greater"://大于
conditions+=$" AND {name} >'{jsonParam.columnValue}'";
break;
case"LessOrEqual"://小于等于
conditions+=$" AND {name} <='{jsonParam.columnValue}'";
break;
case"Less"://小于
conditions+=$" AND {name} <'{jsonParam.columnValue}'";