|
@@ -902,7 +902,8 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
}
|
|
|
GoodsEntity goodsNew = goodsDao.queryObjectBySnNew(goodsDto.getGoodsSn());
|
|
|
if(goodsNew!=null){
|
|
|
- throw new RRException("该商品数据已存在,请勿重复导入:"+goodsNew.getGoodsSn());
|
|
|
+ goodsDao.update(goodsNew);
|
|
|
+// throw new RRException("该商品数据已存在,请勿重复导入:"+goodsNew.getGoodsSn());
|
|
|
}
|
|
|
// 获取品牌唯一简码
|
|
|
checkBrand(goodsDto, goodsEntity);
|