summaryrefslogtreecommitdiffstats
path: root/mso-api-handlers/mso-requests-db-repositories/src/main/java/org
diff options
context:
space:
mode:
authorChuanyu Chen <chenchuanyu@huawei.com>2020-01-07 01:22:50 +0000
committerGerrit Code Review <gerrit@onap.org>2020-01-07 01:22:50 +0000
commit8f37667d999101c2e4e395d810376173a5714794 (patch)
treef929bc22a55d57f4d8de275822eca4bf96a79886 /mso-api-handlers/mso-requests-db-repositories/src/main/java/org
parent8e308b27a0e2e5d728599aee289ed8098f8923fa (diff)
parent814650a7fe755b5de1d78e25a9e3d4f5846dc962 (diff)
Merge "Bug fix for Multi-result row data order"
Diffstat (limited to 'mso-api-handlers/mso-requests-db-repositories/src/main/java/org')
-rw-r--r--mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/InfraActiveRequestsRepository.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/InfraActiveRequestsRepository.java b/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/InfraActiveRequestsRepository.java
index 257e319ce5..927477e146 100644
--- a/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/InfraActiveRequestsRepository.java
+++ b/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/InfraActiveRequestsRepository.java
@@ -41,7 +41,7 @@ public interface InfraActiveRequestsRepository
List<InfraActiveRequests> findByStartTimeLessThanAndEndTime(Date startTime, Date endTime, Pageable request);
- @Query(value = "SELECT * FROM infra_active_requests WHERE request_status = 'IN_PROGRESS' AND (request_scope = 'volumeGroup' OR request_scope = 'vfModule') AND start_time < (NOW() - INTERVAL 2 MINUTE)",
- nativeQuery = true)
+ @Query(value = "SELECT * FROM infra_active_requests WHERE request_status = 'IN_PROGRESS' AND (request_scope = 'volumeGroup' OR request_scope = 'vfModule') AND start_time < (NOW() - INTERVAL 2 MINUTE)"
+ + " ORDER BY start_time DESC", nativeQuery = true)
List<InfraActiveRequests> getInProgressVolumeGroupsAndVfModules();
}