|
|
@@ -113,6 +113,7 @@ public class OrderServiceImpl implements OrderService {
|
|
|
for (OrderDetail orderDetail : order.getDetails()) {
|
|
|
List<GoodsHistory> goodsHistorys = goodsHistoryDao.findByBatchCode(orderDetail.getBatchCode());// 获取上架历史信息
|
|
|
if (!CollectionUtils.isEmpty(goodsHistorys)) {
|
|
|
+ orderDetail.setPublisheruu(goodsHistorys.get(0).getPublisherUU());// 添加发布人uu
|
|
|
List<Product> products = productDao.findByEnUUAndCmpUuId(SystemSession.getUser().getEnterprise().getUu(), goodsHistorys.get(0).getUuid());//获取物料信息
|
|
|
if (!CollectionUtils.isEmpty(products)) {
|
|
|
orderDetail.setCode(products.get(0).getProdNum());// 设置物料编号,有物料编号才回传到ERP
|