Skip to content

Commit

Permalink
fix null-values of organized_by and title
Browse files Browse the repository at this point in the history
  • Loading branch information
07joshua03 committed Jan 26, 2024
1 parent 64a5f8b commit 5c300ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public interface OrderRepository extends JpaRepository<Order, Integer> {
@Query(value ="""
SELECT
P.ID AS productId,
E.TITLE AS eventTitle,
E.ORGANIZED_BY AS organizedBy,
coalesce(E.TITLE,'EVENT_NOT_FOUND') AS eventTitle,
coalesce(E.ORGANIZED_BY, 27) AS organizedBy,
P.TITLE AS productTitle,
B.OP_PRICE AS price,
B.OP_AMOUNT AS amount,
Expand Down

0 comments on commit 5c300ba

Please sign in to comment.