Skip to content
Extraits de code Groupes Projets
Valider cc7a7b26 rédigé par Mohamed Lemine BAILLAHI's avatar Mohamed Lemine BAILLAHI
Parcourir les fichiers

Merge branch 'feature/MS-102' into 'develop'

MS-102/add isExpired condition to cart pagination

Closes MS-102

See merge request !121
parents 9710c029 0bb25725
Branches
1 requête de fusion!121MS-102/add isExpired condition to cart pagination
Pipeline #15917 en échec avec les étapes
in 35 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]
### Added
- 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
LocalDateTime endDate,
ItemSource source);
@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 ((-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))")
......
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