|
@@ -611,7 +611,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
}
|
|
|
}
|
|
|
//商品配置校验
|
|
|
- CategoryEntity categoryEntity = categoryDao.queryObjectByName(goodsDto.getCategoryName());
|
|
|
+ CategoryEntity categoryEntity = categoryDao.queryObjectByName(goodsDto.getCategoryName(),goodsDto.getMerchSn());
|
|
|
if(categoryEntity==null){
|
|
|
isSuccess = true;
|
|
|
failCateGoodsSnList.add(goodsDto.getGoodsSn());
|
|
@@ -624,7 +624,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
failCateL2GoodsSnList.add(goodsDto.getGoodsSn());
|
|
|
}
|
|
|
}
|
|
|
- BrandEntity brandEntity = brandDao.queryObjectByName(goodsDto.getBrandName());
|
|
|
+ BrandEntity brandEntity = brandDao.queryObjectByName(goodsDto.getBrandName(),goodsDto.getMerchSn());
|
|
|
if (brandEntity == null) {
|
|
|
isSuccess = true;
|
|
|
failBrandGoodsSnList.add(goodsDto.getGoodsSn());
|
|
@@ -632,7 +632,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
goodsEntity.setBrandId(brandEntity.getId());
|
|
|
}
|
|
|
//运费
|
|
|
- FreightEntity freightEntity = freightDao.queryObjectByName(goodsDto.getDefaultFreight());
|
|
|
+ FreightEntity freightEntity = freightDao.queryObjectByName(goodsDto.getDefaultFreight(),goodsDto.getMerchSn());
|
|
|
if(freightEntity==null){
|
|
|
isSuccess = true;
|
|
|
failFreightGoodsSnList.add(goodsDto.getGoodsSn());
|
|
@@ -641,7 +641,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
goodsEntity.setFreightId(freightEntity.getId());
|
|
|
}
|
|
|
if (!Dict.orderBizType.item_11.getItem().equals(goodsDto.getGoodsBizType())) {
|
|
|
- SupplierEntity supplierEntity = supplierDao.queryObjectByName(goodsDto.getSupplierName());
|
|
|
+ SupplierEntity supplierEntity = supplierDao.queryObjectByName(goodsDto.getSupplierName(),goodsDto.getMerchSn());
|
|
|
if (supplierEntity == null) {
|
|
|
isSuccess = true;
|
|
|
failSuppGoodsSnList.add(goodsDto.getGoodsSn());
|
|
@@ -791,7 +791,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
}
|
|
|
if(failCateGoodsSnList != null && failCateGoodsSnList.size() > 0){
|
|
|
- exportExceptionDataEntity.setExportExceptionData("分类信息请在商城配置》商品分类中维护,不存在的商品编码【"+failCateGoodsSnList+"】");
|
|
|
+ exportExceptionDataEntity.setExportExceptionData("分类信息请在商城配置》商品分类中维护,商品分类与商户信息对应,请检查该商品商户信息下的分类是否维护,不存在的商品编码【"+failCateGoodsSnList+"】");
|
|
|
exportExceptionDataDao.save(exportExceptionDataEntity);
|
|
|
throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
}
|
|
@@ -801,17 +801,17 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
}
|
|
|
if(failBrandGoodsSnList != null && failBrandGoodsSnList.size() > 0){
|
|
|
- exportExceptionDataEntity.setExportExceptionData("品牌信息请在商城配置》品牌制造商中维护,不存在的商品编码【" + failBrandGoodsSnList + "】");
|
|
|
+ exportExceptionDataEntity.setExportExceptionData("品牌信息请在商城配置》品牌制造商中维护,品牌与商户信息对应,请检查该商品商户信息下的品牌是否维护,不存在的商品编码【" + failBrandGoodsSnList + "】");
|
|
|
exportExceptionDataDao.save(exportExceptionDataEntity);
|
|
|
throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
}
|
|
|
if(failFreightGoodsSnList != null && failFreightGoodsSnList.size() > 0){
|
|
|
- exportExceptionDataEntity.setExportExceptionData("运费信息请在商城配置》运费模板中维护,不存在的商品编码【"+failFreightGoodsSnList+"】,运费【"+failFreightList+"】");
|
|
|
+ exportExceptionDataEntity.setExportExceptionData("运费信息请在商城配置》运费模板中维护,运费与商户信息对应,请检查该商品商户信息下的运费是否维护,不存在的商品编码【"+failFreightGoodsSnList+"】,运费【"+failFreightList+"】");
|
|
|
exportExceptionDataDao.save(exportExceptionDataEntity);
|
|
|
throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
}
|
|
|
if(failSuppGoodsSnList != null && failSuppGoodsSnList.size() > 0){
|
|
|
- exportExceptionDataEntity.setExportExceptionData("供应商信息请在商城配置》商品供应商中维护,不存在的商品编码【" + failSuppGoodsSnList + "】");
|
|
|
+ exportExceptionDataEntity.setExportExceptionData("供应商信息请在商城配置》商品供应商中维护,供应商与商户信息对应,请检查该商品商户信息下的供应商是否维护,不存在的商品编码【" + failSuppGoodsSnList + "】");
|
|
|
exportExceptionDataDao.save(exportExceptionDataEntity);
|
|
|
throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
}
|