|
|
|
@ -55,7 +55,7 @@ public interface FinancialBDPrizeLogMapper {
|
|
|
|
|
"\tsc.org_id = 1 \n" +
|
|
|
|
|
"\tAND o.date >= #{start_date} \n" +
|
|
|
|
|
"\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" +
|
|
|
|
|
"\tAND d.start_date <= o.date AND ( d.end_date IS NULL OR d.end_date > o.date \n" +
|
|
|
|
|
"\t) \n" +
|
|
|
|
|
"\tAND c.get_prize = 1 \n" +
|
|
|
|
|
"\tAND c.manager_id = #{manager_id}")
|
|
|
|
@ -103,7 +103,7 @@ public interface FinancialBDPrizeLogMapper {
|
|
|
|
|
"\tsc.org_id = 1 \n" +
|
|
|
|
|
"\tAND o.date >= #{start_date} \n" +
|
|
|
|
|
"\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" +
|
|
|
|
|
"\tAND d.start_date <= o.date AND ( d.end_date IS NULL OR d.end_date > o.date \n" +
|
|
|
|
|
"\t) \n" +
|
|
|
|
|
"\tAND c.bd_group IS NOT NULL \n" +
|
|
|
|
|
"GROUP BY\n" +
|
|
|
|
@ -128,7 +128,7 @@ public interface FinancialBDPrizeLogMapper {
|
|
|
|
|
"\tsc.org_id = 1 \n" +
|
|
|
|
|
"\tAND o.date >= #{start_date} \n" +
|
|
|
|
|
"\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" +
|
|
|
|
|
"\tAND d.start_date <= o.date AND ( d.end_date IS NULL OR d.end_date > o.date \n" +
|
|
|
|
|
"\t) \n" +
|
|
|
|
|
"\tAND c.bd_group IS NOT NULL \n" +
|
|
|
|
|
"GROUP BY\n" +
|
|
|
|
@ -148,7 +148,7 @@ public interface FinancialBDPrizeLogMapper {
|
|
|
|
|
"\tsc.org_id = 1 \n" +
|
|
|
|
|
"\tAND o.date >= #{month_start_date} \n" +
|
|
|
|
|
"\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" +
|
|
|
|
|
"\tAND d.start_date <= o.date AND ( d.end_date IS NULL OR d.end_date > o.date \n" +
|
|
|
|
|
"\t) \n" +
|
|
|
|
|
"\tAND c.bd_group IS NOT NULL \n" +
|
|
|
|
|
"GROUP BY\n" +
|
|
|
|
|