商户管理
This commit is contained in:
parent
203a38491d
commit
8ac326c672
@ -259,6 +259,26 @@ public class UserEventFeeOutput
|
|||||||
/// 价格
|
/// 价格
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal Price { get; set; }
|
public decimal Price { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 收款商户名称
|
||||||
|
/// </summary>
|
||||||
|
public string? MerchantName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 统一社会信用代码
|
||||||
|
/// </summary>
|
||||||
|
public string? CreditCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 开户行
|
||||||
|
/// </summary>
|
||||||
|
public string? BankName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 银行账号
|
||||||
|
/// </summary>
|
||||||
|
public string? AccountNumber { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -236,11 +236,26 @@ public class UserEventRegistrationService : IDynamicApiController, ITransient
|
|||||||
var fee = await _feeConfigRepository.GetFirstAsync(x => x.EventId == id);
|
var fee = await _feeConfigRepository.GetFirstAsync(x => x.EventId == id);
|
||||||
if (fee != null)
|
if (fee != null)
|
||||||
{
|
{
|
||||||
output.FeeConfig = new UserEventFeeOutput
|
var feeConfig = new UserEventFeeOutput
|
||||||
{
|
{
|
||||||
ChargeMode = fee.ChargeMode.ToString(),
|
ChargeMode = fee.ChargeMode.ToString(),
|
||||||
Price = fee.Price
|
Price = fee.Price
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 如果赛事有关联的商户ID,查询并填充商户信息
|
||||||
|
if (eventInfo.MerchantId.HasValue)
|
||||||
|
{
|
||||||
|
var merchant = await _merchantRepository.GetByIdAsync(eventInfo.MerchantId.Value);
|
||||||
|
if (merchant != null && merchant.Status == AvailabilityStatus.Enable)
|
||||||
|
{
|
||||||
|
feeConfig.MerchantName = merchant.MerchantName;
|
||||||
|
feeConfig.CreditCode = merchant.CreditCode;
|
||||||
|
feeConfig.BankName = merchant.BankName;
|
||||||
|
feeConfig.AccountNumber = merchant.AccountNumber;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
output.FeeConfig = feeConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
var eventProjects = await _eventProjectRepository.GetListAsync(x => x.EventId == id);
|
var eventProjects = await _eventProjectRepository.GetListAsync(x => x.EventId == id);
|
||||||
|
|||||||
@ -6636,6 +6636,26 @@
|
|||||||
价格
|
价格
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:YD_Event.Application.Event.Dtos.UserEventFeeOutput.MerchantName">
|
||||||
|
<summary>
|
||||||
|
收款商户名称
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:YD_Event.Application.Event.Dtos.UserEventFeeOutput.CreditCode">
|
||||||
|
<summary>
|
||||||
|
统一社会信用代码
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:YD_Event.Application.Event.Dtos.UserEventFeeOutput.BankName">
|
||||||
|
<summary>
|
||||||
|
开户行
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:YD_Event.Application.Event.Dtos.UserEventFeeOutput.AccountNumber">
|
||||||
|
<summary>
|
||||||
|
银行账号
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="T:YD_Event.Application.Event.Dtos.UserEventProjectGroupOutput">
|
<member name="T:YD_Event.Application.Event.Dtos.UserEventProjectGroupOutput">
|
||||||
<summary>
|
<summary>
|
||||||
用户端赛事项目组别输出
|
用户端赛事项目组别输出
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user