Skip to content

Commit

Permalink
vinh/fix bug on export null email paypal
Browse files Browse the repository at this point in the history
  • Loading branch information
AnataAria committed Nov 17, 2023
1 parent 7052df6 commit 2ecbe1b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public interface SalaryRepository extends JpaRepository<Salary, BigDecimal> {
public Optional<Salary> getSalariesByInstructorID(@Param(value = "instructorID") BigDecimal instructorID);
@Query(value = "SELECT s FROM salary s WHERE " +
"YEAR(s.salaryDate) = YEAR(:salaryDate)" +
" AND MONTH(s.salaryDate) = MONTH(:salaryDate)")
" AND MONTH(s.salaryDate) = MONTH(:salaryDate) " +
"AND s.instructor.paypalEmail IS NOT NULL AND " +
" s.instructor.paypalEmail <> ''")
public Collection<Salary> getSalariesByYearsAndMonth(@Param(value = "salaryDate")Date salaryDate);
}

0 comments on commit 2ecbe1b

Please sign in to comment.