|
@@ -1634,7 +1634,8 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
|
|
|
List<SchoolBase> scInfos = new();
|
|
|
string scInfoSql = $"select c.id,c.name,c.code,c.picture from c ";
|
|
|
- scInfos = await CommonFind.GetObject<SchoolBase>(cosmosClient, "School", scInfoSql, "Base", schoolIds);
|
|
|
+ string idSql = BICommonWay.ManyScSql("c.id", schoolIds);
|
|
|
+ scInfos = await CommonFind.GetObject<SchoolBase>(cosmosClient, "School", $"{scInfoSql} where {idSql}", "Base");
|
|
|
|
|
|
List<string> tchMonIds = new();
|
|
|
foreach (var item in scInfos)
|
|
@@ -1906,7 +1907,8 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
if (schoolIds.Count > 0)
|
|
|
{
|
|
|
string scInfoSql = $"select c.id,c.name,c.code,c.picture,c.type,c.size,c.scale from c ";
|
|
|
- scInfos = await CommonFind.GetObject<ScProdEd>(cosmosClient, "School", scInfoSql, "Base", schoolIds);
|
|
|
+ string idSql = BICommonWay.ManyScSql("c.id", schoolIds);
|
|
|
+ scInfos = await CommonFind.GetObject<ScProdEd>(cosmosClient, "School", $"{scInfoSql} where {idSql}", "Base");
|
|
|
|
|
|
if (schoolIds.Count > 0)
|
|
|
{
|