diff --git a/src/main/java/au/com/royalpay/payment/manage/mappers/financial/FinancialBDPrizeLogMapper.java b/src/main/java/au/com/royalpay/payment/manage/mappers/financial/FinancialBDPrizeLogMapper.java index daccb3c33..cb9f467ca 100644 --- a/src/main/java/au/com/royalpay/payment/manage/mappers/financial/FinancialBDPrizeLogMapper.java +++ b/src/main/java/au/com/royalpay/payment/manage/mappers/financial/FinancialBDPrizeLogMapper.java @@ -104,7 +104,7 @@ public interface FinancialBDPrizeLogMapper { "\tAND o.date < #{end_date} \n" + "\tAND d.start_date <= o.date AND d.is_valid = 1 AND ( d.end_date IS NULL OR d.end_date > o.date \n" + "\t) \n" + - "\tAND c.get_prize = 1 \n" + + "\tAND c.bd_group IS NOT NULL \n" + "GROUP BY\n" + "\tc.bd_group") List findBdPrizeAmountRealTime(@Param("start_date") Date start_date, @Param("end_date") Date end_date);