自动提箱

optimize
wet 1 year ago
parent e75724d9e8
commit fe32e2f27c

@ -74,5 +74,8 @@ namespace Myshipping.Application
Task SetGoodsStatus(string code, long bookingId); Task SetGoodsStatus(string code, long bookingId);
Task SaveLog(BookingOrder newOrder, BookingOrder oldOrder); Task SaveLog(BookingOrder newOrder, BookingOrder oldOrder);
Task AutoYardData(long bookId);
} }
} }

@ -262,7 +262,6 @@ namespace Myshipping.Application
var key = _webAccountConfig.GetAccountConfig("DjyCangDan", UserManager.UserId).Result; var key = _webAccountConfig.GetAccountConfig("DjyCangDan", UserManager.UserId).Result;
if (key == null) if (key == null)
{ {
throw Oops.Bah("当前用户未配置key,请联系管理员"); throw Oops.Bah("当前用户未配置key,请联系管理员");
} }
var dicUrl = _cache.GetAllDictData().Result.First(x => x.TypeCode == "url_set" && x.Code == "request_emf"); var dicUrl = _cache.GetAllDictData().Result.First(x => x.TypeCode == "url_set" && x.Code == "request_emf");
@ -398,13 +397,6 @@ namespace Myshipping.Application
} }
} }
} }
} }
#endregion #endregion
@ -458,11 +450,7 @@ namespace Myshipping.Application
if (input.Id == 0) if (input.Id == 0)
{ {
await _repTemplate.InsertAsync(entity); await _repTemplate.InsertAsync(entity);
} }
else else
{ {
@ -476,9 +464,6 @@ namespace Myshipping.Application
it.IsDeleted it.IsDeleted
}).ExecuteCommandAsync(); }).ExecuteCommandAsync();
} }
} }

@ -214,6 +214,7 @@ namespace Myshipping.Application
BookingStatusLogDetail.OPTime = dt.TiXiangShiJian; BookingStatusLogDetail.OPTime = dt.TiXiangShiJian;
await _statuslogdetail.InsertAsync(BookingStatusLogDetail); await _statuslogdetail.InsertAsync(BookingStatusLogDetail);
} }
await _bookingorderservice.AutoYardData(bookingId);
} }
if (xl > 0 && fcnum > 0) if (xl > 0 && fcnum > 0)

@ -161,13 +161,10 @@ namespace Myshipping.Application
{ {
throw Oops.Bah("等级为R1/R2客服必填"); throw Oops.Bah("等级为R1/R2客服必填");
} }
entity.PropString = entity.PropString.Replace("forwarder", "booking_agent"); entity.PropString = entity.PropString.Replace("forwarder", "booking_agent");
if (m == null) if (m == null)
{ {
entity.TenantId = UserManager.TENANT_ID; entity.TenantId = UserManager.TENANT_ID;
await _djycustomer.InsertAsync(entity); await _djycustomer.InsertAsync(entity);
foreach (var item in model.ContactList) foreach (var item in model.ContactList)
@ -193,13 +190,11 @@ namespace Myshipping.Application
} }
else else
{ {
ship.Code = entity.CodeName; ship.Code = entity.CodeName;
ship.Name = entity.ShortName; ship.Name = entity.ShortName;
ship.ModifyTime = DateTime.Now; ship.ModifyTime = DateTime.Now;
ship.ModifyUser = UserManager.DjyUserId; ship.ModifyUser = UserManager.DjyUserId;
await _codeForwarder.UpdateAsync(ship); await _codeForwarder.UpdateAsync(ship);
} }
await _commonDBService.GetAllForwarder(false); await _commonDBService.GetAllForwarder(false);
} }
@ -2119,6 +2114,14 @@ namespace Myshipping.Application
BookingStatusLogDetail.OPTime = dt.OPTime; BookingStatusLogDetail.OPTime = dt.OPTime;
await _statuslogdetail.InsertAsync(BookingStatusLogDetail); await _statuslogdetail.InsertAsync(BookingStatusLogDetail);
} }
}
if (item.Status == "提箱")
{
await _bookingorderservice.AutoYardData(item.BookingId);
} }
#endregion #endregion
@ -2355,6 +2358,8 @@ namespace Myshipping.Application
} }
} }
#endregion #endregion
} }
if (flag) if (flag)
{ {

Loading…
Cancel
Save