SVN-Revision: r604
This commit is contained in:
wyf
2025-05-17 09:37:00 +00:00
parent 33f893d218
commit ef878e8310
+6 -2
View File
@@ -622,8 +622,12 @@ namespace Lskj.PubBomImport
insertbulider.AppendLine($"insert into FileAttachmentMapping (MaterialCode,MxFileName,RelatedAttachmentName,OperatorUser,ChangeStatus) values ('{topProductId}','{sourceCode }','{childCode}','{ERPInfo.Instance.UserName}','变更');"); insertbulider.AppendLine($"insert into FileAttachmentMapping (MaterialCode,MxFileName,RelatedAttachmentName,OperatorUser,ChangeStatus) values ('{topProductId}','{sourceCode }','{childCode}','{ERPInfo.Instance.UserName}','变更');");
if (childCode.StartsWith("QD") || childCode.StartsWith("ZZQD")) if (childCode.StartsWith("QD") || childCode.StartsWith("ZZQD"))
{ {
string tempFileName = childFileDic[childCode]; string tempFileName = childFileDic.ContainsKey(childCode) ? childFileDic[childCode] : "";
FileInfo childInfo = new FileInfo(tempFileName); FileInfo childInfo = null;
if (!string.IsNullOrEmpty(tempFileName))
{
childInfo = new FileInfo(tempFileName);
}
if (childInfo == null) if (childInfo == null)
{ {
//throw new Exception($"MX明细中不包含文件{childCode}"); //throw new Exception($"MX明细中不包含文件{childCode}");