修改采购单入库的bug
This commit is contained in:
parent
99c1df8df9
commit
b5c40faf0a
@ -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()));
|
||||
//初始化本次入库采购品
|
||||
|
Loading…
Reference in New Issue
Block a user