leiy 11 ay önce
ebeveyn
işleme
26d8ae322b

+ 1 - 1
OASystem/OASystem.Domain/Entities/EntityBase.cs

@@ -36,7 +36,7 @@ namespace OASystem.Domain.Entities
         /// <summary>
         /// 备注
         /// </summary>
-        [SugarColumn(IsNullable =true,ColumnDataType ="nvarchar(1000)")]
+        [SugarColumn(IsNullable =true,ColumnDataType ="varchar(500)")]
         public string Remark { get; set; }
         /// <summary>
         /// 是否删除

+ 12 - 12
OASystem/OASystem.Domain/Entities/Groups/Grp_HotelReservations.cs

@@ -35,27 +35,27 @@ namespace OASystem.Domain.Entities.Groups
         /// <summary>
         /// 预订号码
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(225)")]
         public string ReservationsNo { get; set; }
         /// <summary>
         /// 酒店确定编号
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(225)")]
         public string DetermineNo { get; set; }
         /// <summary>
         /// 所在城市
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)")]
         public string City { get; set; }
         /// <summary>
         /// 酒店名称
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)")]
         public string HotelName { get; set; }
         /// <summary>
         /// 酒店地址
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(225)")]
         public string HotelAddress { get; set; }
         /// <summary>
         /// 酒店电话
@@ -76,18 +76,18 @@ namespace OASystem.Domain.Entities.Groups
         /// <summary>
         /// 入住日期
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(80)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(30)")]
         public string CheckInDate { get; set; }
         /// <summary>
         /// 退房日期
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(80)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(30)")]
         public string CheckOutDate { get; set; }
         /// <summary>
         /// 预算金额
         /// 弃用 弃用时间 2023-12-28 17:30
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(18,2)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
         public decimal Budget { get; set; }
         /// <summary>
         /// 预算币种(设置数据外键编号)
@@ -103,7 +103,7 @@ namespace OASystem.Domain.Entities.Groups
         /// <summary>
         /// 单间单价
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(18,2)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
         public decimal SingleRoomPrice { get; set; }
         /// <summary>
         /// 双间数量
@@ -113,7 +113,7 @@ namespace OASystem.Domain.Entities.Groups
         /// <summary>
         /// 双间单价
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(18,2)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
         public decimal DoubleRoomPrice { get; set; }
         /// <summary>
         /// 套房数量
@@ -133,13 +133,13 @@ namespace OASystem.Domain.Entities.Groups
         /// <summary>
         /// 其他房型单价
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(18,2)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
         public decimal OtherRoomPrice { get; set; }
         /// <summary>
         /// 佣金
         /// 弃用 弃用时间 2023-12-28 17:30
         /// </summary>
-        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(18,2)")]
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
         public decimal Commission { get; set; }
         /// <summary>
         /// 佣金币种(设置数据外键编号)

+ 0 - 66
OASystem/OASystem.Infrastructure/Repositories/Groups/TeamRateRepository.cs

@@ -235,72 +235,6 @@ namespace OASystem.Infrastructure.Repositories.Groups
 
             if (dto.PortType == 1)
             {
-
-                #region 团组汇率 - 详细汇率信息
-
-
-                //List<TeamRateModelView> teamRateModels = new List<TeamRateModelView>();
-
-                //List<SetDataInfoView> otherCurrencyData1 = new List<SetDataInfoView>();
-                //var otherCurrencyData = await _setDataRep.GetSetDataBySTId(_setDataRep, 13);
-                //if (otherCurrencyData.Code == 0 && otherCurrencyData.Data != null)
-                //{
-                //    string otherCurrencyStr = JsonConvert.SerializeObject(otherCurrencyData.Data);
-                //    otherCurrencyData1 = JsonConvert.DeserializeObject<List<SetDataInfoView>>(otherCurrencyStr);
-                //    //var otherCurrency = otherCurrencyData1
-                //}
-                //foreach (TeamRateInfoView item in teamRateInfo)
-                //{
-                //    TeamRateModelView teamRateModelInfo = new TeamRateModelView();
-                //    foreach (TeamRateInfoView item1 in teamRateInfo)
-                //    {
-                //        if (item.CTable == item1.CTable)
-                //        {
-                //            teamRateModelInfo.CTableId = item1.CTable;
-                //            teamRateModelInfo.CTableName = item1.Name;
-                //            List<TeamRateDescView> teamRateDescViews = new List<TeamRateDescView>();
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "美元", CurrencyCode = "USD", Rate = item1.RateU });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "欧元", CurrencyCode = "EUR", Rate = item1.RateE });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "日元", CurrencyCode = "JPY", Rate = item1.RateJ });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "港币", CurrencyCode = "HKD", Rate = item1.RateH });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "新西兰元", CurrencyCode = "NZD", Rate = item1.RateN });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "新加坡币", CurrencyCode = "SGD", Rate = item1.RateS });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "澳大利亚元", CurrencyCode = "AUD", Rate = item1.RateA });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "加拿大元", CurrencyCode = "CAD", Rate = item1.RateC });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "泰国铢", CurrencyCode = "THB", Rate = item1.RateT });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "波兰兹罗提", CurrencyCode = "PLN", Rate = item1.RateBL });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "韩国元", CurrencyCode = "KRW", Rate = item1.RateHB });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "斐济元", CurrencyCode = "FJD", Rate = item1.RateFJD });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "土耳其里拉", CurrencyCode = "TRY", Rate = item1.RateTL });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "印度尼西亚卢比", CurrencyCode = "IDR", Rate = item1.RateRP });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "菲律宾比索", CurrencyCode = "PHP", Rate = item1.RatePeso });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "林吉特", CurrencyCode = "MYR", Rate = item1.RateMYR });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "捷克货币", CurrencyCode = "CZK", Rate = item1.RateCZK });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "墨西哥比索", CurrencyCode = "MXN", Rate = item1.RateMXN });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "澳门元", CurrencyCode = "MOP", Rate = item1.RateMOP });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "阿根廷比索", CurrencyCode = "ARS", Rate = item1.RateARS });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "匈牙利福林", CurrencyCode = "HUF", Rate = item1.RateHUF });
-                //            teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = "卢布", CurrencyCode = "RUB", Rate = item1.RateRUB });
-
-                //            SetDataInfoView setData = otherCurrencyData1.Where(x => x.Id == item1.OtherRateId).FirstOrDefault();
-                //            if (setData != null)
-                //            {
-                //                teamRateDescViews.Add(new TeamRateDescView() { CurrencyName = setData.Remark, CurrencyCode = setData.Name, Rate = item1.OtherPrice });
-                //            }
-
-                //            teamRateModelInfo.TeamRates = teamRateDescViews;
-
-
-
-                //        }
-                //    }
-                //    teamRateModels.Add(teamRateModelInfo);
-                //}
-
-
-
-                #endregion
-
                 #region 团组汇率
 
                 List<TeamRateModelView> teamRateModels = new List<TeamRateModelView>();