|
|
@ -58,6 +58,12 @@ namespace Myshipping.Application
|
|
|
|
const string CONST_BC_NOTICE_FILE_CODE = "bc_notice";
|
|
|
|
const string CONST_BC_NOTICE_FILE_CODE = "bc_notice";
|
|
|
|
const string CONST_BC_NOTICE_FILE_NAME = "Booking Confirmation Notice";
|
|
|
|
const string CONST_BC_NOTICE_FILE_NAME = "Booking Confirmation Notice";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const string CONST_BC_MODIFY_FILE_CODE = "bc_modify";
|
|
|
|
|
|
|
|
const string CONST_BC_MODIFY_FILE_NAME = "Booking Amendment";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const string CONST_BC_MODIFY_NOTICE_FILE_CODE = "bc_moidfynotice";
|
|
|
|
|
|
|
|
const string CONST_BC_MODIFY_NOTICE_FILE_NAME = "Booking Amendment Notice";
|
|
|
|
|
|
|
|
|
|
|
|
public BookingSlotService(SqlSugarRepository<BookingSlotBase> repBase,
|
|
|
|
public BookingSlotService(SqlSugarRepository<BookingSlotBase> repBase,
|
|
|
|
SqlSugarRepository<BookingSlotCtn> repCtn,
|
|
|
|
SqlSugarRepository<BookingSlotCtn> repCtn,
|
|
|
|
SqlSugarRepository<BookingSlotStock> repStock,
|
|
|
|
SqlSugarRepository<BookingSlotStock> repStock,
|
|
|
@ -368,6 +374,41 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
await InsLog("Update", model.Id, typeof(BookingSlotBaseApiSaveDto), oldObj, dto.DataObj, "CtnList");
|
|
|
|
await InsLog("Update", model.Id, typeof(BookingSlotBaseApiSaveDto), oldObj, dto.DataObj, "CtnList");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string batchNo = IDGen.NextID().ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//处理附件
|
|
|
|
|
|
|
|
if (file != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogInformation($"请求文件名:{file.FileName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var fileFullPath = await FileAttachHelper.SaveFileDirect(model.Id.ToString(), file.FileBytes, batchNo, file.FileName, "bcmoidfyfiles");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"保存文件路径:{fileFullPath}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(fileFullPath))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//将格式单附件写入订舱的附件
|
|
|
|
|
|
|
|
SaveEDIFile(id, fileFullPath, file.FileName, UserManager.TENANT_ID,
|
|
|
|
|
|
|
|
CONST_BC_MODIFY_FILE_CODE, CONST_BC_MODIFY_FILE_NAME).GetAwaiter();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (modifyFile != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogInformation($"请求文件名(变更文件):{modifyFile.FileName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var fileFullPath = await FileAttachHelper.SaveFileDirect(model.Id.ToString(), modifyFile.FileBytes, batchNo, modifyFile.FileName, "bcmoidfynoticefiles");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"保存文件路径(变更文件):{fileFullPath}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(fileFullPath))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//将格式单附件写入订舱的附件
|
|
|
|
|
|
|
|
SaveEDIFile(id, fileFullPath, modifyFile.FileName, UserManager.TENANT_ID,
|
|
|
|
|
|
|
|
CONST_BC_MODIFY_NOTICE_FILE_CODE, CONST_BC_MODIFY_NOTICE_FILE_NAME).GetAwaiter();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (dto.OpType == "del")
|
|
|
|
else if (dto.OpType == "del")
|
|
|
|
{
|
|
|
|
{
|
|
|
|