|
@@ -18,6 +18,7 @@ using TEAMModelOS.SDK.Models.Service;
|
|
using HTEXLib.COMM.Helpers;
|
|
using HTEXLib.COMM.Helpers;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Configuration;
|
|
using DocumentFormat.OpenXml.Office2013.Excel;
|
|
using DocumentFormat.OpenXml.Office2013.Excel;
|
|
|
|
+using DocumentFormat.OpenXml.Vml;
|
|
|
|
|
|
namespace TEAMModelOS.FunctionV4
|
|
namespace TEAMModelOS.FunctionV4
|
|
{
|
|
{
|
|
@@ -356,9 +357,20 @@ namespace TEAMModelOS.FunctionV4
|
|
string url = $"/vote/{vote.id}/record.json";
|
|
string url = $"/vote/{vote.id}/record.json";
|
|
tasks.Add(_azureStorage.GetBlobContainerClient(blobcntr).UploadFileByContainer(new { options = countcds, records = recordsBlob }.ToJsonString(), "vote", $"{vote.id}/record.json"));
|
|
tasks.Add(_azureStorage.GetBlobContainerClient(blobcntr).UploadFileByContainer(new { options = countcds, records = recordsBlob }.ToJsonString(), "vote", $"{vote.id}/record.json"));
|
|
//处理投票者的记录
|
|
//处理投票者的记录
|
|
-
|
|
|
|
|
|
+ List<(string pId, List<string> gid)> gls = new List<(string pId, List<string> gid)>();
|
|
|
|
+ if (vote.groupLists.Count > 0)
|
|
|
|
+ {
|
|
|
|
+ var group = vote.groupLists;
|
|
|
|
+ foreach (var gro in group)
|
|
|
|
+ {
|
|
|
|
+ foreach (KeyValuePair<string, List<string>> pp in gro)
|
|
|
|
+ {
|
|
|
|
+ gls.Add((pp.Key, pp.Value));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//处理投票活动结束统计账户信息
|
|
//处理投票活动结束统计账户信息
|
|
- List<FMember> idsList = await GroupListService.GetFinishMemberInfo(_coreAPIHttpService, client, _dingDing, vote.school, vote.classes, vote.stuLists, vote.tchLists);
|
|
|
|
|
|
+ List<FMember> idsList = await GroupListService.GetFinishMemberInfo(_coreAPIHttpService, client, _dingDing, vote.school, vote.classes, vote.stuLists, vote.tchLists, gls);
|
|
vote.staffIds = idsList;
|
|
vote.staffIds = idsList;
|
|
|
|
|
|
if (string.IsNullOrEmpty(vote.recordUrl))
|
|
if (string.IsNullOrEmpty(vote.recordUrl))
|