feature: 新增标的时 基金管理人设置为必填
This commit is contained in:
@@ -473,7 +473,14 @@ namespace YLErp.Web.Controllers
|
||||
{
|
||||
return JsonError("资产类型 必须填写");
|
||||
}
|
||||
|
||||
|
||||
// 重点功能:基金及基金专户的基金管理人必须填写,后端校验避免绕过页面校验。
|
||||
model.InvestAdvisorName = model.InvestAdvisorName?.Trim();
|
||||
if (model.UnderlyingInstrumentType == ConsGlobal.InstrumentType.Fund && string.IsNullOrEmpty(model.InvestAdvisorName))
|
||||
{
|
||||
return JsonError("基金管理人 必须填写");
|
||||
}
|
||||
|
||||
model.EtfSubType = model.EtfSubType?.Trim();
|
||||
if (model.UnderlyingInstrumentType == ConsGlobal.InstrumentType.Fund && string.IsNullOrEmpty(model.EtfSubType))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user