TriggerStuActivity.cs 26 KB

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