2 Commits 57447915cf ... 9ba089e8e2

Author SHA1 Message Date
  yuanrf 9ba089e8e2 Merge branch 'develop' of http://132.232.92.186:3000/XinXiBu/OA2023 into develop 3 days ago
  yuanrf ef3c210fa1 修改 language 3 days ago

+ 4 - 1
OASystem/OASystem.Infrastructure/Repositories/Resource/OfficialActivitiesRepository.cs

@@ -194,6 +194,8 @@ FROM
         {
             var result = new Result() { Code = -2, Msg = "未知错误" };
 
+            var language = dto?.TranslatorInfo?.Language;
+
             #region 特殊字符转码  037 - 4.28 15:17
 
             if (!string.IsNullOrEmpty(dto.Contact))
@@ -241,6 +243,7 @@ FROM
                 DataID = await _sqlSugar.Insertable(res_InvitationData).ExecuteReturnIdentityAsync();
                 var _InvitationOfficialActivityData = _mapper.Map<Res_OfficialActivities>(dto);
                 _InvitationOfficialActivityData.DataId = DataID;
+                _InvitationOfficialActivityData.Language = language;
                 int id = await _sqlSugar.Insertable(_InvitationOfficialActivityData).ExecuteReturnIdentityAsync();
                 if (id == 0)
                 {
@@ -378,7 +381,7 @@ FROM
                     Attendees = dto.Attendees,
                     IsNeedTrans = dto.IsNeedTrans,
                     //Translators = dto.Translators,
-                    Language = dto.language,
+                    Language = language,
                     Trip = dto.Trip,
                     CreateUserId = dto.CreateUserId,
                     Remark = dto.Remark,