Compare commits

...

2 Commits

Author SHA1 Message Date
许允枞
60bb0a296a Merge remote-tracking branch 'origin/dev' into dev 2024-10-26 16:13:43 +08:00
许允枞
b5c40faf0a 修改采购单入库的bug 2024-10-26 16:13:21 +08:00

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()));
//初始化本次入库采购品