Commit e7582b68 authored by 吴春's avatar 吴春

1

parent 601e3c95
......@@ -994,9 +994,12 @@ namespace REBORN.Module.SellModule
catch (Exception ex)
{
}
try
{
foreach (var item in demodel.DetailList)
{
var oldDModel = oldDetailList.Where(x => x.HotelId == item.HotelId && x.Date == item.Date).FirstOrDefault();
LogHelper.WriteInfo("oldDModel:" + oldDModel.Id);
if (oldDModel != null)
{
foreach (var qitem in item.RoomList)
......@@ -1025,7 +1028,7 @@ namespace REBORN.Module.SellModule
else
{
qitem.OrderId = demodel.OrderId;
qitem.DetailId = item.Id;
qitem.DetailId = oldDModel.Id;
qitem.Status = 0;
qitem.CreateTime = DateTime.Now;
qitem.UpdateBy = demodel.UpdateBy;
......@@ -1035,7 +1038,7 @@ namespace REBORN.Module.SellModule
}
//验证 不存在的房型做删除
var dellist = oldDModel.RoomList.Where(x => !item.RoomList.Select(y => y.RoomTypeName).Contains(x.RoomTypeName)).ToList();
var dellist = oldRoomList.Where(x => !item.RoomList.Select(y => y.RoomTypeName).Contains(x.RoomTypeName)).ToList();
foreach (var citem in dellist)
{
Dictionary<string, object> keyValues = new Dictionary<string, object>() {
......@@ -1082,6 +1085,12 @@ namespace REBORN.Module.SellModule
}
}
}
catch (Exception ex)
{
LogHelper.Write(ex);
}
}
#endregion
if (flag)
......@@ -1120,6 +1129,8 @@ namespace REBORN.Module.SellModule
}
appointOPRepository.InsertBatch(appointOPList);//新增op信息
}
try
{
foreach (var item in demodel.DetailList)
{
item.OrderId = orderId;
......@@ -1144,6 +1155,12 @@ namespace REBORN.Module.SellModule
}
}
}
}
catch (Exception ex)
{
LogHelper.Write(ex);
}
#region 推送企微机器人消息
......
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