瀏覽代碼

增加groupId

CrazyIter_Bin 3 年之前
父節點
當前提交
2b65707298

+ 3 - 4
TEAMModelOS.SDK/Models/Cosmos/Common/GroupList.cs

@@ -93,7 +93,7 @@ namespace TEAMModelOS.SDK.Models
         /// </summary>
         public string irs { get; set; }
         public string tag { get; set; }
-        // public string groupId { get; set; }
+        public string groupId { get; set; }
         public string groupName { get; set; }
     }
     public class RMember
@@ -132,7 +132,7 @@ namespace TEAMModelOS.SDK.Models
         /// <summary>
         /// 名单分组id
         /// </summary>
-        //public string groupId { get; set; }
+        public string groupId { get; set; }
         /// <summary>
         /// 名单分组名称
         /// </summary>
@@ -158,8 +158,7 @@ namespace TEAMModelOS.SDK.Models
             this.tcount = groupList.tcount;
             this.leader = groupList.leader;
             this.year = groupList.year;
-            this.groupName = groupName;
-
+            this.groupName = groupName; 
         }
         public string pk { get; set; }
         public string id { get; set; }

+ 1 - 1
TEAMModelOS/Controllers/School/GroupListController.cs

@@ -619,7 +619,7 @@ namespace TEAMModelOS.Controllers
                                 students.Add(item);
                             }     
                             ///行政班(学生搜寻classId动态返回)class
-                            List<RMember> smembers = students.Where(x => x.classId.Equals(clazz.id)).Select(y => new RMember { id = y.id, code = $"{_code}", name = y.name, type = 2, picture = y.picture, no = y.no,classId=y.classId, /*groupId = y.groupId,*/ groupName = y.groupName }).ToList();
+                            List<RMember> smembers = students.Where(x => x.classId.Equals(clazz.id)).Select(y => new RMember { id = y.id, code = $"{_code}", name = y.name, type = 2, picture = y.picture, no = y.no,classId=y.classId, groupId = y.groupId, groupName = y.groupName }).ToList();
                             groupList = new RGroupList
                             {
                                 id=clazz.id,