feature:#EQD-7093 国联民生-交易确认书校验(2)针对ETF标的获取新增信息并且支持配置分类。 ETF交易确认书中填充参考标的证券全称、参考标的基金管理人,
This commit is contained in:
@@ -473,6 +473,26 @@ namespace YLErp.Web.Controllers
|
||||
{
|
||||
return JsonError("资产类型 必须填写");
|
||||
}
|
||||
|
||||
model.EtfSubType = model.EtfSubType?.Trim();
|
||||
if (model.UnderlyingInstrumentType == ConsGlobal.InstrumentType.Fund && string.IsNullOrEmpty(model.EtfSubType))
|
||||
{
|
||||
return JsonError("ETF 子类 必须填写");
|
||||
}
|
||||
if (model.UnderlyingInstrumentType == ConsGlobal.InstrumentType.Fund)
|
||||
{
|
||||
|
||||
var isValidEtfSubType = DictionaryBLL.GetDictionaryItems("ETF 子类", model.EtfSubType).Any();
|
||||
if (!isValidEtfSubType)
|
||||
{
|
||||
return JsonError("ETF 子类 无效,请从字典选项中选择");
|
||||
}
|
||||
}
|
||||
if (model.UnderlyingInstrumentType != ConsGlobal.InstrumentType.Fund)
|
||||
{
|
||||
|
||||
model.EtfSubType = null;
|
||||
}
|
||||
if (ConsGlobal.InstrumentType.IsBond(model.UnderlyingInstrumentType))
|
||||
{
|
||||
model.ExJson = JsonHelper.Serialize(model.Bond);
|
||||
|
||||
Reference in New Issue
Block a user