feature: 新增标的时 基金管理人设置为必填

This commit is contained in:
马冰冰
2026-08-25 15:31:53 +08:00
parent 670ff1e012
commit 8cea7ee2e4
3 changed files with 16 additions and 3 deletions
@@ -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))
{