Implement multi value (status) filtering for getting activity details #381
Merged
tcdlpds
merged 3 commits from Gimhan-minion/device-mgt-core:act-fil
into master
8 months ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'Gimhan-minion/device-mgt-core:act-fil'
Deleting a branch is permanent. It CANNOT be undone. Continue?
bf383f6ba0
to99ddde26a6
8 months agosql.append("AND STATUS = ? ");
if (activityPaginationRequest.getStatuses() != null && !activityPaginationRequest.getStatuses().isEmpty()) {
sql.append("AND STATUS IN (");
for (int i = 0; i < activityPaginationRequest.getStatuses().size() - 1; i++) {
Incorrect logic. If stauses count is 1, activityPaginationRequest.getStatuses().size() - 1 = 0, the boundary condition get false and no statues will add to where in clause. Further this will omit last status all the time if statuses count is grater than 1.
Check review comment and fix it in all applicable places
64189a400d
into master 8 months agoReviewers
64189a400d
.