TriggerStuActivity.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. using Azure;
  2. using Azure.Cosmos;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Text.Json;
  9. using System.Threading.Tasks;
  10. using TEAMModelOS.SDK.DI;
  11. using TEAMModelOS.SDK.Extension;
  12. using TEAMModelOS.SDK;
  13. using TEAMModelOS.SDK.Models;
  14. using TEAMModelOS.SDK.Models.Cosmos.Common;
  15. using TEAMModelOS.SDK.Models.Service;
  16. namespace TEAMModelFunction
  17. {
  18. public class TriggerStuActivity
  19. {
  20. public static async Task RefreshStuActivity(CosmosClient client, DingDing _dingDing, string id, string code)
  21. {
  22. MQActivity activity = null;
  23. try
  24. {
  25. var aactivity = await client.GetContainer("TEAMModelOS", "Common").ReadItemStreamAsync(id, new Azure.Cosmos.PartitionKey(code));
  26. using var da = await JsonDocument.ParseAsync(aactivity.ContentStream);
  27. activity = da.ToObject<MQActivity>();
  28. }
  29. catch (CosmosException ex)
  30. {
  31. }
  32. if (activity != null)
  33. {
  34. List<string> classes = ExamService.getClasses(activity.classes, activity.stuLists);
  35. (List<TmdInfo> tmdids, List<StuInfo> students,List<ClassListInfo> classLists) = await GetStuList(client, _dingDing, classes, activity.school);
  36. if (tmdids.IsNotEmpty())
  37. {
  38. foreach (TmdInfo tmdid in tmdids)
  39. {
  40. var stucourse = new StuActivity
  41. {
  42. id = activity.id,
  43. scode = activity.code,
  44. name = activity.name,
  45. code = $"Activity-{tmdid.id}",
  46. scope = activity.scope,
  47. school = activity.school,
  48. creatorId = activity.creatorId,
  49. pk = "Activity",
  50. type = activity.pk,
  51. subjects = activity.pk.ToLower().Equals("exam") && activity.subjects.IsNotEmpty() ? new List<string>() { activity.subjects[0].id } : new List<string>() { "" },
  52. startTime = activity.startTime,
  53. endTime = activity.endTime,
  54. blob = activity.blob,
  55. owner = activity.owner,
  56. createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
  57. taskStatus = -1,
  58. classIds = classes
  59. };
  60. await client.GetContainer("TEAMModelOS", "Student").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
  61. }
  62. }
  63. if (students.IsNotEmpty())
  64. {
  65. foreach (StuInfo student in students)
  66. {
  67. var stucourse = new StuActivity
  68. {
  69. id = activity.id,
  70. scode = activity.code,
  71. name = activity.name,
  72. code = $"Activity-{activity.school}-{student.id}",
  73. scope = activity.scope,
  74. school = activity.school,
  75. creatorId = activity.creatorId,
  76. pk = "Activity",
  77. type = activity.pk,
  78. subjects = activity.pk.ToLower().Equals("exam") && activity.subjects.IsNotEmpty() ? new List<string>() { activity.subjects[0].id } : new List<string>() { "" },
  79. startTime = activity.startTime,
  80. endTime = activity.endTime,
  81. blob = activity.blob,
  82. owner = activity.owner,
  83. createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
  84. taskStatus = -1,
  85. classIds = classes
  86. };
  87. await client.GetContainer("TEAMModelOS", "Student").UpsertItemAsync(stucourse, new PartitionKey(stucourse.code));
  88. }
  89. }
  90. }
  91. }
  92. public static async Task<string> SaveStuActivity(CosmosClient client, DingDing _dingDing, List<StuActivity> stuActivities,List<StuActivity> tmdActivities) {
  93. try {
  94. if (stuActivities.IsNotEmpty())
  95. {
  96. foreach (var x in stuActivities)
  97. {
  98. await client.GetContainer("TEAMModelOS", "Student").UpsertItemAsync(x, new PartitionKey(x.code));
  99. }
  100. }
  101. if (tmdActivities.IsNotEmpty())
  102. {
  103. foreach (var x in tmdActivities)
  104. {
  105. await client.GetContainer("TEAMModelOS", "Student").UpsertItemAsync(x, new PartitionKey(x.code));
  106. }
  107. }
  108. } catch (Exception ex) {
  109. await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-OS,TriggerStuActivity-SaveStuActivity\n{ex.Message}\n{ex.StackTrace}", GroupNames.醍摩豆服務運維群組);
  110. }
  111. return "";
  112. }
  113. /// <summary>
  114. /// 获取行政班接口
  115. /// </summary>
  116. /// <param name="client"></param>
  117. /// <param name="_dingDing"></param>
  118. /// <param name="classes"></param>
  119. /// <param name="school"></param>
  120. /// <returns></returns>
  121. public static async Task<List<ClassInfo>> GetClassInfo(CosmosClient client, DingDing _dingDing, List<string> classes, string school)
  122. {
  123. try {
  124. List<ClassInfo> classInfos = new List<ClassInfo>();
  125. if (classes.IsNotEmpty()) {
  126. List<string> sqlList = new List<string>();
  127. classes.ForEach(x => { sqlList.Add($" '{x}' "); });
  128. string sql = string.Join(" , ", sqlList);
  129. if (!string.IsNullOrEmpty(school))
  130. {
  131. await foreach (var item in client.GetContainer("TEAMModelOS", "School").GetItemQueryIterator<ClassInfo>(queryText: $"select c.id,c.name ,c.periodId,c.year from c where c.id in ({sql})",
  132. requestOptions: new QueryRequestOptions() { PartitionKey = new Azure.Cosmos.PartitionKey($"Class-{school}") }))
  133. {
  134. classInfos.Add(item);
  135. }
  136. await foreach (var item in client.GetContainer("TEAMModelOS", "School").GetItemQueryIterator<ClassInfo>(queryText: $"select c.id,c.name from c where c.id in ({sql})",
  137. requestOptions: new QueryRequestOptions() { PartitionKey = new Azure.Cosmos.PartitionKey($"StuList-{school}") }))
  138. {
  139. //item.from = "SchStuList";
  140. classInfos.Add(item);
  141. }
  142. }
  143. List<StuList> tchLists = new List<StuList>();
  144. await foreach (var item in client.GetContainer("TEAMModelOS", "Teacher").GetItemQueryIterator<ClassInfo>(queryText: $"select c.id,c.name from c where c.id in ({sql})",
  145. requestOptions: new QueryRequestOptions() { PartitionKey = new Azure.Cosmos.PartitionKey($"StuList") }))
  146. {
  147. // item.from = "TchStuList";
  148. classInfos.Add(item);
  149. }
  150. }
  151. return classInfos;
  152. } catch (Exception ex) {
  153. await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-OS,TriggerStuActivity-GetClassInfo\n{ex.Message}\n{ex.StackTrace}\n class{classes.ToJsonString()},{school}", GroupNames.醍摩豆服務運維群組);
  154. throw new Exception(ex.Message, ex);
  155. }
  156. }
  157. public static async Task<(List<TmdInfo> tmdinfos, List<StuInfo> students, List<ClassListInfo> classInfo)> GetStuListInStu(CosmosClient client, DingDing _dingDing, List<string> claes, string school)
  158. {
  159. try
  160. {
  161. List<string> classes = new List<string>();
  162. foreach (string ss in claes)
  163. {
  164. classes.Add(ss);
  165. }
  166. List<TmdInfo> tmdinfos = new List<TmdInfo>();
  167. List<Students> studentss = new List<Students>();
  168. List<string> tmdids = new List<string>();
  169. List<StuInfo> stuInfos = new List<StuInfo>();
  170. if (!classes.IsNotEmpty()) { return (tmdinfos, new List<StuInfo>(), null); }
  171. List<string> sqlList = new List<string>();
  172. classes.ForEach(x => { sqlList.Add($" '{x}' "); });
  173. string sql = string.Join(" , ", sqlList);
  174. List<StuList> schList = new List<StuList>();
  175. List<Student> students = new List<Student>();
  176. if (!string.IsNullOrEmpty(school))
  177. {
  178. await foreach (var item in client.GetContainer("TEAMModelOS", "School").GetItemQueryIterator<StuList>(queryText: $"select value(c) from c where c.id in ({sql})",
  179. requestOptions: new QueryRequestOptions() { PartitionKey = new Azure.Cosmos.PartitionKey($"StuList-{school}") }))
  180. {
  181. schList.Add(item);
  182. }
  183. await foreach (var item in client.GetContainer("TEAMModelOS", "Student").GetItemQueryIterator<Student>(queryText: $"select value(c) from c where c.classId in ({sql})",
  184. requestOptions: new QueryRequestOptions() { PartitionKey = new Azure.Cosmos.PartitionKey($"Base-{school}") }))
  185. {
  186. students.Add(item);
  187. }
  188. }
  189. List<StuList> tchLists = new List<StuList>();
  190. await foreach (var item in client.GetContainer("TEAMModelOS", "Teacher").GetItemQueryIterator<StuList>(queryText: $"select value(c) from c where c.id in ({sql})",
  191. requestOptions: new QueryRequestOptions() { PartitionKey = new Azure.Cosmos.PartitionKey($"StuList") }))
  192. {
  193. tchLists.Add(item);
  194. }
  195. foreach (var x in schList)
  196. {
  197. if (x.students.IsNotEmpty())
  198. {
  199. studentss.AddRange(x.students);
  200. }
  201. if (x.tmids.IsNotEmpty())
  202. {
  203. tmdids.AddRange(x.tmids);
  204. }
  205. classes.Remove(x.id);
  206. }
  207. foreach (var x in tchLists)
  208. {
  209. if (x.students.IsNotEmpty())
  210. {
  211. studentss.AddRange(x.students);
  212. }
  213. if (x.tmids.IsNotEmpty())
  214. {
  215. tmdids.AddRange(x.tmids);
  216. }
  217. classes.Remove(x.id);
  218. }
  219. if (tmdids.IsNotEmpty())
  220. {
  221. List<TmdInfo> infos = new List<TmdInfo>();
  222. List<string> inids = new List<string>();
  223. tmdids.ForEach(x => { inids.Add($"'{x}'"); });
  224. var insql = string.Join(",", inids);
  225. var queryslt = $"SELECT value(c) FROM c where c.id in ({insql})";
  226. await foreach (var item in client.GetContainer("TEAMModelOS", "Student").GetItemQueryIterator<TmdInfo>(queryText: queryslt, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Base") }))
  227. {
  228. infos.Add(item);
  229. }
  230. tmdinfos.AddRange(infos);
  231. }
  232. if (studentss.IsNotEmpty())
  233. {
  234. var stuGroups = studentss.GroupBy(x => x.code).ToList().Select(x => new { key = x.Key, list = x.ToList() }) ;
  235. foreach (var gp in stuGroups) {
  236. List<string> inidstus = new List<string>();
  237. gp.list.Select(x => x.id).ToList().ForEach(x => { inidstus.Add($"'{x}'"); });
  238. PartitionKey partitionKey = new PartitionKey($"Base-{gp.key.Replace("Base-", "")}");
  239. var insqlstu = string.Join(",", inidstus);
  240. var querystu = $"SELECT c.id,c.code,c.name,c.picture,c.classId,c.year,c.schoolId FROM c where c.id in ({insqlstu})";
  241. await foreach (var item in client.GetContainer("TEAMModelOS", "Student").GetItemQueryIterator<StuInfo>(queryText: querystu, requestOptions: new QueryRequestOptions() { PartitionKey= partitionKey }))
  242. {
  243. stuInfos.Add(item);
  244. }
  245. }
  246. }
  247. students.ForEach(x =>
  248. {
  249. if (!stuInfos.Select(y => y.classId).ToList().Contains(x.id))
  250. {
  251. stuInfos.Add(new StuInfo { id = x.id, code = x.code, schoolId = x.schoolId, classId = x.classId, name = x.name, picture = x.picture, year = x.year });
  252. }
  253. });
  254. List<ClassListInfo> classInfo = new List<ClassListInfo>();
  255. schList.ForEach(x => {
  256. ClassListInfo classListInfo = new ClassListInfo { id = x.id, name = x.name };
  257. if (x.students.IsNotEmpty())
  258. {
  259. x.students.ForEach(y => {
  260. var stuinfo = stuInfos.Where(z => z.id.Equals(y.id)).FirstOrDefault();
  261. if (stuinfo != null)
  262. {
  263. classListInfo.stuInfos.Add(stuinfo);
  264. }
  265. });
  266. }
  267. if (x.tmids.IsNotEmpty())
  268. {
  269. x.tmids.ForEach(y => {
  270. var tmdinfo = tmdinfos.Where(z => z.id.Equals(y)).FirstOrDefault();
  271. if (tmdinfo != null)
  272. {
  273. classListInfo.tmdInfos.Add(tmdinfo);
  274. }
  275. });
  276. }
  277. classInfo.Add(classListInfo);
  278. });
  279. tchLists.ForEach(x => {
  280. ClassListInfo classListInfo = new ClassListInfo { id = x.id, name = x.name };
  281. if (x.students.IsNotEmpty())
  282. {
  283. x.students.ForEach(y => {
  284. var stuinfo = stuInfos.Where(z => z.id.Equals(y.id)).FirstOrDefault();
  285. if (stuinfo != null)
  286. {
  287. classListInfo.stuInfos.Add(stuinfo);
  288. }
  289. });
  290. }
  291. if (x.tmids.IsNotEmpty())
  292. {
  293. x.tmids.ForEach(y => {
  294. var tmdinfo = tmdinfos.Where(z => z.id.Equals(y)).FirstOrDefault();
  295. if (tmdinfo != null)
  296. {
  297. classListInfo.tmdInfos.Add(tmdinfo);
  298. }
  299. });
  300. }
  301. classInfo.Add(classListInfo);
  302. });
  303. //var classeids= students.GroupBy(x => x.classId).Select(x => x.Key).ToList();
  304. List<ClassInfo> classInfos = await GetClassInfo(client, _dingDing, classes, school);
  305. classInfos.ForEach(x =>
  306. {
  307. ClassListInfo classListInfo = new ClassListInfo { id = x.id, name = x.name };
  308. var list = students.Where(y => y.classId .Equals(x.id)).ToList();
  309. list.ForEach(z => { classListInfo.stuInfos.Add(new StuInfo { id = z.id, code = z.code, schoolId = z.schoolId, classId = z.classId, name = z.name, picture = z.picture, year = z.year }); });
  310. classInfo.Add(classListInfo);
  311. });
  312. return (tmdinfos, stuInfos, classInfo);
  313. }
  314. catch (Exception ex)
  315. {
  316. await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-OS,TriggerStuActivity-GetStuList\n{ex.Message}\n{ex.StackTrace}", GroupNames.醍摩豆服務運維群組);
  317. }
  318. return (null, null, null);
  319. }
  320. public static async Task<(List<TmdInfo> tmdinfos, List<StuInfo> students,List<ClassListInfo>classInfo)> GetStuList(CosmosClient client, DingDing _dingDing, List<string> claes, string school)
  321. {
  322. try {
  323. List<string> classes = new List<string>();
  324. foreach (string ss in claes)
  325. {
  326. classes.Add(ss);
  327. }
  328. List<TmdInfo> tmdinfos = new List<TmdInfo>();
  329. List<Students> studentss = new List<Students>();
  330. List<string> tmdids = new List<string>();
  331. List<StuInfo> stuInfos = new List<StuInfo>();
  332. if (!classes.IsNotEmpty()) { return (tmdinfos, new List<StuInfo>(),null); }
  333. List<string> sqlList = new List<string>();
  334. classes.ForEach(x => { sqlList.Add($" '{x}' "); });
  335. string sql = string.Join(" , ", sqlList);
  336. List<StuList> schList = new List<StuList>();
  337. List<Student> students = new List<Student>();
  338. if (!string.IsNullOrEmpty(school)) {
  339. await foreach (var item in client.GetContainer("TEAMModelOS", "School").GetItemQueryIterator<StuList>(queryText: $"select value(c) from c where c.id in ({sql})",
  340. requestOptions: new QueryRequestOptions() { PartitionKey = new Azure.Cosmos.PartitionKey($"StuList-{school}") }))
  341. {
  342. schList.Add(item);
  343. }
  344. await foreach (var item in client.GetContainer("TEAMModelOS", "Student").GetItemQueryIterator<Student>(queryText: $"select value(c) from c where c.classId in ({sql})",
  345. requestOptions: new QueryRequestOptions() { PartitionKey = new Azure.Cosmos.PartitionKey($"Base-{school}") }))
  346. {
  347. students.Add(item);
  348. }
  349. }
  350. List<StuList> tchLists = new List<StuList>();
  351. await foreach (var item in client.GetContainer("TEAMModelOS", "Teacher").GetItemQueryIterator<StuList>(queryText: $"select value(c) from c where c.id in ({sql})",
  352. requestOptions: new QueryRequestOptions() { PartitionKey = new Azure.Cosmos.PartitionKey($"StuList") }))
  353. {
  354. tchLists.Add(item);
  355. }
  356. foreach (var x in schList) {
  357. if (x.students.IsNotEmpty())
  358. {
  359. studentss.AddRange(x.students);
  360. }
  361. if (x.tmids.IsNotEmpty())
  362. {
  363. tmdids.AddRange(x.tmids);
  364. }
  365. classes.Remove(x.id);
  366. }
  367. foreach (var x in tchLists)
  368. {
  369. if (x.students.IsNotEmpty()) {
  370. studentss.AddRange(x.students);
  371. }
  372. if (x.tmids.IsNotEmpty())
  373. {
  374. tmdids.AddRange(x.tmids);
  375. }
  376. classes.Remove(x.id);
  377. }
  378. if (tmdids.IsNotEmpty()) {
  379. List<TmdInfo> infos = new List<TmdInfo>();
  380. List<string> inids = new List<string>();
  381. tmdids.ForEach(x => { inids.Add($"'{x}'"); });
  382. var insql = string.Join(",", inids);
  383. var queryslt = $"SELECT value(c) FROM c where c.id in ({insql})";
  384. await foreach (var item in client.GetContainer("TEAMModelOS", "Student").GetItemQueryIterator<TmdInfo>(queryText: queryslt, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Base") }))
  385. {
  386. infos.Add(item);
  387. }
  388. tmdinfos.AddRange(infos);
  389. }
  390. if (studentss.IsNotEmpty()) {
  391. List<string> inidstus = new List<string>();
  392. foreach (Students stu in studentss) {
  393. var querystu = $"SELECT c.id,c.code,c.name,c.picture,c.classId,c.year,c.schoolId FROM c where c.id = '{stu.id}'";
  394. await foreach (var item in client.GetContainer("TEAMModelOS", "Student").GetItemQueryIterator<StuInfo>(queryText: querystu, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"{stu.code}") }))
  395. {
  396. stuInfos.Add(item);
  397. }
  398. }
  399. /*studentss.Select(x => x.id).ToList().ForEach(x => { inidstus.Add($"'{x}'"); });
  400. var insqlstu = string.Join(",", inidstus);
  401. var querystu = $"SELECT c.id,c.code,c.name,c.picture,c.classId,c.year,c.schoolId FROM c where c.id in ({insqlstu})";
  402. await foreach (var item in client.GetContainer("TEAMModelOS", "Student").GetItemQueryIterator<StuInfo>(queryText: querystu, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Base-{school}") }))
  403. {
  404. stuInfos.Add(item);
  405. }*/
  406. }
  407. students.ForEach(x =>
  408. {
  409. if (!stuInfos.Select(y => y.classId).ToList().Contains(x.id)) {
  410. stuInfos.Add(new StuInfo { id = x.id, code = x.code, schoolId = x.schoolId, classId = x.classId, name = x.name, picture = x.picture, year = x.year });
  411. }
  412. });
  413. List<ClassListInfo> classInfo = new List<ClassListInfo>();
  414. schList.ForEach(x => {
  415. ClassListInfo classListInfo = new ClassListInfo {id=x.id,name=x.name };
  416. if (x.students.IsNotEmpty()) {
  417. x.students.ForEach(y => {
  418. var stuinfo= stuInfos.Where(z => z.id.Equals(y.id)).FirstOrDefault();
  419. if (stuinfo != null) {
  420. classListInfo.stuInfos.Add(stuinfo);
  421. }
  422. });
  423. }
  424. if (x.tmids.IsNotEmpty())
  425. {
  426. x.tmids.ForEach(y => {
  427. var tmdinfo = tmdinfos.Where(z => z.id.Equals(y)).FirstOrDefault();
  428. if (tmdinfo != null)
  429. {
  430. classListInfo.tmdInfos.Add(tmdinfo);
  431. }
  432. });
  433. }
  434. classInfo.Add(classListInfo);
  435. });
  436. tchLists.ForEach(x => {
  437. ClassListInfo classListInfo = new ClassListInfo { id = x.id, name = x.name };
  438. if (x.students.IsNotEmpty())
  439. {
  440. x.students.ForEach(y => {
  441. var stuinfo = stuInfos.Where(z => z.id.Equals(y.id)).FirstOrDefault();
  442. if (stuinfo != null)
  443. {
  444. classListInfo.stuInfos.Add(stuinfo);
  445. }
  446. });
  447. }
  448. if (x.tmids.IsNotEmpty())
  449. {
  450. x.tmids.ForEach(y => {
  451. var tmdinfo = tmdinfos.Where(z => z.id.Equals(y)).FirstOrDefault();
  452. if (tmdinfo != null)
  453. {
  454. classListInfo.tmdInfos.Add(tmdinfo);
  455. }
  456. });
  457. }
  458. classInfo.Add(classListInfo);
  459. });
  460. //var classeids= students.GroupBy(x => x.classId).Select(x => x.Key).ToList();
  461. List<ClassInfo> classInfos= await GetClassInfo(client, _dingDing, classes, school);
  462. classInfos.ForEach(x =>
  463. {
  464. ClassListInfo classListInfo = new ClassListInfo { id = x.id, name = x.name };
  465. var list= students.Where(y => y.classId .Equals(x.id)).ToList();
  466. list.ForEach(z => { classListInfo.stuInfos.Add(new StuInfo { id = z.id, code = z.code, schoolId = z.schoolId, classId = z.classId, name = z.name, picture = z.picture, year = z.year }); });
  467. classInfo.Add(classListInfo);
  468. });
  469. return (tmdinfos, stuInfos, classInfo) ;
  470. }
  471. catch (Exception ex)
  472. {
  473. await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-OS,TriggerStuActivity-GetStuList\n{ex.Message}\n{ex.StackTrace}", GroupNames.醍摩豆服務運維群組);
  474. }
  475. return (null, null,null);
  476. }
  477. }
  478. public class ClassListInfo
  479. {
  480. public string id { get; set; }
  481. public string name { get; set; }
  482. // public string from { get; set; }
  483. public List<StuInfo> stuInfos { get; set; } = new List<StuInfo>();
  484. public List<TmdInfo> tmdInfos { get; set; } = new List<TmdInfo>();
  485. }
  486. }