From 255b0bb13d422c627059b83358d4a4f3e8e88f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=94=A6=E9=BA=9F=20=E7=8E=8B?= Date: Thu, 12 Mar 2026 10:06:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=BF=87UserName=E6=89=BE=E5=88=B0Log?= =?UTF-8?q?inName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpDAL/Modules/TradeModule/TradeOAService.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/YLErpDAL/Modules/TradeModule/TradeOAService.cs b/YLErpDAL/Modules/TradeModule/TradeOAService.cs index eea78cab..3eab767a 100644 --- a/YLErpDAL/Modules/TradeModule/TradeOAService.cs +++ b/YLErpDAL/Modules/TradeModule/TradeOAService.cs @@ -251,14 +251,15 @@ namespace YLErp.Modules.TradeModule return new GuoLianOAResponse() { code = -1, data = new GuoLianOAData { msg = "上传附件失败" } }; } } - + //通过UserName找到LoginName + var applicantLoginName = DbContextFactory.GetErpBaseContext().SystemUsers.Where(u => u.Name == UserInfo.UserName).Select(u => u.LoginName).FirstOrDefault(); // 构建dataMap var dataMap = new { title = $"固定收益部申请【{contractCode}】TRS交易确认书", urgentLevel = "正常",//未找到对应 applyDate = DateTime.Now.ToString("yyyy-MM-dd"), - applicant = "yinfeng", + applicant = applicantLoginName, applicantComp = "国联民生证券总部", htlx = 0,//合同类型 0业务 1非业务 ywlx = 1, @@ -287,7 +288,7 @@ namespace YLErp.Modules.TradeModule //合同背景介绍 // 使用annexId替代Base64编码 fj = annexIds, - creater = "yinfeng" + creater = applicantLoginName }; // 构建查询参数(不包含dataMap,dataMap放在请求体中)