Skip to content
Extraits de code Groupes Projets
Valider 0bb25725 rédigé par anas elhaddad's avatar anas elhaddad
Parcourir les fichiers

add isExpired condition to cart pagination

parent 835b6dcf
Branches
1 requête de fusion!121MS-102/add isExpired condition to cart pagination
Pipeline #15913 réussi avec les étapes
in 1 minute et 42 secondes
## [1.0.76-RELEASE]
### Added
- add isExpired condition to cart pagination
### Changed
- Changes in existing functionality.
### Deprecated
- Soon-to-be removed features.
### Removed
- Features that have been removed.
### Fixed
- Any bug fixes.
### Security
- Any security improvements.
## [1.0.75-RELEASE] ## [1.0.75-RELEASE]
### Added ### Added
- MS-114/Export sale session data to CSV and upload to FTP server - MS-114/Export sale session data to CSV and upload to FTP server
......
...@@ -77,7 +77,7 @@ public interface CartRepository extends JpaRepository<Cart, Long>, JpaSpecificat ...@@ -77,7 +77,7 @@ public interface CartRepository extends JpaRepository<Cart, Long>, JpaSpecificat
LocalDateTime endDate, LocalDateTime endDate,
ItemSource source); ItemSource source);
@Query("SELECT c FROM Cart c " + @Query("SELECT c FROM Cart c " +
"WHERE EXISTS (SELECT ic1 FROM c.items ic1 WHERE ic1.status != 'DELETED_BO' ) " + "WHERE EXISTS (SELECT ic1 FROM c.items ic1 WHERE ic1.status != 'DELETED_BO' AND ic1.isExpired = false ) " +
" AND LOWER(c.status) = 'open' " + " AND LOWER(c.status) = 'open' " +
" AND ((-1L) in :clientIds OR c.clientId IN :clientIds) " + " AND ((-1L) in :clientIds OR c.clientId IN :clientIds) " +
" AND ((-1L) in :productIds OR EXISTS (SELECT ic2 FROM c.items ic2 WHERE ic2.productId IN :productIds))") " AND ((-1L) in :productIds OR EXISTS (SELECT ic2 FROM c.items ic2 WHERE ic2.productId IN :productIds))")
......
0% ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter