|
@@ -735,7 +735,7 @@ namespace TEAMModelOS.Controllers
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- string queryText = $"SELECT c.id, c.students FROM c WHERE c.pk = 'Classroom'";
|
|
|
+ string queryText = $"SELECT c.id, c.students FROM c WHERE c.pk = 'Class'";
|
|
|
if (!string.IsNullOrWhiteSpace(classId)) queryText += $" AND c.id = '{classId}'";
|
|
|
Dictionary<string, JsonElement> listStudent = new Dictionary<string, JsonElement>();
|
|
|
|
|
@@ -1102,7 +1102,7 @@ namespace TEAMModelOS.Controllers
|
|
|
{
|
|
|
if (!(classIds == null || classIds.Count == 0))
|
|
|
{
|
|
|
- string queryText = $"SELECT * FROM c WHERE c.pk = 'Classroom' AND c.id IN ({string.Join(",", classIds.Select(o => $"'{o}'"))})";
|
|
|
+ string queryText = $"SELECT * FROM c WHERE c.pk = 'Class' AND c.id IN ({string.Join(",", classIds.Select(o => $"'{o}'"))})";
|
|
|
|
|
|
Dictionary<string, JsonElement> dicClassInfo = new Dictionary<string, JsonElement>();
|
|
|
|