|
|
|
@ -669,11 +669,9 @@ namespace Myshipping.Application
|
|
|
|
|
throw Oops.Bah("回推数据接收接口授权未配置");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var order in orderList)
|
|
|
|
|
{
|
|
|
|
|
if (order.BSSTATUS != "已录入" && order.BSSTATUS != "已驳回")
|
|
|
|
|
if (order.BSSTATUS == "已审核")
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"{order.BOOKINGNO} 当前状态为{order.BSSTATUS},不能提交");
|
|
|
|
|
}
|
|
|
|
@ -694,6 +692,10 @@ namespace Myshipping.Application
|
|
|
|
|
dto.Files = fileList.Where(x => x.BookingId == order.Id).ToList().Adapt<List<BookingFileSyncCustomerDto>>();
|
|
|
|
|
|
|
|
|
|
sendList.Add(dto);
|
|
|
|
|
|
|
|
|
|
//2024年6月17日,因为运营端有自动审核,导致“已审核”的状态被覆盖成“已提交”,与衣国豪讨论,改为先改为“已提交”状态,后调用运营端提交
|
|
|
|
|
order.BSSTATUS = "已提交";
|
|
|
|
|
await _rep.AsUpdateable(order).UpdateColumns(x => new { x.BSSTATUS }).ExecuteCommandAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//构建完整url
|
|
|
|
@ -744,9 +746,10 @@ namespace Myshipping.Application
|
|
|
|
|
var succ = item.GetBooleanValue("success");
|
|
|
|
|
if (succ)
|
|
|
|
|
{
|
|
|
|
|
var model = _rep.AsQueryable().Filter(null, true).First(x => x.Id == id);
|
|
|
|
|
model.BSSTATUS = "已提交";
|
|
|
|
|
await _rep.UpdateAsync(model);
|
|
|
|
|
//2024年6月17日,因为运营端有自动审核,导致“已审核”的状态被这里覆盖成“已提交”,与衣国豪讨论,改为先改为“已提交”状态,后调用运营端提交
|
|
|
|
|
//var model = _rep.AsQueryable().Filter(null, true).First(x => x.Id == id);
|
|
|
|
|
//model.BSSTATUS = "已提交";
|
|
|
|
|
//await _rep.UpdateAsync(model);
|
|
|
|
|
|
|
|
|
|
//日志动态
|
|
|
|
|
SaveAuditLog("已提交", id);
|
|
|
|
|