|
@@ -872,11 +872,30 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ Regex regex = new Regex("^[\u4e00-\u9fa5]{0,}$");
|
|
|
+
|
|
|
//修改C表数据
|
|
|
//List<Grp_CarTouristGuideGroundReservationsContent> carTouristListEnd = _sqlSugar.Queryable<Grp_CarTouristGuideGroundReservationsContent>().Where(a=>a.DiId==dto.DiId && a.CTGGRId==dto.CTGGRId && a.IsDel==0).ToList();
|
|
|
Grp_CreditCardPayment c = new Grp_CreditCardPayment();
|
|
|
c.PaymentCurrency = dto.Currency;
|
|
|
- c.PayMoney = carTouristList.Sum(x => x.Price * x.Count);
|
|
|
+
|
|
|
+ for (int i = 0; i < dto.SelectCheck.Count; i++) {
|
|
|
+ if (!regex.IsMatch(dto.SelectCheck[i]))
|
|
|
+ {
|
|
|
+ for(int j = 0; j < carTouristList.Count; j++)
|
|
|
+ {
|
|
|
+ if (int.Parse(dto.SelectCheck[i]) == carTouristList[j].SId)
|
|
|
+ {
|
|
|
+ c.PayMoney += carTouristList[j].Price * carTouristList[j].Count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else
|
|
|
+ {
|
|
|
+ c.PayMoney = carTouristList.Sum(x => x.Price * x.Count);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
c.PayPercentage = dto.PayPercentage;
|
|
|
c.ConsumptionDate= DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
c.CTable = 79;
|