feat(um): 根据标的代码 基金管理人回显
This commit is contained in:
@@ -525,6 +525,25 @@ namespace YLErp.Web.Controllers
|
||||
return JsonSuccess("", underlying);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询上游基金档案中的基金管理人。查询失败或结果不唯一时返回可降级结果。
|
||||
/// </summary>
|
||||
[HttpGet]
|
||||
public JsonResult GetFundManager(string code, string instrumentType)
|
||||
{
|
||||
if (!string.Equals(instrumentType, ConsGlobal.InstrumentType.Fund, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return JsonSuccess("", new FundManagerLookupResult { Status = FundManagerLookupStatus.NotFound });
|
||||
}
|
||||
|
||||
var result = new FundManagerLookupService().Lookup(code);
|
||||
return JsonSuccess("", new
|
||||
{
|
||||
result.InvestAdvisorName,
|
||||
IsUnique = result.Status == FundManagerLookupStatus.Unique
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 预付金参数
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user