|
@@ -5926,8 +5926,8 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
if(d.getOrderNumber() == null){
|
|
if(d.getOrderNumber() == null){
|
|
|
return R.error("操作失败,第"+row+"行,订单号为空!");
|
|
return R.error("操作失败,第"+row+"行,订单号为空!");
|
|
|
}
|
|
}
|
|
|
- if(d.getProductName() == null){
|
|
|
|
|
- return R.error("操作失败,第"+row+"行,商品名称为空!");
|
|
|
|
|
|
|
+ if(d.getBarCode() == null){
|
|
|
|
|
+ return R.error("操作失败,第"+row+"行,商品编码为空!");
|
|
|
}
|
|
}
|
|
|
if(checkMap.containsKey(d.getOrderNumber())){
|
|
if(checkMap.containsKey(d.getOrderNumber())){
|
|
|
return R.error("操作失败,第"+row+"行,订单重复导入!");
|
|
return R.error("操作失败,第"+row+"行,订单重复导入!");
|
|
@@ -5939,7 +5939,7 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
if(CollectionUtils.isNotEmpty(orderItems)){
|
|
if(CollectionUtils.isNotEmpty(orderItems)){
|
|
|
for (FsStoreOrderItemScrm orderItem : orderItems) {
|
|
for (FsStoreOrderItemScrm orderItem : orderItems) {
|
|
|
com.fs.his.dto.FsStoreCartDTO cartDTO = JSONUtil.toBean(orderItem.getJsonInfo(), com.fs.his.dto.FsStoreCartDTO.class);
|
|
com.fs.his.dto.FsStoreCartDTO cartDTO = JSONUtil.toBean(orderItem.getJsonInfo(), com.fs.his.dto.FsStoreCartDTO.class);
|
|
|
- if (d.getProductName() .equals(cartDTO.getProductName())){
|
|
|
|
|
|
|
+ if (d.getBarCode() .equals(cartDTO.getBarCode())){
|
|
|
item.setProductId(orderItem.getProductId());
|
|
item.setProductId(orderItem.getProductId());
|
|
|
}
|
|
}
|
|
|
|
|
|