Commit e9dc8ca6 by 丁伟峰

fix

1 parent 72c9a5b2
......@@ -11,5 +11,5 @@ public interface OrderRequestDao extends JpaRepository <OrderRequestEntity, Long
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 {
}
public Map<String, OrderRequestEntity> getOrdersByOrderIds(List<String> orderIds) {
List<OrderRequestEntity> orders = orderRequestDao.findAllByOrderId(orderIds);
List<OrderRequestEntity> orders = orderRequestDao.findAllByOrderIdIn(orderIds);
return orders.stream()
.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!