Browse Source

接团客户名单 增加字段

yuanrf 1 year ago
parent
commit
e5f5668d1f

+ 2 - 3
OASystem/OASystem.Api/Controllers/BaiduOCRController.cs

@@ -124,11 +124,10 @@ namespace OASystem.API.Controllers
 
                                 for (int n = 0; n < name.Length; n++)
                                 {
-                                    firstNamePinYin += name.GetTotalPingYin()[0].ToUpper() + " ";
+                                    firstNamePinYin += name[n].ToString().GetTotalPingYin()[0].ToUpper() + " ";
                                 }
 
-                                client.Pinyin = lastNamePinYin + "//"+ firstNamePinYin;
-
+                                client.Pinyin = lastNamePinYin + "/"+ firstNamePinYin;
                             }
                             else
                             {

+ 1 - 1
OASystem/OASystem.Domain/Entities/Customer/Crm_DeleClient.cs

@@ -53,7 +53,7 @@ namespace OASystem.Domain.Entities.Customer
         /// 客户手机号
         /// </summary>
         [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
-        public string Phone { get; set; }
+        public string Phone { get; set; } = "";
         /// <summary>
         /// 出生省份
         /// </summary>

+ 8 - 7
OASystem/OASystem.Domain/ViewModels/OCR/BaiduClientOCRView.cs

@@ -29,7 +29,7 @@ namespace OASystem.Domain.ViewModels.OCR
         /// <summary>
         /// 生日
         /// </summary>
-        public string Birthday { get; set; } = "-";
+        public string Birthday { get; set; } = "";
         /// <summary>
         /// 身份证
         /// </summary>
@@ -46,16 +46,16 @@ namespace OASystem.Domain.ViewModels.OCR
         /// 手机号
         /// </summary>
         public string Phone { get; set; }
-        
+
         ///// <summary>
         ///// 英文名
         ///// </summary>
         //public string NameSpell { get; set; }
 
-        ///// <summary>
-        ///// 仓位类型
-        ///// </summary>
-        //public int Berth { get; set; } = 460;
+        /// <summary>
+        /// 仓位类型
+        /// </summary>
+        public int Berth { get; set; } = 460;
 
         ///// <summary>
         ///// 仓位备注
@@ -66,11 +66,12 @@ namespace OASystem.Domain.ViewModels.OCR
         ///// 房间备注
         ///// </summary>
         //public string RoomNotes { get; set; }
-        
+
         ///// <summary>
         ///// 餐食备注
         ///// </summary>
         //public string MealNotes { get; set; }
+
         /// <summary>
         /// 备注
         /// </summary>

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

@@ -582,7 +582,6 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     {
                         _Msg += string.Format("{0} 基本信息修改失败,!请前往客户信息修改!\r\n", clientName);
                     }
-
                 }
 
                 //团组客户信息名单操作
@@ -591,7 +590,11 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     DiId = _DiId,
                     ClientId = clientId,
                     ShippingSpaceTypeId = item.ShippingSpaceTypeId,
-                    CreateUserId = _UserId
+                    CreateUserId = _UserId,
+                    ShippingSpaceSpecialNeeds = item.ShippingSpaceSpecialNeeds,
+                    HotelSpecialNeeds = item.HotelSpecialNeeds,
+                    MealSpecialNeeds = item.MealSpecialNeeds,
+                    Remark = item.Remark
                 };
                 var tourClientAdd = await _sqlSugar.Insertable(_TourClientList).ExecuteReturnIdentityAsync();
                 if (tourClientAdd < 0)