LEIYI 3 months ago
parent
commit
b136ac6687

+ 12 - 12
OASystem/OASystem.Infrastructure/Repositories/Groups/FeeAuditRepository.cs

@@ -122,26 +122,26 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 var hotelCostInfosGroup = hotelCostInfos.GroupBy(x => x.Date);
                 foreach (var item in hotelCostInfosGroup)
                 {
-                    decimal hotelSingleRoomFee = item.Sum(x => x.HotelSingleRoomFee);
-                    decimal hotelDoubleRoomFee = item.Sum(x => x.HotelDoubleRoomFee);
-                    decimal hotelSuiteFee = item.Sum(x => x.HotelSuiteFee);
-                    decimal hotelSuiteRoomFee = item.Sum(x => x.HotelSuiteRoomFee);
+                    var hotelSingleRoomFee = item.Sum(x => x.HotelSingleRoomFee) * _teamRate; //成本单间费用
+                    var hotelDoubleRoomFee = item.Sum(x => x.HotelDoubleRoomFee) * _teamRate; //成本双人间费用
+                    var hotelSuiteFee = item.Sum(x => x.HotelSuiteFee) * _teamRate;           //成本套房费用
+                    var hotelSuiteRoomFee = item.Sum(x => x.HotelSuiteRoomFee) * _teamRate;   //成本其他房型间费用
                     //1.判断费用是否 <= 成本费用
                     //1.1 判断单间费用
-                    decimal singleRoomPrice = (hotelCostInfo.SingleRoomPrice + otherFee) * _rate;
-                    if (singleRoomPrice > 0) if (singleRoomPrice > hotelSingleRoomFee * _teamRate) isAutoAudit = false;
+                    decimal singleRoomPrice = (hotelCostInfo.SingleRoomPrice + otherFee) * _rate; //酒店录入费用
+                    if (singleRoomPrice > 0) if (singleRoomPrice > hotelSingleRoomFee) isAutoAudit = false;
 
                     //1.2 判断双人间费用
-                    decimal doubleRoomPrice = (hotelCostInfo.DoubleRoomPrice + otherFee) * _rate;
-                    if (doubleRoomPrice > 0) if (doubleRoomPrice > hotelDoubleRoomFee * _teamRate) isAutoAudit = false;
+                    decimal doubleRoomPrice = (hotelCostInfo.DoubleRoomPrice + otherFee) * _rate;//酒店录入费用
+                    if (doubleRoomPrice > 0) if (doubleRoomPrice > hotelDoubleRoomFee) isAutoAudit = false;
 
                     //1.3 判断套房费用
-                    decimal suiteRoomPrice = (hotelCostInfo.SuiteRoomPrice + otherFee) * _rate;
-                    if (suiteRoomPrice > 0) if (suiteRoomPrice > hotelSuiteFee * _teamRate) isAutoAudit = false;
+                    decimal suiteRoomPrice = (hotelCostInfo.SuiteRoomPrice + otherFee) * _rate;//酒店录入费用
+                    if (suiteRoomPrice > 0) if (suiteRoomPrice > hotelSuiteFee) isAutoAudit = false;
 
                     //1.4 判断其他房型费用
-                    decimal otherRoomPrice = (hotelCostInfo.OtherRoomPrice + otherFee) * _rate;
-                    if (otherRoomPrice > 0) if (otherRoomPrice > hotelSuiteRoomFee * _teamRate) isAutoAudit = false;
+                    decimal otherRoomPrice = (hotelCostInfo.OtherRoomPrice + otherFee) * _rate;//酒店录入费用
+                    if (otherRoomPrice > 0) if (otherRoomPrice > hotelSuiteRoomFee) isAutoAudit = false;
                 }
 
                 //2.判断是否自动审核