上传平台明细
This commit is contained in:
parent
8ea2d52c5f
commit
67d4a1804d
@ -353,6 +353,19 @@ public sealed class CitizenSportsPlatformService : ITransient
|
|||||||
TypeName = x.TypeName,
|
TypeName = x.TypeName,
|
||||||
PlayerCount = x.Players.Count
|
PlayerCount = x.Players.Count
|
||||||
}).ToList(),
|
}).ToList(),
|
||||||
|
Players = prepared.Groups.SelectMany(group => group.Players.Select(player => new CitizenSportsPlayerPreview
|
||||||
|
{
|
||||||
|
TypeName = group.TypeName,
|
||||||
|
PlayerId = player.PlayerId,
|
||||||
|
CardNumber = player.CardNumber,
|
||||||
|
CardType = player.CardType,
|
||||||
|
PlayerName = player.PlayerName,
|
||||||
|
PlayerSex = player.PlayerSex,
|
||||||
|
PlayerPhone = player.PlayerPhone,
|
||||||
|
PlayerBirth = player.PlayerBirth,
|
||||||
|
GroupName = player.GroupName,
|
||||||
|
DeleteStatus = player.DeleteStatus
|
||||||
|
})).ToList(),
|
||||||
Errors = prepared.Errors
|
Errors = prepared.Errors
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,7 @@ public class CitizenSportsExecuteInput : CitizenSportsSyncInput
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 同步预览结果,不返回证件号、手机号等敏感信息。
|
/// 同步预览结果,包含实际待上传的运动员明细。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CitizenSportsPreviewOutput
|
public class CitizenSportsPreviewOutput
|
||||||
{
|
{
|
||||||
@ -49,6 +49,7 @@ public class CitizenSportsPreviewOutput
|
|||||||
public int TypeCount { get; set; }
|
public int TypeCount { get; set; }
|
||||||
public bool CanUpload => Errors.Count == 0 && UploadRecordCount > 0;
|
public bool CanUpload => Errors.Count == 0 && UploadRecordCount > 0;
|
||||||
public List<CitizenSportsTypePreview> Types { get; set; } = [];
|
public List<CitizenSportsTypePreview> Types { get; set; } = [];
|
||||||
|
public List<CitizenSportsPlayerPreview> Players { get; set; } = [];
|
||||||
public List<CitizenSportsValidationError> Errors { get; set; } = [];
|
public List<CitizenSportsValidationError> Errors { get; set; } = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,6 +59,23 @@ public class CitizenSportsTypePreview
|
|||||||
public int PlayerCount { get; set; }
|
public int PlayerCount { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 实际发送给市民运动会平台的运动员数据。
|
||||||
|
/// </summary>
|
||||||
|
public class CitizenSportsPlayerPreview
|
||||||
|
{
|
||||||
|
public string TypeName { get; set; } = string.Empty;
|
||||||
|
public string PlayerId { get; set; } = string.Empty;
|
||||||
|
public string CardNumber { get; set; } = string.Empty;
|
||||||
|
public string CardType { get; set; } = string.Empty;
|
||||||
|
public string PlayerName { get; set; } = string.Empty;
|
||||||
|
public string? PlayerSex { get; set; }
|
||||||
|
public string? PlayerPhone { get; set; }
|
||||||
|
public string? PlayerBirth { get; set; }
|
||||||
|
public string? GroupName { get; set; }
|
||||||
|
public int DeleteStatus { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class CitizenSportsValidationError
|
public class CitizenSportsValidationError
|
||||||
{
|
{
|
||||||
public long RegistrationPersonId { get; set; }
|
public long RegistrationPersonId { get; set; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user