|
|
@ -149,6 +149,19 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
importBBACSaDetail.BusinessType = importBBACSaDetail.PN.Contains("R0") ? EnumBusinessType.MaiDanJianBBAC : EnumBusinessType.JisBBAC; |
|
|
|
}); |
|
|
|
|
|
|
|
var jisSaDetails = importBBACSaDetails.FindAll(t => t.BusinessType == EnumBusinessType.JisBBAC); |
|
|
|
var maiDanSaDetails = importBBACSaDetails.FindAll(t => t.BusinessType == EnumBusinessType.MaiDanJianBBAC); |
|
|
|
|
|
|
|
/* |
|
|
|
* 买单件(External Call Number/PN)后2位为生产码类型 |
|
|
|
* 买单件(External Call Number/PN)前7位为生产码 |
|
|
|
*/ |
|
|
|
maiDanSaDetails.ForEach(maiDanSaDetail => |
|
|
|
{ |
|
|
|
maiDanSaDetail.PartCode = maiDanSaDetail.PN[^2..]; |
|
|
|
maiDanSaDetail.PN = maiDanSaDetail.PN[..7]; |
|
|
|
}); |
|
|
|
|
|
|
|
//数据校验
|
|
|
|
var checkList = new List<ErrorExportDto>(); |
|
|
|
//结算分组号
|
|
|
@ -166,9 +179,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
if (!checkList.Any()) |
|
|
|
{ |
|
|
|
//验证客户对应厂内零件号是否存在
|
|
|
|
|
|
|
|
var jisSaDetails = importBBACSaDetails.FindAll(t => t.BusinessType == EnumBusinessType.JisBBAC); |
|
|
|
var maiDanSaDetails = importBBACSaDetails.FindAll(t => t.BusinessType == EnumBusinessType.MaiDanJianHBPO); |
|
|
|
if (jisSaDetails.Any()) |
|
|
|
{ |
|
|
|
checkList.AddRange(await CheckAsync(jisSaDetails, EnumBusinessType.JisBBAC).ConfigureAwait(false)); |
|
|
|