Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
promotions-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
promotions-service
Commits
5d69c51e
Commit
5d69c51e
authored
May 07, 2021
by
Khai Yuan Liew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-60] Renamed bulkSearch methods
parent
30c2d8ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
PromotionsController.java
...um/ascend/promotions/controller/PromotionsController.java
+1
-1
PromotionService.java
...com/nisum/ascend/promotions/service/PromotionService.java
+1
-1
No files found.
src/main/java/com/nisum/ascend/promotions/controller/PromotionsController.java
View file @
5d69c51e
...
...
@@ -42,7 +42,7 @@ public class PromotionsController {
@PostMapping
(
"/bulkSearch"
)
public
ResponseEntity
<
Flux
<
PromotionDto
>>
bulkSearchPromotionsByItemSku
(
@RequestBody
List
<
String
>
skus
){
return
ResponseEntity
.
ok
(
promotionService
.
bulkSearchS
KU
(
skus
));
return
ResponseEntity
.
ok
(
promotionService
.
bulkSearchS
ku
(
skus
));
}
@PutMapping
(
"/{promoId}"
)
...
...
src/main/java/com/nisum/ascend/promotions/service/PromotionService.java
View file @
5d69c51e
...
...
@@ -27,7 +27,7 @@ public class PromotionService {
return
promotionRepository
.
findByProductSku
(
sku
).
map
(
PromotionDto:
:
generateDtoFromPromotion
);
}
public
Flux
<
PromotionDto
>
bulkSearchS
KU
(
List
<
String
>
skus
){
public
Flux
<
PromotionDto
>
bulkSearchS
ku
(
List
<
String
>
skus
){
return
Flux
.
fromIterable
(
skus
)
.
flatMap
(
sku
->
findPromotionsByProductSku
(
sku
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment