|
@@ -827,7 +827,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
map.put("goodsBizType", goodsDto.getGoodsBizType());
|
|
|
List<GoodsEntity> list = querySame(map);
|
|
|
if (list != null && list.size() != 0) {
|
|
|
- isFail = true;
|
|
|
+// isFail = true;
|
|
|
if(goodsDto.getSku()!=null) {
|
|
|
failSameSkuList.add(goodsDto.getSku());
|
|
|
}
|
|
@@ -1057,19 +1057,19 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
goodsUtils.save(exportExceptionDataEntity);
|
|
|
throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
}
|
|
|
- if(failGoodsSnList != null && failGoodsSnList.size() > 0){
|
|
|
- if(failSameSkuList.size()>0) {
|
|
|
- exportExceptionDataEntity.setExportExceptionData("不能有重复的商品编码、sku信息!请检查商品编码【" + failGoodsSnList + "】,业务类型【" +
|
|
|
- failGoodsTypeList + "】,SKU【" + failSameSkuList + "】的商品信息");
|
|
|
- goodsUtils.save(exportExceptionDataEntity);
|
|
|
- throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
- }else{
|
|
|
- exportExceptionDataEntity.setExportExceptionData("不能有重复的商品编码、sku信息!请检查商品编码【" + failGoodsSnList + "】,业务类型【" +
|
|
|
- failGoodsTypeList + "】的商品信息");
|
|
|
- goodsUtils.save(exportExceptionDataEntity);
|
|
|
- throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
- }
|
|
|
- }
|
|
|
+// if(failGoodsSnList != null && failGoodsSnList.size() > 0){
|
|
|
+// if(failSameSkuList.size()>0) {
|
|
|
+// exportExceptionDataEntity.setExportExceptionData("不能有重复的商品编码、sku信息!请检查商品编码【" + failGoodsSnList + "】,业务类型【" +
|
|
|
+// failGoodsTypeList + "】,SKU【" + failSameSkuList + "】的商品信息");
|
|
|
+// goodsUtils.save(exportExceptionDataEntity);
|
|
|
+// throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
+// }else{
|
|
|
+// exportExceptionDataEntity.setExportExceptionData("不能有重复的商品编码、sku信息!请检查商品编码【" + failGoodsSnList + "】,业务类型【" +
|
|
|
+// failGoodsTypeList + "】的商品信息");
|
|
|
+// goodsUtils.save(exportExceptionDataEntity);
|
|
|
+// throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
|
|
|
+// }
|
|
|
+// }
|
|
|
if(failTypeGoodsSnList != null && failTypeGoodsSnList.size() > 0){
|
|
|
exportExceptionDataEntity.setExportExceptionData("货品业务类型只能是【00保税备货、02保税补货、10保税展示】!请检查商品编码【"+failTypeGoodsSnList+"】的商品信息");
|
|
|
goodsUtils.save(exportExceptionDataEntity);
|