|
@@ -740,7 +740,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
String merchSn = user.getMerchSn();
|
|
|
boolean isFail = false;
|
|
|
List<String> failSameSkuList = new ArrayList<>(), failHotGoodsSnList = new ArrayList<>(),
|
|
|
- failSuppGoodsSnList = new ArrayList<>(),
|
|
|
+// failSuppGoodsSnList = new ArrayList<>(),
|
|
|
failUnitGoodsSnList = new ArrayList<>(), failNationGoodsSnList = new ArrayList<>(),
|
|
|
// failProdbarGoodsSnList = new ArrayList<>(),
|
|
|
failTypeGoodsSnList = new ArrayList<>(), failMerchGoodsSnList = new ArrayList<>(),
|
|
@@ -855,10 +855,10 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
if (supplierEntity == null) {
|
|
|
//导入没有查到供货商,执行新增
|
|
|
MerchEntity merchEntity = merchDao.findByMerchSn(thirdMerchantBizEntity.getMerchSn());
|
|
|
- if(null == merchEntity || !StringUtils.isNotEmpty(goodsDto.getSupplierFlag())){
|
|
|
- isFail = true;
|
|
|
- failSuppGoodsSnList.add(goodsDto.getGoodsSn());
|
|
|
- }
|
|
|
+// if(null == merchEntity || !StringUtils.isNotEmpty(goodsDto.getSupplierFlag())){
|
|
|
+// isFail = true;
|
|
|
+// failSuppGoodsSnList.add(goodsDto.getGoodsSn());
|
|
|
+// }
|
|
|
|
|
|
supplierEntity = new SupplierEntity();
|
|
|
supplierEntity.setLevelMerchSn(merchEntity.getMerchSn());
|
|
@@ -869,6 +869,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
supplierEntity.setIsShow("0");
|
|
|
|
|
|
supplierDao.save(supplierEntity);
|
|
|
+// supplierEntity = supplierDao.queryObjectByName(goodsDto.getSupplierName(), thirdMerchantBizEntity.getMerchSn(),thirdMerchantBizEntity.getThirdPartyMerchCode());
|
|
|
goodsEntity.setSupplierId(supplierEntity.getId());
|
|
|
} else {
|
|
|
goodsEntity.setSupplierId(supplierEntity.getId());
|
|
@@ -1105,11 +1106,11 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
// exportExceptionDataDao.save(exportExceptionDataEntity);
|
|
|
// throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
// }
|
|
|
- if(failSuppGoodsSnList != null && failSuppGoodsSnList.size() > 0){
|
|
|
- exportExceptionDataEntity.setExportExceptionData("供应商信息请在商城配置》商品供应商中维护,供应商与商户信息对应,请检查该商品商户信息下的供应商是否维护,不存在的商品编码【" + failSuppGoodsSnList + "】");
|
|
|
- goodsUtils.save(exportExceptionDataEntity);
|
|
|
- throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
- }
|
|
|
+// if(failSuppGoodsSnList != null && failSuppGoodsSnList.size() > 0){
|
|
|
+// exportExceptionDataEntity.setExportExceptionData("供应商信息请在商城配置》商品供应商中维护,供应商与商户信息对应,请检查该商品商户信息下的供应商是否维护,不存在的商品编码【" + failSuppGoodsSnList + "】");
|
|
|
+// goodsUtils.save(exportExceptionDataEntity);
|
|
|
+// throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
+// }
|
|
|
if(failUnitGoodsSnList != null && failUnitGoodsSnList.size() > 0){
|
|
|
exportExceptionDataEntity.setExportExceptionData("计算单位信息请在商城配置》计算单位中维护,不存在的商品编码【" + failUnitGoodsSnList + "】");
|
|
|
goodsUtils.save(exportExceptionDataEntity);
|