|
@@ -164,13 +164,11 @@ public class InOutStorageBomServiceImpl extends ServiceImpl<InOutStorageBomMappe
|
|
|
inOutStorageErpExportVoList.add(inOutStorageErpExportVo);
|
|
|
}
|
|
|
|
|
|
- Map<Long, String> map = inOutStorageErpExportVoList.stream()
|
|
|
- .collect(Collectors.toMap(InOutStorageErpExportVo::getId, InOutStorageErpExportVo::getCode));
|
|
|
Map<String, Integer> serialNumberMap = new HashMap<>();
|
|
|
List<InOutStorageBomErpExportVo> inOutStorageBomErpExportVoList = inOutStorageBomList.stream()
|
|
|
.map(item -> {
|
|
|
InOutStorageBomErpExportVo inOutStorageBomErpExportVo = new InOutStorageBomErpExportVo();
|
|
|
- inOutStorageBomErpExportVo.setCode(map.get(Long.parseLong(DateUtil.format(item.getInOutStorageTime(), "-yyyyMMddHH"))));
|
|
|
+ inOutStorageBomErpExportVo.setCode(codeMap.get(Long.parseLong(DateUtil.format(item.getInOutStorageTime(), "-yyyyMMddHH"))));
|
|
|
inOutStorageBomErpExportVo.setBomSpecCode(item.getBomSpecCode());
|
|
|
inOutStorageBomErpExportVo.setQuantity(item.getQuantity().toPlainString());
|
|
|
inOutStorageBomErpExportVo.setWarehouseCode(item.getWarehouseCode());
|