From c007037d36d330af1c7d7ca2cada880dfe1f6475 Mon Sep 17 00:00:00 2001 From: hjhan Date: Fri, 28 Aug 2026 08:24:50 +0800 Subject: [PATCH] =?UTF-8?q?cleanup:=20=E5=88=A0=E9=99=A4=20PricingControll?= =?UTF-8?q?er=20=E4=B8=AD=E6=97=A0=E4=BA=BA=E4=BD=BF=E7=94=A8=E7=9A=84=20S?= =?UTF-8?q?tructure=5FDZ=20=E6=AD=BB=20Action=20=E5=8F=8A=20StructureImpor?= =?UTF-8?q?t=20=E6=B6=A6=E5=92=8C=E6=AD=BB=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 依据 outputs/zszq-trs-pricing-structure-dz-死代码分析报告.md 第一轮零风险清理。 国联分支下 Is润和 恒为 false,Structure_DZ 无任何菜单/代码入口。 单独 revert 本 commit 即可整体找回。 --- YLErpWeb/Controllers/PricingController.cs | 53 ----------------------- 1 file changed, 53 deletions(-) diff --git a/YLErpWeb/Controllers/PricingController.cs b/YLErpWeb/Controllers/PricingController.cs index b0af74eb..c65dc87d 100644 --- a/YLErpWeb/Controllers/PricingController.cs +++ b/YLErpWeb/Controllers/PricingController.cs @@ -85,54 +85,6 @@ namespace YLErp.Web.Controllers return View(model); } - /// - /// 组合报价 - /// - [MyAuthorize("报价管理-结构化交易定价")] - public ActionResult Structure_DZ() - { - var otcTrade = new OtcOptionTradeFull() - { - TraderId = CurUser.UserId, - TraderName = CurUser.UserName, - BuySell = "卖出", - VolType = "交易", - TradeType = "香草期权", - OptionType = "看涨", - ExerciseMode = "European", - TradeDate = valuedateBLL.ValueDate, - UnderlyingInstrumentType = AppHelper.OtcConfig.StockFirst ? "Stock" : "CommodityFutures", - SettlementType = (int)SettlementTypeEnum.ClosePrice, - NoRiskRate = valuedateBLL.SystemDate.RiskFreeRate / 100, - ParticipationRate = 1, - AnnualizeFactor = 1, - MarginTemplateName = "系统默认", - CouponIncludeStartDate = false, - CouponUsePaymentDate = false - }; - - var model = new Models.PricingModel(CurUser, UserBLL.IsTradeOfCurrentLogin(CurUser.UserId)) { Trade = otcTrade }; - - if (model.NumOfSmoothingDaysCfg == "ONE") - { - model.Trade.NumOfSmoothingDays = 1; - } - //获取自定义结构信息 - var structureTypes = - new StructureService(CurUser) - .QueryStructureMap(StructureRangeEnum.BALCK_TRADE); - var structureTypeMap = new Dictionary>() { - { "气囊结构",new List() } - }; - foreach (var item in structureTypes) - { - structureTypeMap[item.Key] = item.Value; - } - ViewBag.StructureTypeMap = structureTypeMap; - - return View(model); - } - /// /// 组合报价导入 /// @@ -198,11 +150,6 @@ namespace YLErp.Web.Controllers ViewBag.ExtendInfoMap[item.Key] = item.Value; } - if (PS.Config.Is润和) - { - return View(nameof(Structure_DZ), model); - } - return View(nameof(Structure), model); }