|
|
@@ -105,13 +105,14 @@ public class B2cOrderServiceImpl implements B2cOrderService {
|
|
|
GoodsHistory goodsHistory = goodsHistoryDao.findNewByBatchCode(orderDetail.getBatchCode());
|
|
|
if (goodsHistory != null) {
|
|
|
List<Product> products = productDao.findByEnUUAndCmpUuId(enuu, goodsHistory.getUuid());
|
|
|
+ B2cOrderDetail b2cOrderDetail = ModelConverter.convertUas(orderDetail);
|
|
|
if (!CollectionUtils.isEmpty(products)) {
|
|
|
- B2cOrderDetail b2cOrderDetail = ModelConverter.convertUas(orderDetail);
|
|
|
b2cOrderDetail.setProductCode(products.get(0).getProdNum());// 添加erp物料编号
|
|
|
- b2cOrderDetails.add(b2cOrderDetail);
|
|
|
- } else {
|
|
|
- productExists = false;
|
|
|
}
|
|
|
+ b2cOrderDetails.add(b2cOrderDetail);
|
|
|
+ // else {
|
|
|
+ // productExists = false;
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
if (productExists) {
|