leiy 10 months ago
parent
commit
3891fb7766
1 changed files with 2 additions and 1 deletions
  1. 2 1
      OASystem/OASystem.Api/Controllers/FinancialController.cs

+ 2 - 1
OASystem/OASystem.Api/Controllers/FinancialController.cs

@@ -2104,7 +2104,8 @@ namespace OASystem.API.Controllers
             {
                 if (_hotelSubIds.Count > 1)
                 {
-                    _groupIds = _sqlSugar.Queryable<Grp_HotelReservationsContent>().Where(it => _hotelSubIds.Contains(it.Id)).Select(it => it.DiId).Distinct().ToList();
+                    var hrIds = _sqlSugar.Queryable<Grp_HotelReservationsContent>().Where(it => _hotelSubIds.Contains(it.Id)).Select(it => it.HrId).Distinct().ToList();
+                    _groupIds = _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(it => it.CTable == 76 && hrIds.Contains(it.CId)).Select(it => it.Id).ToList();
                 }
 
                 if (_groupIds.Count < 1)