|
@@ -225,7 +225,7 @@ namespace TEAMModelBI.Controllers.BITest
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- await _dingDing.SendBotMsg($"BI,{_option.Location} /operatelog/get-operatelogbydate {ex.Message}{ex.StackTrace}", GroupNames.成都开发測試群組);
|
|
|
+ await _dingDing.SendBotMsg($"BI,{_option.Location} /operatelog/get-operatelogbydate \n {ex.Message}{ex.StackTrace}", GroupNames.成都开发測試群組);
|
|
|
return BadRequest();
|
|
|
}
|
|
|
}
|
|
@@ -394,7 +394,7 @@ namespace TEAMModelBI.Controllers.BITest
|
|
|
{
|
|
|
jsonElement.TryGetProperty("schoolCode", out JsonElement _schoolCode);
|
|
|
var cosmosClient = _azureCosmos.GetCosmosClient();
|
|
|
- List<SchoolAssist> schoolAssists = new();
|
|
|
+ List<AssistSchool> schoolAssists = new();
|
|
|
//StringBuilder stringBuilder = new StringBuilder("select value(c) from c");
|
|
|
StringBuilder stringBuilder = new StringBuilder("select c.id,c.code,c.schoolCode,c.name,c.region,c.province,c.city,c.dist,c.size,c.address,c.picture,c.type,c.scale,c.areaId,c.standard from c");
|
|
|
|
|
@@ -445,7 +445,7 @@ namespace TEAMModelBI.Controllers.BITest
|
|
|
foreach (var objSchool in jsonSchool.RootElement.GetProperty("Documents").EnumerateArray())
|
|
|
{
|
|
|
var schoolId = objSchool.GetProperty("id").GetString();
|
|
|
- SchoolAssist schoolAssist = new()
|
|
|
+ AssistSchool schoolAssist = new()
|
|
|
{
|
|
|
id = schoolId,
|
|
|
code = objSchool.GetProperty("code").GetString(),
|
|
@@ -481,7 +481,7 @@ namespace TEAMModelBI.Controllers.BITest
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- List<SchoolAssist> tempSchoolAssists = new();
|
|
|
+ List<AssistSchool> tempSchoolAssists = new();
|
|
|
await foreach (var temp in GetSchools(cosmosClient, schoolAssists))
|
|
|
{
|
|
|
tempSchoolAssists.AddRange(temp);
|
|
@@ -503,9 +503,9 @@ namespace TEAMModelBI.Controllers.BITest
|
|
|
/// <param name="cosmosClient"></param>
|
|
|
/// <param name="schoolAssists"></param>
|
|
|
/// <returns></returns>
|
|
|
- private async IAsyncEnumerable<List<SchoolAssist>> GetSchools(CosmosClient cosmosClient, List<SchoolAssist> schoolAssists)
|
|
|
+ private async IAsyncEnumerable<List<AssistSchool>> GetSchools(CosmosClient cosmosClient, List<AssistSchool> schoolAssists)
|
|
|
{
|
|
|
- List<SchoolAssist> tempSchoolAssists = new();
|
|
|
+ List<AssistSchool> tempSchoolAssists = new();
|
|
|
foreach (var temp in schoolAssists)
|
|
|
{
|
|
|
var response = await cosmosClient.GetContainer("TEAMModelOS", "School").ReadItemStreamAsync(temp.id, new PartitionKey("ProductSum"));
|