CrazyIter_Bin 1 vuosi sitten
vanhempi
commit
6c03f71848

+ 2 - 2
TEAMModelBI/Controllers/BISchool/BatchSchoolController.cs

@@ -216,7 +216,7 @@ namespace TEAMModelBI.Controllers.BISchool
                                 period = PresetSchoolPeriod(bischool.period, foundSchools.lang, campusId),
                                 period = PresetSchoolPeriod(bischool.period, foundSchools.lang, campusId),
                                 scale = bischool.size >= 300 ? 500 : 0,
                                 scale = bischool.size >= 300 ? 500 : 0,
                                 isinit = true,
                                 isinit = true,
-                                //modules=bischool.modules,
+                                modules=bischool?.modules,
                                 openLessonRecord = (_option.Location.Contains("Global")) ? false : true,
                                 openLessonRecord = (_option.Location.Contains("Global")) ? false : true,
                                 createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
                                 createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
 
 
@@ -1974,7 +1974,7 @@ namespace TEAMModelBI.Controllers.BISchool
             /// <summary>
             /// <summary>
             /// 手动增加的模块 ["art"]
             /// 手动增加的模块 ["art"]
             /// </summary>
             /// </summary>
-            //public List<string> modules { get; set; } = new List<string>();
+            public List<string> modules { get; set; } = new List<string>();
         }
         }
 
 
         /// <summary>
         /// <summary>

+ 1 - 1
TEAMModelOS.SDK/Models/Cosmos/School/School.cs

@@ -109,7 +109,7 @@ namespace TEAMModelOS.SDK.Models
         /// <summary>
         /// <summary>
         /// 单独增加的模块
         /// 单独增加的模块
         /// </summary>
         /// </summary>
-        //public List<string> modules { get; set; } = new List<string>();
+        public List<string> modules { get; set; } = new List<string>();
     }
     }
     /// <summary>
     /// <summary>
     /// 课表计划
     /// 课表计划