|
@@ -447,7 +447,7 @@ public class CartServiceImpl implements CartService {
|
|
|
for (Cart cart : carts) {
|
|
for (Cart cart : carts) {
|
|
|
batchCodes.add(cart.getBatchCode());
|
|
batchCodes.add(cart.getBatchCode());
|
|
|
}
|
|
}
|
|
|
- //从历史库存中获取上架信息
|
|
|
|
|
|
|
+ //从历史库存中获取最新的历史信息
|
|
|
List<Long> historyIds = goodsHistoryDao.findMaxIdByBatchCodes(batchCodes);
|
|
List<Long> historyIds = goodsHistoryDao.findMaxIdByBatchCodes(batchCodes);
|
|
|
if (org.apache.commons.collections.CollectionUtils.isNotEmpty(historyIds)) {
|
|
if (org.apache.commons.collections.CollectionUtils.isNotEmpty(historyIds)) {
|
|
|
List<GoodsHistory> histories = goodsHistoryDao.findAll(historyIds);
|
|
List<GoodsHistory> histories = goodsHistoryDao.findAll(historyIds);
|