浏览代码

艺术评价活动结构更新

zj 2 年之前
父节点
当前提交
93eb8e9512

+ 13 - 2
TEAMModelOS.SDK/Models/Cosmos/Common/ArtEvaluation.cs

@@ -1,4 +1,5 @@
-using System;
+using DocumentFormat.OpenXml.Office2021.DocumentTasks;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -17,7 +18,7 @@ namespace TEAMModelOS.SDK.Models.Cosmos.Common
         public string name { get; set; }
         public string school { get; set; }
         //高级设置
-        public List<JsonElement> settings { get; set; } = new List<JsonElement>();
+        public List<Tasks> settings { get; set; } = new List<Tasks>();
         public string creatorId { get; set; }
         public long createTime { get; set; }
         public long updateTime { get; set; }
@@ -62,4 +63,14 @@ namespace TEAMModelOS.SDK.Models.Cosmos.Common
         //发布层级 0校级,1区级
         public int? publish { get; set; } = 0;
     }
+    public class Tasks {
+        public string id { get; set; }
+        public List<Acs> task { get; set; } = new List<Acs>();
+    }
+    public class Acs {
+        public string acId { get; set; }
+        public string subject { get; set; }
+        public int? isOrder { get; set; } = 0;
+        public string type { get; set; }
+    }
 }

+ 2 - 2
TEAMModelOS/Controllers/Common/ArtController.cs

@@ -153,9 +153,9 @@ namespace TEAMModelOS.Controllers.Common
 
                         art.status = 404;
                         foreach (var info in art.settings) {
-                            if (info.TryGetProperty("examId", out JsonElement eId)) { 
+                           /* if (info.TryGetProperty("examId", out JsonElement eId)) { 
                                 
-                            }
+                            }*/
                         }
                         /*if (!string.IsNullOrEmpty(art.examId))
                         {