| 
															
																@@ -1,26 +1,11 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 using AutoMapper; 
															 | 
															
															 | 
															
																 using AutoMapper; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using MathNet.Numerics.Statistics.Mcmc; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using MySqlX.XDevAPI.Common; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using NPOI.SS.Formula.Functions; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 using OASystem.Domain; 
															 | 
															
															 | 
															
																 using OASystem.Domain; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using OASystem.Domain.Dtos.Financial; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 using OASystem.Domain.Dtos.Groups; 
															 | 
															
															 | 
															
																 using OASystem.Domain.Dtos.Groups; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 using OASystem.Domain.Dtos.Resource; 
															 | 
															
															 | 
															
																 using OASystem.Domain.Dtos.Resource; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using OASystem.Domain.Entities.Financial; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 using OASystem.Domain.Entities.Groups; 
															 | 
															
															 | 
															
																 using OASystem.Domain.Entities.Groups; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using OASystem.Domain.ViewModels.Financial; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 using OASystem.Domain.ViewModels.Groups; 
															 | 
															
															 | 
															
																 using OASystem.Domain.ViewModels.Groups; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 using OASystem.Infrastructure.Repositories.Resource; 
															 | 
															
															 | 
															
																 using OASystem.Infrastructure.Repositories.Resource; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 using OASystem.Infrastructure.Tools; 
															 | 
															
															 | 
															
																 using OASystem.Infrastructure.Tools; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using Org.BouncyCastle.Asn1.Ocsp; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using SqlSugar; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using StackExchange.Redis; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using System; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using System.Collections.Generic; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using System.Linq; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using System.Text; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using System.Threading.Tasks; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-using static NPOI.HSSF.Util.HSSFColor; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 using Result = OASystem.Domain.Result; 
															 | 
															
															 | 
															
																 using Result = OASystem.Domain.Result; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
															
															 | 
															
																 namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -33,8 +18,8 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         private readonly TeamRateRepository _teamRateRep; 
															 | 
															
															 | 
															
																         private readonly TeamRateRepository _teamRateRep; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         private readonly TourClientListRepository _tourClientListRep; 
															 | 
															
															 | 
															
																         private readonly TourClientListRepository _tourClientListRep; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         private readonly HotelDataRepository _hotelDataRep; 
															 | 
															
															 | 
															
																         private readonly HotelDataRepository _hotelDataRep; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        public HotelPriceRepository(SqlSugarClient sqlSugar, IMapper mapper, TeamRateRepository teamRateRep, TourClientListRepository tourClientListRep, HotelDataRepository hotelDataRep)  
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            :base(sqlSugar) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        public HotelPriceRepository(SqlSugarClient sqlSugar, IMapper mapper, TeamRateRepository teamRateRep, TourClientListRepository tourClientListRep, HotelDataRepository hotelDataRep) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            : base(sqlSugar) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         { 
															 | 
															
															 | 
															
																         { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             this._mapper = mapper; 
															 | 
															
															 | 
															
																             this._mapper = mapper; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             _result = new Result() { Code = -1, Msg = MsgTips.Fail }; 
															 | 
															
															 | 
															
																             _result = new Result() { Code = -1, Msg = MsgTips.Fail }; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -50,7 +35,7 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// </summary> 
															 | 
															
															 | 
															
																         /// </summary> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// <param name="dto"></param> 
															 | 
															
															 | 
															
																         /// <param name="dto"></param> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// <returns></returns> 
															 | 
															
															 | 
															
																         /// <returns></returns> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        public async Task<JsonView> _ItemsByDiId(int portType,int diId) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        public async Task<JsonView> ItemsByDiId(int portType, int diId) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         { 
															 | 
															
															 | 
															
																         { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																             string sql = string.Format(@"Select row_number() over(order by hr.CheckInDate asc) as Row_Number, 
															 | 
															
															 | 
															
																             string sql = string.Format(@"Select row_number() over(order by hr.CheckInDate asc) as Row_Number, 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -87,7 +72,7 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// </summary> 
															 | 
															
															 | 
															
																         /// </summary> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// <param name="dto"></param> 
															 | 
															
															 | 
															
																         /// <param name="dto"></param> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// <returns></returns> 
															 | 
															
															 | 
															
																         /// <returns></returns> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        public async Task<JsonView> _BasicsDataInit(int portType, int diId) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        public async Task<JsonView> BasicsDataInit(int portType, int diId) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         { 
															 | 
															
															 | 
															
																         { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             List<Sys_SetData> _dataSouruce = await _sqlSugar.Queryable<Sys_SetData>().Where(a => a.IsDel == 0).ToListAsync(); 
															 | 
															
															 | 
															
																             List<Sys_SetData> _dataSouruce = await _sqlSugar.Queryable<Sys_SetData>().Where(a => a.IsDel == 0).ToListAsync(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -116,7 +101,7 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 var _teamRateView = await _teamRateRep.PostGroupTeamRateItemByDiIdAndCTableId(portType, diId, 76); 
															 | 
															
															 | 
															
																                 var _teamRateView = await _teamRateRep.PostGroupTeamRateItemByDiIdAndCTableId(portType, diId, 76); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 string _CheckVolumeNo = string.Empty; 
															 | 
															
															 | 
															
																                 string _CheckVolumeNo = string.Empty; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                var checkVoumeNoData = _CreateCheckVolumeNo(diId); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                var checkVoumeNoData = CreateCheckVolumeNo(diId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 if (checkVoumeNoData.Result.Code == 0) 
															 | 
															
															 | 
															
																                 if (checkVoumeNoData.Result.Code == 0) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 { 
															 | 
															
															 | 
															
																                 { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     _CheckVolumeNo = checkVoumeNoData.Result.Data; 
															 | 
															
															 | 
															
																                     _CheckVolumeNo = checkVoumeNoData.Result.Data; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -127,8 +112,9 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 //三公国家费用标准 
															 | 
															
															 | 
															
																                 //三公国家费用标准 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 var countrys = await _sqlSugar.Queryable<Grp_NationalTravelFee>() 
															 | 
															
															 | 
															
																                 var countrys = await _sqlSugar.Queryable<Grp_NationalTravelFee>() 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    .Where(x => x.IsDel == 0 ) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    .Select(x => new { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    .Where(x => x.IsDel == 0) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    .Select(x => new 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         x.Id, 
															 | 
															
															 | 
															
																                         x.Id, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         x.Country, 
															 | 
															
															 | 
															
																                         x.Country, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         x.City 
															 | 
															
															 | 
															
																                         x.City 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -164,7 +150,7 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// </summary> 
															 | 
															
															 | 
															
																         /// </summary> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// <param name="DiId"></param> 
															 | 
															
															 | 
															
																         /// <param name="DiId"></param> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// <returns></returns> 
															 | 
															
															 | 
															
																         /// <returns></returns> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        public async Task<Result> _CreateCheckVolumeNo(int DiId) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        public async Task<Result> CreateCheckVolumeNo(int DiId) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         { 
															 | 
															
															 | 
															
																         { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             var groupInfo = await _sqlSugar.Queryable<Grp_DelegationInfo>().Where(it => it.Id == DiId && it.IsDel == 0).FirstAsync(); 
															 | 
															
															 | 
															
																             var groupInfo = await _sqlSugar.Queryable<Grp_DelegationInfo>().Where(it => it.Id == DiId && it.IsDel == 0).FirstAsync(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             if (groupInfo != null) 
															 | 
															
															 | 
															
																             if (groupInfo != null) 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -200,9 +186,9 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// </summary> 
															 | 
															
															 | 
															
																         /// </summary> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// <param name="dto"></param> 
															 | 
															
															 | 
															
																         /// <param name="dto"></param> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// <returns></returns> 
															 | 
															
															 | 
															
																         /// <returns></returns> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        public async Task<JsonView> _Details(int portType, int id) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        public async Task<JsonView> Details(int portType, int id) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         { 
															 | 
															
															 | 
															
																         { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            if (id < 0 ) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            if (id < 0) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             { 
															 | 
															
															 | 
															
																             { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 _view.Msg = string.Format(@"请输入正确的Id!"); 
															 | 
															
															 | 
															
																                 _view.Msg = string.Format(@"请输入正确的Id!"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 return _view; 
															 | 
															
															 | 
															
																                 return _view; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -263,16 +249,16 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// Add Or Edit 
															 | 
															
															 | 
															
																         /// Add Or Edit 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// </summary> 
															 | 
															
															 | 
															
																         /// </summary> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// <returns></returns> 
															 | 
															
															 | 
															
																         /// <returns></returns> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        public async Task<JsonView> _AddOrEdit(HotelReservationsAddOrEditDto _dto) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        public async Task<JsonView> AddOrEdit(HotelReservationsAddOrEditDto _dto) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         { 
															 | 
															
															 | 
															
																         { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             var _view = new JsonView() { Code = 400, Msg = MsgTips.Fail }; 
															 | 
															
															 | 
															
																             var _view = new JsonView() { Code = 400, Msg = MsgTips.Fail }; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             int portType = _dto.PortType; 
															 | 
															
															 | 
															
																             int portType = _dto.PortType; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             if (portType == 1 || portType == 2 || portType == 3) 
															 | 
															
															 | 
															
																             if (portType == 1 || portType == 2 || portType == 3) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             { 
															 | 
															
															 | 
															
																             { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                Grp_HotelReservations _HotelReservations = new Grp_HotelReservations(); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                List<Grp_HotelReservationsContent> _HotelReservationsContents = new List<Grp_HotelReservationsContent>(); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                var _HotelReservations = new Grp_HotelReservations(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                var _HotelReservationsContents = new List<Grp_HotelReservationsContent>(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                Grp_CreditCardPayment _CreditCardPayment = new Grp_CreditCardPayment(); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                var _CreditCardPayment = new Grp_CreditCardPayment(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 #region 参数处理 
															 | 
															
															 | 
															
																                 #region 参数处理 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 _HotelReservations = _mapper.Map<Grp_HotelReservations>(_dto); 
															 | 
															
															 | 
															
																                 _HotelReservations = _mapper.Map<Grp_HotelReservations>(_dto); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -311,10 +297,11 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 #endregion 
															 | 
															
															 | 
															
																                 #endregion 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                _HotelReservationsContents.ForEach(it => { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                _HotelReservationsContents.ForEach(it => 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     it.CreateUserId = _dto.UserId; 
															 | 
															
															 | 
															
																                     it.CreateUserId = _dto.UserId; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     it.DiId = _dto.DiId; 
															 | 
															
															 | 
															
																                     it.DiId = _dto.DiId; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                     
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     it.HrId = _HotelReservations.Id; 
															 | 
															
															 | 
															
																                     it.HrId = _HotelReservations.Id; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     //2025-04-07 第四次更改 PayDId == 72(刷卡) IsPay == 1 
															 | 
															
															 | 
															
																                     //2025-04-07 第四次更改 PayDId == 72(刷卡) IsPay == 1 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -323,7 +310,7 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     if (!string.IsNullOrEmpty(it.ConsumptionDate)) 
															 | 
															
															 | 
															
																                     if (!string.IsNullOrEmpty(it.ConsumptionDate)) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     { 
															 | 
															
															 | 
															
																                     { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         if (DateTime.TryParse(it.ConsumptionDate, out DateTime dt)) 
															 | 
															
															 | 
															
																                         if (DateTime.TryParse(it.ConsumptionDate, out DateTime dt)) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                        {  
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                             it.ConsumptionDate = dt.ToString("yyyy-MM-dd"); 
															 | 
															
															 | 
															
																                             it.ConsumptionDate = dt.ToString("yyyy-MM-dd"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         } 
															 | 
															
															 | 
															
																                         } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     } 
															 | 
															
															 | 
															
																                     } 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -337,7 +324,7 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 if (portType == 2 || portType == 3) 
															 | 
															
															 | 
															
																                 if (portType == 2 || portType == 3) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 { 
															 | 
															
															 | 
															
																                 { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     string checkNo = string.Empty; 
															 | 
															
															 | 
															
																                     string checkNo = string.Empty; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    Result checkNoRes = await _CreateCheckVolumeNo(_dto.DiId); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    Result checkNoRes = await CreateCheckVolumeNo(_dto.DiId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     if (checkNoRes.Code == 0) 
															 | 
															
															 | 
															
																                     if (checkNoRes.Code == 0) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     { 
															 | 
															
															 | 
															
																                     { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         checkNo = checkNoRes.Data; 
															 | 
															
															 | 
															
																                         checkNo = checkNoRes.Data; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -392,12 +379,13 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         return _view; 
															 | 
															
															 | 
															
																                         return _view; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     } 
															 | 
															
															 | 
															
																                     } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    _HotelReservationsContents.ForEach(it => { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    _HotelReservationsContents.ForEach(it => 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         it.HrId = hotelId; 
															 | 
															
															 | 
															
																                         it.HrId = hotelId; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     }); 
															 | 
															
															 | 
															
																                     }); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     int hotelSubId = await _sqlSugar.Insertable<Grp_HotelReservationsContent>(_HotelReservationsContents).ExecuteReturnIdentityAsync(); 
															 | 
															
															 | 
															
																                     int hotelSubId = await _sqlSugar.Insertable<Grp_HotelReservationsContent>(_HotelReservationsContents).ExecuteReturnIdentityAsync(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    if (hotelSubId < 0)  
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    if (hotelSubId < 0) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     { 
															 | 
															
															 | 
															
																                     { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         _sqlSugar.RollbackTran(); //回滚 
															 | 
															
															 | 
															
																                         _sqlSugar.RollbackTran(); //回滚 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         _view.Msg = "酒店预定详细信息添加失败"; 
															 | 
															
															 | 
															
																                         _view.Msg = "酒店预定详细信息添加失败"; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -443,7 +431,7 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     _view.Msg = "操作成功!"; 
															 | 
															
															 | 
															
																                     _view.Msg = "操作成功!"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     _view.Code = 200; 
															 | 
															
															 | 
															
																                     _view.Code = 200; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    _view.Data = new { ccpId = ccpId, sign = 1, hotelId = hotelId }; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    _view.Data = new { ccpId, sign = 1, hotelId }; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     _sqlSugar.CommitTran(); // 提交 
															 | 
															
															 | 
															
																                     _sqlSugar.CommitTran(); // 提交 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     return _view; 
															 | 
															
															 | 
															
																                     return _view; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -506,7 +494,8 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     { 
															 | 
															
															 | 
															
																                     { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         int hotelSubUpdate = await _sqlSugar 
															 | 
															
															 | 
															
																                         int hotelSubUpdate = await _sqlSugar 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                             .Updateable<Grp_HotelReservationsContent>(updateHotelSubData) 
															 | 
															
															 | 
															
																                             .Updateable<Grp_HotelReservationsContent>(updateHotelSubData) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                            .IgnoreColumns(it => new { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            .IgnoreColumns(it => new 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                 it.DiId, 
															 | 
															
															 | 
															
																                                 it.DiId, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                 it.HrId, 
															 | 
															
															 | 
															
																                                 it.HrId, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                 it.CreateUserId, 
															 | 
															
															 | 
															
																                                 it.CreateUserId, 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -518,7 +507,7 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                             .ExecuteCommandAsync(); 
															 | 
															
															 | 
															
																                             .ExecuteCommandAsync(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         if (hotelSubUpdate > 0) hotelSubStatus = true; 
															 | 
															
															 | 
															
																                         if (hotelSubUpdate > 0) hotelSubStatus = true; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     } 
															 | 
															
															 | 
															
																                     } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                     
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     if (!hotelSubStatus) 
															 | 
															
															 | 
															
																                     if (!hotelSubStatus) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     { 
															 | 
															
															 | 
															
																                     { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         _view.Msg = "酒店预定子表信息修改失败!"; 
															 | 
															
															 | 
															
																                         _view.Msg = "酒店预定子表信息修改失败!"; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -528,9 +517,9 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     var hotelInfo = await _sqlSugar 
															 | 
															
															 | 
															
																                     var hotelInfo = await _sqlSugar 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         .Queryable<Grp_CreditCardPayment>() 
															 | 
															
															 | 
															
																                         .Queryable<Grp_CreditCardPayment>() 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                        .Where(it => it.DIId == _dto.DiId &&  
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    it.CId == _dto.Id &&  
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    it.CTable == 76 &&  
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        .Where(it => it.DIId == _dto.DiId && 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    it.CId == _dto.Id && 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    it.CTable == 76 && 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                     it.IsDel == 0 
															 | 
															
															 | 
															
																                                     it.IsDel == 0 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         ) 
															 | 
															
															 | 
															
																                         ) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         .FirstAsync(); 
															 | 
															
															 | 
															
																                         .FirstAsync(); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -573,7 +562,7 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     _view.Msg = "操作成功!"; 
															 | 
															
															 | 
															
																                     _view.Msg = "操作成功!"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     _view.Code = 200; 
															 | 
															
															 | 
															
																                     _view.Code = 200; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    _view.Data = new { ccpId = _CreditCardPayment.Id, sign = 2 ,hotelId = _HotelReservations.Id }; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    _view.Data = new { ccpId = _CreditCardPayment.Id, sign = 2, hotelId = _HotelReservations.Id }; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     _sqlSugar.CommitTran(); // 提交 
															 | 
															
															 | 
															
																                     _sqlSugar.CommitTran(); // 提交 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     return _view; 
															 | 
															
															 | 
															
																                     return _view; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 } 
															 | 
															
															 | 
															
																                 } 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -590,10 +579,10 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// Del 
															 | 
															
															 | 
															
																         /// Del 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// </summary> 
															 | 
															
															 | 
															
																         /// </summary> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         /// <returns></returns> 
															 | 
															
															 | 
															
																         /// <returns></returns> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        public async Task<JsonView> _Del(int id,int userId) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        public async Task<JsonView> Del(int id, int userId) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         { 
															 | 
															
															 | 
															
																         { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             _sqlSugar.BeginTran(); 
															 | 
															
															 | 
															
																             _sqlSugar.BeginTran(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            Grp_HotelReservations _HotelReservations = new Grp_HotelReservations() 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            var _HotelReservations = new Grp_HotelReservations() 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             { 
															 | 
															
															 | 
															
																             { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 Id = id, 
															 | 
															
															 | 
															
																                 Id = id, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 IsDel = 1, 
															 | 
															
															 | 
															
																                 IsDel = 1, 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -612,7 +601,7 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             if (hrStatus < 0) 
															 | 
															
															 | 
															
																             if (hrStatus < 0) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             { 
															 | 
															
															 | 
															
																             { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 _sqlSugar.RollbackTran(); 
															 | 
															
															 | 
															
																                 _sqlSugar.RollbackTran(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                return new JsonView() { Code = 400,Msg = MsgTips.Fail }; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                return new JsonView() { Code = 400, Msg = MsgTips.Fail }; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             } 
															 | 
															
															 | 
															
																             } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																             int hrSubStatus = await _sqlSugar.Updateable<Grp_HotelReservationsContent>() 
															 | 
															
															 | 
															
																             int hrSubStatus = await _sqlSugar.Updateable<Grp_HotelReservationsContent>() 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -621,7 +610,8 @@ namespace OASystem.Infrastructure.Repositories.Groups 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                              .SetColumns(it => it.DeleteTime == DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")) 
															 | 
															
															 | 
															
																                                              .SetColumns(it => it.DeleteTime == DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                              .Where(it => it.HrId == id).ExecuteCommandAsync(); 
															 | 
															
															 | 
															
																                                              .Where(it => it.HrId == id).ExecuteCommandAsync(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            var ccpInfp = new Grp_CreditCardPayment() { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            var ccpInfp = new Grp_CreditCardPayment() 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 CId = id, 
															 | 
															
															 | 
															
																                 CId = id, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 CTable = 76, 
															 | 
															
															 | 
															
																                 CTable = 76, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 IsDel = 1, 
															 | 
															
															 | 
															
																                 IsDel = 1, 
															 |