|
|
|
@ -610,8 +610,8 @@ namespace Myshipping.Application
|
|
|
|
|
foreach (var item in all)
|
|
|
|
|
{
|
|
|
|
|
//清空原有数据
|
|
|
|
|
var old = await _repStatuslog.AsQueryable().Where(x => x.BookingId == item.BookingId && x.Gategory == "ship").ToListAsync();
|
|
|
|
|
await _repStatuslog.DeleteAsync(x => x.BookingId == item.BookingId && x.Gategory == "ship");
|
|
|
|
|
var old = await _repStatuslog.AsQueryable().Where(x => x.BookingId == item.BookingId && x.Category == "ship").ToListAsync();
|
|
|
|
|
await _repStatuslog.DeleteAsync(x => x.BookingId == item.BookingId && x.Category == "ship");
|
|
|
|
|
foreach (var ot in old)
|
|
|
|
|
{
|
|
|
|
|
await _statuslogdetail.DeleteAsync(x => x.PId == ot.Id);
|
|
|
|
@ -619,7 +619,7 @@ namespace Myshipping.Application
|
|
|
|
|
//新增数据
|
|
|
|
|
var bookingStatusLog = new BookingStatusLog();
|
|
|
|
|
bookingStatusLog.BookingId = item.BookingId;
|
|
|
|
|
bookingStatusLog.Gategory = "ship";
|
|
|
|
|
bookingStatusLog.Category = "ship";
|
|
|
|
|
bookingStatusLog.CreatedTime = DateTime.Now;
|
|
|
|
|
bookingStatusLog.Status = item.Status;
|
|
|
|
|
bookingStatusLog.OpTime = item.OpTime;
|
|
|
|
|