订舱提交接口

master
wanghaomei 8 months ago
parent 960ccb89e1
commit cf8a7f9af1

@ -537,7 +537,7 @@ namespace Myshipping.Application
}
//构建数据并发送
var orderList = _rep.AsQueryable().Where(x => ids.Contains(x.Id)).ToList();
var orderList = _rep.AsQueryable().Filter(null, true).Where(x => ids.Contains(x.Id)).ToList();
//2023-9-1衣国豪点击发送订舱时最少得填写船公司船期目的地品名箱型箱量重量如果以上信息没填允许保存但是发送订舱时给出提示 XXX不能为空请补充后重新发送
var emptyCarrList = orderList.Where(x => string.IsNullOrEmpty(x.CARRIERID)).Select(x => x.BOOKINGNO).ToList();
@ -680,7 +680,7 @@ namespace Myshipping.Application
var succ = item.GetBooleanValue("success");
if (succ)
{
var model = _rep.AsQueryable().First(x => x.Id == id);
var model = _rep.AsQueryable().Filter(null, true).First(x => x.Id == id);
model.BSSTATUS = "已提交";
await _rep.UpdateAsync(model);
@ -979,7 +979,7 @@ namespace Myshipping.Application
model.BSNO,
BSSTATUS = recModel.Accept ? "已审核" : "已驳回",
BookingOrderId = recModel.Accept ? (long?)model.BookingId : null,
COMMENT = recModel.Accept ? null: recModel.Comment
COMMENT = recModel.Accept ? null : recModel.Comment
}
};
var json = body.ToJsonString();
@ -1802,7 +1802,7 @@ namespace Myshipping.Application
throw Oops.Bah("HSCODE不能为空");
}
if(input.CtnList==null||input.CtnList.Count==0)
if (input.CtnList == null || input.CtnList.Count == 0)
{
throw Oops.Bah("箱型箱量不能为空");
}

@ -5101,6 +5101,11 @@ namespace Myshipping.Application
}
var config = _cache.GetAllTenantParam().Result.FirstOrDefault(x => x.TenantId == UserManager.TENANT_ID && x.ParaCode == "VgmDirectSendCarrierId");
if (config == null)
{
throw Oops.Bah("请配置租户的VGM直发船司参数");
}
var arrCarr = config.ItemCode.Split(",", StringSplitOptions.RemoveEmptyEntries);
if (!arrCarr.Contains(order.CARRIERID)) //使用大简云发送vgm
{

Loading…
Cancel
Save