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放在请求体中)