附件保存逻辑的字段名及注释完善

usertest
zhangxiaofeng 3 months ago
parent 3b1c97a6a5
commit 6f18973793

@ -178,7 +178,7 @@ namespace DS.WMS.Core.TaskPlat.Method
var fileName = $"{fileNameNoSuffix}{fileType}"; // 文件存盘时保存的物理文件名
// 获取文件存库时保存的文件名fileInfoRelativePathWithName
// 获取文件存库时保存的相对路径fileInfoRelativePathWithName
var fileInfoRelativeDic = string.Empty;
if (!string.IsNullOrWhiteSpace(attachFileType))
@ -187,8 +187,8 @@ namespace DS.WMS.Core.TaskPlat.Method
if (!string.IsNullOrWhiteSpace(fileDictKey))
fileInfoRelativeDic = Path.Combine(fileInfoRelativeDic, fileDictKey);
// 文件存库时保存的文件名
var fileInfoRelativePathWithName = Path.Combine(fileInfoRelativeDic, fileName); // 文件存库时保存的文件名
// 文件存库时保存的相对路径
var fileInfoRelativePathWithName = Path.Combine(fileInfoRelativeDic, fileName); // 文件存库时保存的相对路径

@ -539,14 +539,14 @@ namespace DS.WMS.Core.TaskPlat.Method
}
var noExtensionFileName = Path.GetFileNameWithoutExtension(file.FileName);
var fileFullName = await SaveFile(taskInfo.Id.ToString(),
var relativePath = await SaveFile(taskInfo.Id.ToString(),
bytes,
batchNo,
noExtensionFileName,
GetFileType(file.FileName),
attachFileType);
if (!string.IsNullOrWhiteSpace(fileFullName))
if (!string.IsNullOrWhiteSpace(relativePath))
{
if (info.Main.FileList == null)
{
@ -558,7 +558,7 @@ namespace DS.WMS.Core.TaskPlat.Method
PKId = SnowFlakeSingle.Instance.NextId(),
FileName = file.FileName,
FileType = Path.GetExtension(file.FileName).ToLower(),
FilePath = fileFullName,
FilePath = relativePath,
FileCategory = fileCategory
});
}
@ -630,14 +630,14 @@ namespace DS.WMS.Core.TaskPlat.Method
}
var noExtensionFileName = Path.GetFileNameWithoutExtension(modifyFile.FileName);
var fileFullName = await SaveFile(taskInfo.Id.ToString(),
var relativePath = await SaveFile(taskInfo.Id.ToString(),
bytes,
batchNo,
noExtensionFileName,
GetFileType(modifyFile.FileName),
attachFileType);
if (!string.IsNullOrWhiteSpace(fileFullName))
if (!string.IsNullOrWhiteSpace(relativePath))
{
if (info.Main.FileList == null)
{
@ -649,7 +649,7 @@ namespace DS.WMS.Core.TaskPlat.Method
PKId = SnowFlakeSingle.Instance.NextId(),
FileName = modifyFile.FileName,
FileType = Path.GetExtension(modifyFile.FileName).ToLower(),
FilePath = fileFullName,
FilePath = relativePath,
FileCategory = fileCategory
});
}

Loading…
Cancel
Save