Commit 951a9cf3 authored by 吴春's avatar 吴春

提交代码

parent 79dbb58b
...@@ -168,7 +168,7 @@ WHERE 1=1 ...@@ -168,7 +168,7 @@ WHERE 1=1
} }
else if (model.ChangeType == 3) else if (model.ChangeType == 3)
{ {
builder.AppendFormat(" update RB_Class_Plan SET ClassRoomId={0} where ClassPlanId in({1})", newChangePlanItemList.FirstOrDefault().ClassRoomId, string.Join(",", oldChangePlanItemList.Select(x => x.ClassRoomId))); builder.AppendFormat(" update RB_Class_Plan SET ClassRoomId={0} where ClassPlanId in({1})", newChangePlanItemList.FirstOrDefault().ClassRoomId, string.Join(",", oldChangePlanItemList.Select(x => x.ClassPlanId)));
string roomIds = string.Join(",", oldChangePlanItemList.Select(x => x.ClassRoomId)) + "," + newChangePlanItemList.FirstOrDefault().ClassRoomId; string roomIds = string.Join(",", oldChangePlanItemList.Select(x => x.ClassRoomId)) + "," + newChangePlanItemList.FirstOrDefault().ClassRoomId;
var roomList = class_RoomRepository.GetClassRoomListRepository(new Edu.Model.ViewModel.Course.RB_Class_Room_ViewModel() { QRoomIds = roomIds }); var roomList = class_RoomRepository.GetClassRoomListRepository(new Edu.Model.ViewModel.Course.RB_Class_Room_ViewModel() { QRoomIds = roomIds });
foreach (var item in oldChangePlanItemList) foreach (var item in oldChangePlanItemList)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment