ESS公开课、必修、选修查询接口 新增关键字搜索

master
xiaochanghai 4 weeks ago
parent ff9f6cdbf3
commit 0effd5dc29
  1. 8
      Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs
  2. 6
      Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs

@ -1230,6 +1230,14 @@ public class Ghre_CourseServices : BaseServices<Ghre_Course, Ghre_CourseDto, Ins
continue;
}
if (name == "KeyWords")
{
var jsonParam = JsonConvert.DeserializeObject<JsonParam>(value);
conditions += $" AND CourseName LIKE '%{jsonParam.columnValue}%' ";
continue;
}
if (!string.IsNullOrWhiteSpace(value))
{
var jsonParam = JsonConvert.DeserializeObject<JsonParam>(value);

@ -976,7 +976,7 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud
var value = jProperty.Value.ToString();
if (name == "page" || name == "pageSize")
continue;
if (name == "CourseNoOrName")
if (name == "CourseNoOrName" || name == "KeyWords")
{
var jsonParam = JsonConvert.DeserializeObject<JsonParam>(value);
conditions += $" AND CourseName LIKE '%{jsonParam.columnValue}%'";
@ -998,7 +998,7 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud
conditions += $" AND {name} LIKE '%{jsonParam.columnValue}%'";
continue;
}
}
if (name == "CourseStatus")
{
@ -1216,7 +1216,7 @@ WHERE A.Status !='Temporary' AND A.Status !='Close' AND A.IsEnable=1 AND ( E
var value = jProperty.Value.ToString();
if (name == "page" || name == "pageSize")
continue;
if (name == "CourseNoOrName")
if (name == "CourseNoOrName" || name == "KeyWords")
{
var jsonParam = JsonConvert.DeserializeObject<JsonParam>(value);
conditions += $" AND CourseName LIKE '%{jsonParam.columnValue}%'";

Loading…
Cancel
Save