|
|
|
@ -285,6 +285,7 @@ public class OrderDetailController {
|
|
|
|
|
stockOrderDetailEntity.setCount(thrOrderDetailEntity.getCount());
|
|
|
|
|
stockOrderDetailEntity.setReCount(thrOrderDetailEntity.getReCount());
|
|
|
|
|
stockOrderDetailEntity.setOrderIdFk(stockOrderEntity.getId());
|
|
|
|
|
stockOrderDetailEntity.setRelId(udiRelevanceEntity.getId());
|
|
|
|
|
stockOrderDetailEntity.setSweepCount(0);
|
|
|
|
|
stockOrderDetailEntityList.add(stockOrderDetailEntity);
|
|
|
|
|
}
|
|
|
|
@ -346,7 +347,7 @@ public class OrderDetailController {
|
|
|
|
|
List<StockOrderDetailEntity> stockOrderDetailEntityList = new ArrayList<>();
|
|
|
|
|
for (ThrOrderDetailEntity thrOrderDetailEntity : thrOrderDetailEntities) {
|
|
|
|
|
StockOrderDetailEntity stockOrderDetailEntity = new StockOrderDetailEntity();
|
|
|
|
|
UdiRelevanceEntity udiRelevanceEntity = udiRelevanceService.selectByThirdId(thrOrderDetailEntity.getProductId(), thrOrderDetailEntity.getThirdSysFk());
|
|
|
|
|
UdiRelevanceEntity udiRelevanceEntity = udiRelevanceService.selectById(thrOrderDetailEntity.getProductId());
|
|
|
|
|
|
|
|
|
|
if (udiRelevanceEntity == null) {
|
|
|
|
|
return ResultVOUtils.error(500, "单据里含有未维护的产品信息,选入失败!");
|
|
|
|
@ -357,6 +358,7 @@ public class OrderDetailController {
|
|
|
|
|
stockOrderDetailEntity.setCount(thrOrderDetailEntity.getCount());
|
|
|
|
|
stockOrderDetailEntity.setReCount(thrOrderDetailEntity.getReCount());
|
|
|
|
|
stockOrderDetailEntity.setOrderIdFk(stockOrderEntity.getId());
|
|
|
|
|
stockOrderDetailEntity.setRelId(udiRelevanceEntity.getId());
|
|
|
|
|
stockOrderDetailEntity.setSweepCount(0);
|
|
|
|
|
stockOrderDetailEntityList.add(stockOrderDetailEntity);
|
|
|
|
|
}
|
|
|
|
|