修复导入数据 缺少SKU spec
This commit is contained in:
1 parent
8b89d13573
commit
628e2d3786
4 files changed
+20
-19
No files matched your search
@@ -1959,8 +1959,8 @@ namespace TemuKJD.BLL
|
||||
var specList = skuItem.Spec.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
foreach (var spec in specList)
|
||||
{
|
||||
string specKey = spec.Split(':')[0];
|
||||
string specValue = spec.Split(':')[1];
|
||||
string specKey = spec.Split(':')[0].Trim();
|
||||
string specValue = spec.Split(':')[1].Trim();
|
||||
var specItem = frontProdInfo.Specs.FirstOrDefault(a => a.SpecKey == specKey && a.SpecValue == specValue);
|
||||
if (specItem == null) continue;
|
||||
skuInfo.spec.Add(new spec_item()
|
||||
|
||||
Reference in new issue
Block a user