修改采购单入库的bug

This commit is contained in:
许允枞 2024-10-26 16:13:21 +08:00
parent 99c1df8df9
commit b5c40faf0a

View File

@ -492,6 +492,10 @@ public class DlRepairSoServiceImpl extends ServiceImpl<DlRepairSoMapper, DlRepai
DlRepairSo inSo = new DlRepairSo();
//过滤掉入库数量为null或0的情况(此为无效数据)
List<DlRepairSoi> filterWare = reqVO.getSoiList().stream().filter(item -> item.getInCount() != null && item.getInCount() > 0).collect(Collectors.toList());
//如果为空代表无需入库
if (CollectionUtil.isEmpty(filterWare)) {
return;
}
//即将入库采购品
List<DlRepairSoi> pmsWaresList = repairSoiService.listByIds(filterWare.stream().map(DlRepairSoi::getId).collect(Collectors.toList()));
//初始化本次入库采购品