学分查询、培训记录 部门/岗位 新增可多选查询,查询优化

master
xiaochanghai 11 months ago
parent db85885bb6
commit 33b5013828
  1. 28
      Tiobon.Core.Services/Ghre/Ghre_CreditPointServices.cs

@ -123,33 +123,7 @@ public class Ghre_CreditPointServices : BaseServices<Ghre_CreditPoint, Ghre_Cred
}
if (!string.IsNullOrWhiteSpace(value))
{
var jsonParam = JsonConvert.DeserializeObject<JsonParam>(value);
switch (jsonParam.operationKey)
{
case "Include":
conditions += $" AND {name} LIKE '%{jsonParam.columnValue}%'";
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;
default:
break;
}
}
conditions = DealConditions(conditions, name, value);
}
//if (ids != null && ids.Any())

Loading…
Cancel
Save