浏览代码

数据初始化

zhouj1203@hotmail.com 3 年之前
父节点
当前提交
cc98889510
共有 2 个文件被更改,包括 5 次插入4 次删除
  1. 2 2
      TEAMModelFunction/TriggerCorrect.cs
  2. 3 2
      TEAMModelOS.SDK/Models/Cosmos/Common/Correct.cs

+ 2 - 2
TEAMModelFunction/TriggerCorrect.cs

@@ -96,7 +96,7 @@ namespace TEAMModelFunction
                                             //按题阅卷时,题号
                                             //按题阅卷时,题号
                                             qu = marker.qu,
                                             qu = marker.qu,
                                             //模块术
                                             //模块术
-                                            modle = correct.modle
+                                            modle = sub.modle
                                             //type = correct.isArb
                                             //type = correct.isArb
                                         };
                                         };
                                        await  client.GetContainer("TEAMModelOS", "Teacher").UpsertItemAsync<CorrectTask>(task,new Azure.Cosmos.PartitionKey(task.code));
                                        await  client.GetContainer("TEAMModelOS", "Teacher").UpsertItemAsync<CorrectTask>(task,new Azure.Cosmos.PartitionKey(task.code));
@@ -205,7 +205,7 @@ namespace TEAMModelFunction
                                                 //tIds = tmds,
                                                 //tIds = tmds,
                                                 marks = marks,
                                                 marks = marks,
                                                 items = items,
                                                 items = items,
-                                                modle = correct.modle
+                                                modle = sub.modle
 
 
                                             };
                                             };
                                             tasks.Add(client.GetContainer("TEAMModelOS", "Teacher").CreateItemAsync<Scoring>(sc, new Azure.Cosmos.PartitionKey(sc.code)));
                                             tasks.Add(client.GetContainer("TEAMModelOS", "Teacher").CreateItemAsync<Scoring>(sc, new Azure.Cosmos.PartitionKey(sc.code)));

+ 3 - 2
TEAMModelOS.SDK/Models/Cosmos/Common/Correct.cs

@@ -78,7 +78,7 @@ namespace TEAMModelOS.SDK.Models.Cosmos
         public int isArb { get; set; }
         public int isArb { get; set; }
         public string source { get; set; }
         public string source { get; set; }
 
 
-        public int modle { get; set; }
+
     }
     }
 
 
     public class CorSub{
     public class CorSub{
@@ -102,11 +102,12 @@ namespace TEAMModelOS.SDK.Models.Cosmos
         /// 仲裁卷处理人员
         /// 仲裁卷处理人员
         /// </summary>
         /// </summary>
         public List<string> arb { get; set; } = new List<string>() ;
         public List<string> arb { get; set; } = new List<string>() ;
+        public int modle { get; set; }
         /// <summary>
         /// <summary>
         /// 分差(仲裁条件)
         /// 分差(仲裁条件)
         /// </summary>
         /// </summary>
         ///public double point { get; set; }
         ///public double point { get; set; }
-       
+
     }
     }
     public class CorTmd{
     public class CorTmd{
         /// <summary>
         /// <summary>