Explorar o código

调整查询语句。

CrazyIter_Bin %!s(int64=3) %!d(string=hai) anos
pai
achega
1049dbfec4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      TEAMModelOS.SDK/Models/Service/GroupListService.cs

+ 1 - 1
TEAMModelOS.SDK/Models/Service/GroupListService.cs

@@ -81,7 +81,7 @@ namespace TEAMModelOS.SDK
                 //教学班
                 StringBuilder teachsql = new StringBuilder();
                 if (!string.IsNullOrWhiteSpace(school) && memberType == 2) {
-                    teachsql.Append($"SELECT distinct {SummarySql} FROM c join  m  in c.members   where c.type='teach' and  m.id='{memberId}' and m.school='{school}' and m.type=2 ");
+                    teachsql.Append($"SELECT distinct {SummarySql} FROM c join  m  in c.members   where c.type='teach' and  m.id='{memberId}' and m.code='{school}' and m.type=2 ");
                 }
                 if (memberType == 1)
                 {