入库报错修复
This commit is contained in:
@@ -121,7 +121,9 @@
|
||||
consInfo.setStockNumber(consStockFlow.getAfterNumber());
|
||||
updateStockList.add(consInfo);
|
||||
}
|
||||
mapper.insertBatchSelective(insertList, 50);
|
||||
if (!insertList.isEmpty()) {
|
||||
mapper.insertBatchSelective(insertList, 50);
|
||||
}
|
||||
for (ConsInfo consInfo : updateStockList) {
|
||||
consInfoMapper.update(consInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user