From 15eb82df2d6ec539e9d4245bfe08d531e8eb6379 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期日, 27 四月 2025 14:33:26 +0800
Subject: [PATCH] 修改培训订单占多个座位
---
zhengcaioa/Services/OrderBanciOrderService.cs | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/zhengcaioa/Services/OrderBanciOrderService.cs b/zhengcaioa/Services/OrderBanciOrderService.cs
index 72073fe..ef37544 100644
--- a/zhengcaioa/Services/OrderBanciOrderService.cs
+++ b/zhengcaioa/Services/OrderBanciOrderService.cs
@@ -44,12 +44,16 @@
if (!string.IsNullOrEmpty(dto.SeatID))
{
- var orderBanciZuowei = _context.OrderBanciZuoweis.Where(x => x.RecStatus == "A" && x.BanciId == dto.BanciId && x.ZuoweiId == dto.SeatID).FirstOrDefault();
- if (orderBanciZuowei != null)
+ var seatids = dto.SeatID.Trim(',').Split(',');
+ foreach (var seatid in seatids)
{
- orderBanciZuowei.Status = "1";
- orderBanciZuowei.Modifier = dto.Creater;
- orderBanciZuowei.Modifytime = dto.Createtime;
+ var orderBanciZuowei = _context.OrderBanciZuoweis.Where(x => x.RecStatus == "A" && x.BanciId == dto.BanciId && x.ZuoweiId == seatid).FirstOrDefault();
+ if (orderBanciZuowei != null)
+ {
+ orderBanciZuowei.Status = "1";
+ orderBanciZuowei.Modifier = dto.Creater;
+ orderBanciZuowei.Modifytime = dto.Createtime;
+ }
}
}
--
Gitblit v1.9.1