Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e9dc8ca6
authored
Jun 14, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
1 parent
72c9a5b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderRequestDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/WorkbenchServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderRequestDao.java
View file @
e9dc8ca
...
...
@@ -11,5 +11,5 @@ public interface OrderRequestDao extends JpaRepository <OrderRequestEntity, Long
OrderRequestEntity
getByOrderId
(
String
orderId
);
List
<
OrderRequestEntity
>
findAllByOrderId
(
List
<
String
>
orderIds
);
List
<
OrderRequestEntity
>
findAllByOrderId
In
(
List
<
String
>
orderIds
);
}
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/WorkbenchServiceImpl.java
View file @
e9dc8ca
...
...
@@ -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
.
findAllByOrderId
In
(
orderIds
);
return
orders
.
stream
()
.
collect
(
Collectors
.
toMap
(
OrderRequestEntity:
:
getOrderId
,
order
->
order
));
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment