CrazyIter_Bin 1 rok temu
rodzic
commit
8c06f10066

+ 3 - 1
TEAMModelOS.SDK/Models/Service/GroupListService.cs

@@ -288,7 +288,8 @@ namespace TEAMModelOS.SDK
                             lang = lang,
                             qrcodeExpire=item.qrcodeExpire,
                             groupName= item.name,
-                            applyTime=now
+                            applyTime=now,
+                            seatNo=seatNo
                         };
                         string key = $"GroupList:GroupWaitingList:{item.scope}:{item.id}";
                         string filed = !string.IsNullOrWhiteSpace(school) ? $"{school}_{userid}" : userid;
@@ -341,6 +342,7 @@ namespace TEAMModelOS.SDK
             /// 申请状态,-1 申请中,0 通过,1 拒绝,2 已过期。 
             /// </summary>
             public int status { get; set; } = -1;
+            public int seatNo { get; set; };
            public List<IdName> courses  { get; set; }= new List<IdName>();
         }
         public static (int status, GroupList stuList, Member member) JoinList(GroupList stuList, string userid, int type, string school, int year, int seatNo = 0)

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

@@ -1372,7 +1372,7 @@ namespace TEAMModelOS.Controllers
                                     {
                                         foreach (var t in takes)
                                         {
-                                            GroupListService.JoinList(list, t.userid, t.type, t.school, t.year);
+                                            GroupListService.JoinList(list, t.userid, t.type, t.school, t.year,t.seatNo);
                                             string stuKey = !string.IsNullOrWhiteSpace(school) ? $"GroupList:StudentWaitinglist:{school}_{t.userid}" : $"GroupList:StudentWaitinglist:{t.userid}";
                                             string stuFiled = $"{list.scope}:{list.id}";
                                             var data = await _azureRedis.GetRedisClient(8).HashGetAsync(stuKey, stuFiled);