ソースを参照

修改数据类型

zhouj1203@hotmail.com 3 年 前
コミット
36fc32a9fc

+ 12 - 1
TEAMModelFunction/TriggerCorrect.cs

@@ -96,9 +96,20 @@ namespace TEAMModelFunction
                                             //按题阅卷时,题号
                                             qu = marker.qu,
                                             //模块术
-                                            modle = sub.modle
+                                            model = sub.model
                                             //type = correct.isArb
                                         };
+                                        if (correct.isArb == 1)
+                                        {
+                                            task.type = 3;
+                                        }
+                                        else if (correct.isErr == 1)
+                                        {
+                                            task.type = 2;
+                                        }
+                                        else {
+                                            task.type = 1;
+                                        }
                                        await  client.GetContainer("TEAMModelOS", "Teacher").UpsertItemAsync<CorrectTask>(task,new Azure.Cosmos.PartitionKey(task.code));
                                     }
                                 }

+ 2 - 2
TEAMModelOS.SDK/Models/Cosmos/Teacher/CorrectTask.cs

@@ -39,8 +39,8 @@ namespace TEAMModelOS.SDK.Models
         /// </summary>
         public int count { get; set; }
         public List<int> qu { get; set; } = new List<int>();
-        //阅卷类型
-        public string type { get; set; }
+        //阅卷类型1 正常卷 2 异常卷 3 仲裁卷
+        public int type { get; set; }
         //模块数
         public int model { get; set; }
     }