This commit is contained in:
袁锋 2025-11-21 12:19:57 +08:00
parent 91b99ef557
commit c5e78f8521
1 changed files with 5 additions and 4 deletions

View File

@ -425,12 +425,13 @@ public class ProductInfoServiceImpl implements ProductInfoService {
if(FuncUtil.isEmpty(productType)){
return ""+(i+1)+"行品类(尺码唛,价钱卡,纸盒,主唛,挂卡,洗水唛) 不能为空:"+brandName;
}
Long productTypeId = toProductTypeId(excelVO.getProductType());
Long typeId = toProductTypeId(excelVO.getProductType().trim());
if(FuncUtil.isEmpty(productTypeId)){
return ""+(i+1)+"行品类(尺码唛,价钱卡,纸盒,主唛,挂卡,洗水唛) 请维护该分类的的资料:"+brandName;
if(FuncUtil.isEmpty(typeId)){
ProductTypeIdCache.clear();
return ""+(i+1)+"行品类(尺码唛,价钱卡,纸盒,主唛,挂卡,洗水唛) 请维护该分类的的资料:"+excelVO.getProductType();
}
productInfo.setProductTypeId(productTypeId);
productInfo.setProductTypeId(typeId);
productInfo.setCode(code);
productInfo.setTemplateType("2");