Commit 105a3976 by 丁伟峰

Merge branch 'feat-dingwf-mvp616' into develop

2 parents 6bfb64f6 e9dc8ca6
...@@ -11,5 +11,5 @@ public interface OrderRequestDao extends JpaRepository <OrderRequestEntity, Long ...@@ -11,5 +11,5 @@ public interface OrderRequestDao extends JpaRepository <OrderRequestEntity, Long
OrderRequestEntity getByOrderId(String orderId); OrderRequestEntity getByOrderId(String orderId);
List<OrderRequestEntity> findAllByOrderId(List<String> orderIds); List<OrderRequestEntity> findAllByOrderIdIn(List<String> orderIds);
} }
...@@ -123,7 +123,7 @@ public class WorkbenchServiceImpl implements WorkbenchService { ...@@ -123,7 +123,7 @@ public class WorkbenchServiceImpl implements WorkbenchService {
} }
public Map<String, OrderRequestEntity> getOrdersByOrderIds(List<String> orderIds) { public Map<String, OrderRequestEntity> getOrdersByOrderIds(List<String> orderIds) {
List<OrderRequestEntity> orders = orderRequestDao.findAllByOrderId(orderIds); List<OrderRequestEntity> orders = orderRequestDao.findAllByOrderIdIn(orderIds);
return orders.stream() return orders.stream()
.collect(Collectors.toMap(OrderRequestEntity::getOrderId, order -> order)); .collect(Collectors.toMap(OrderRequestEntity::getOrderId, order -> order));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!