|
@@ -71,19 +71,12 @@ public class DepotItemServiceImpl extends ServiceImpl<DepotItemMapper, DepotItem
|
|
@Resource
|
|
@Resource
|
|
private MaterialCurrentStockMapperEx materialCurrentStockMapperEx;
|
|
private MaterialCurrentStockMapperEx materialCurrentStockMapperEx;
|
|
@Resource
|
|
@Resource
|
|
- private LogService logService;
|
|
|
|
- @Resource
|
|
|
|
private MaterialMapperEx materialMapperEx;
|
|
private MaterialMapperEx materialMapperEx;
|
|
-
|
|
|
|
@Resource
|
|
@Resource
|
|
private SyncTescoSystemService syncTescoSystemService;
|
|
private SyncTescoSystemService syncTescoSystemService;
|
|
-
|
|
|
|
@Resource
|
|
@Resource
|
|
private MaterialBatchService materialBatchService;
|
|
private MaterialBatchService materialBatchService;
|
|
|
|
|
|
- @Resource
|
|
|
|
- private DepotItemService depotItemService;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* pda根据订单信息查询商品列表
|
|
* pda根据订单信息查询商品列表
|
|
* @return
|
|
* @return
|
|
@@ -93,7 +86,7 @@ public class DepotItemServiceImpl extends ServiceImpl<DepotItemMapper, DepotItem
|
|
List<PDADepotItemVO> list = depotItemMapper.pdaList(id);
|
|
List<PDADepotItemVO> list = depotItemMapper.pdaList(id);
|
|
for (PDADepotItemVO pdaDepotItemVO : list) {
|
|
for (PDADepotItemVO pdaDepotItemVO : list) {
|
|
Unit unitInfo = materialService.findUnit(pdaDepotItemVO.getMaterialId()); //查询多单位信息
|
|
Unit unitInfo = materialService.findUnit(pdaDepotItemVO.getMaterialId()); //查询多单位信息
|
|
- pdaDepotItemVO.setActualQuantityInStorage(depotItemService.getFinishNumber(pdaDepotItemVO.getMaterialExtendId(), pdaDepotItemVO.getId(), pdaDepotItemVO.getHeaderId(), unitInfo, pdaDepotItemVO.getMaterialUnit(), "basic").toString());
|
|
|
|
|
|
+ pdaDepotItemVO.setActualQuantityInStorage(this.getFinishNumber(pdaDepotItemVO.getMaterialExtendId(), pdaDepotItemVO.getId(), pdaDepotItemVO.getHeaderId(), unitInfo, pdaDepotItemVO.getMaterialUnit(), "basic").toString());
|
|
BigDecimal stock;
|
|
BigDecimal stock;
|
|
if (unitInfo != null && unitInfo.getId() != null){
|
|
if (unitInfo != null && unitInfo.getId() != null){
|
|
stock = unitService.parseStockByUnit(materialService.getCurrentStockByMaterialIdAndDepotId(pdaDepotItemVO.getMaterialId(),pdaDepotItemVO.getDepotId()),unitInfo,pdaDepotItemVO.getCommodityUnit());
|
|
stock = unitService.parseStockByUnit(materialService.getCurrentStockByMaterialIdAndDepotId(pdaDepotItemVO.getMaterialId(),pdaDepotItemVO.getDepotId()),unitInfo,pdaDepotItemVO.getCommodityUnit());
|