Browse Source

数据处理优化

CrazyIter_Bin 3 years ago
parent
commit
e5b5ba9939

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

@@ -129,7 +129,7 @@ namespace TEAMModelFunction
                             id = activity.id,
                             id = activity.id,
                             scode = activity.code,
                             scode = activity.code,
                             name = activity.name,
                             name = activity.name,
-                            code = $"Activity-{ activity.school}-{tch}",
+                            code = $"Activity-{tch}",
                             scope = activity.scope,
                             scope = activity.scope,
                             school = activity.school,
                             school = activity.school,
                             creatorId = activity.creatorId,
                             creatorId = activity.creatorId,

+ 1 - 4
TEAMModelOS/Controllers/XTest/DataMigrationController.cs

@@ -34,10 +34,7 @@ namespace TEAMModelOS.Controllers
         ///     迁移的数据   StuCourse  ==>> Student  //IES5
         ///     迁移的数据   StuCourse  ==>> Student  //IES5
         ///                  Activity   ==>> Student  //IES5
         ///                  Activity   ==>> Student  //IES5
         ///                  
         ///                  
-        ///                  AbilitySub ==>> Student  //IES5  教研中心
-        ///                  ClassVideo ==>> Student  //IES5  教研中心
-        ///                  Debate     ==>> Student  //IES5  教研中心
-        ///                  Appraise   ==>> Student  //IES5  教研中心
+      
         private readonly AzureStorageFactory _azureStorage;
         private readonly AzureStorageFactory _azureStorage;
         private readonly AzureRedisFactory _azureRedis;
         private readonly AzureRedisFactory _azureRedis;
         private readonly AzureCosmosFactory _azureCosmos;
         private readonly AzureCosmosFactory _azureCosmos;

+ 1 - 2
TEAMModelOS/Controllers/XTest/TestController.cs

@@ -266,8 +266,7 @@ namespace TEAMModelOS.Controllers
             try
             try
             {
             {
                 var client = _azureCosmos.GetCosmosClient();
                 var client = _azureCosmos.GetCosmosClient();
-                Console.WriteLine(client.Endpoint);
-                var query = $"select c.id ,c.code from c where c.pk='Activity' ";
+                var query = $"select c.id ,c.code from c where c.pk='StuCourse' ";
                 await foreach (var item in client.GetContainer(Constant.TEAMModelOS, "Teacher").GetItemQueryIterator<IdCode>(queryText: query))
                 await foreach (var item in client.GetContainer(Constant.TEAMModelOS, "Teacher").GetItemQueryIterator<IdCode>(queryText: query))
                 {
                 {
                   await  client.GetContainer(Constant.TEAMModelOS, "Teacher").DeleteItemStreamAsync(item.id, new PartitionKey(item.code));
                   await  client.GetContainer(Constant.TEAMModelOS, "Teacher").DeleteItemStreamAsync(item.id, new PartitionKey(item.code));