|
@@ -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)
|
|
|
{
|