瀏覽代碼

接团流程操作(增改) 安卓端使用 建团时添加客户名单
BUG 更改

leiy 1 年之前
父節點
當前提交
a23e188a3b

+ 1 - 0
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -680,6 +680,7 @@ namespace OASystem.API.Controllers
 
                 #endregion
 
+
                 _sqlSugar.BeginTran();
                 var _dto = new GroupOperationDto();
                 _dto = _mapper.Map<GroupProcessOperationDto, GroupOperationDto>(dto);

+ 2 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/TourClientListRepository.cs

@@ -763,7 +763,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                         Pinyin = item.Pinyin,
                         Phone = item.Phone,
                         Sex = item.Sex,
-                        BirthDay = item.BirthDay == null ? null : Convert.ToDateTime(item.BirthDay),
+                        BirthDay =  string.IsNullOrEmpty(item.BirthDay) ? null : Convert.ToDateTime(item.BirthDay),
                         Job = item.Job,
                         CreateUserId = userId
                     };
@@ -836,6 +836,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     if (clientInfo != null)  //该客户存在 修改信息 
                     {
                         clientId = clientInfo.Id;
+                        _DeleClient.CrmCompanyId = crmCompanyId;
                         var clientEdit = await _sqlSugar.Updateable(_DeleClient).UpdateColumns(it =>
                                                                                      new
                                                                                      {