Browse Source

酒店预订 更改代付逻辑代码编写“是否由地接或其他人代付: 是 : ispay = 0 否 : ispay = 1 ”

LEIYI 4 months ago
parent
commit
589338138e

+ 5 - 3
OASystem/OASystem.Api/Controllers/StatisticsController.cs

@@ -4086,7 +4086,7 @@ WHERE
 
         /// <summary>
         ///  国交数据统计-酒店
-        ///  地区TOP10、预订平台
+        ///  国家TOP10、地区TOP10、预订平台
         /// </summary>
         /// <param name="_dto"></param>
         /// <returns></returns>
@@ -4102,10 +4102,12 @@ WHERE
                    endDt = $"{_dto.Year}-12-31 23:59:59";
 
             string sql = string.Format(@"
-
 SELECT
   hr.DIId,
-  ntf.Country,
+  CASE
+    WHEN ntf.Country IS NULL THEN '未选择'
+    ELSE ntf.Country
+  END AS 'Country',
   hr.City,
   hr.HotelName,
   sd.Name AS BookinSite,

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

@@ -317,7 +317,8 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     
                     it.HrId = _HotelReservations.Id;
 
-                    if (it.PayDId == 72) it.IsPay = 1;
+                    //2024-12-05 10:18 更改代付逻辑:是否由地接或其他人代付: 是 : ispay = 0 否 : ispay = 1 
+                    if (it.PayDId == 72 || it.IsOppay == 0) it.IsPay = 1;
                     else it.IsPay = 0;
 
                     if (!string.IsNullOrEmpty(it.ConsumptionDate))