|
|
|
@ -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.end_date IS NULL OR d.end_date > o.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.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.end_date IS NULL OR d.end_date > o.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.bd_group IS NOT NULL \n" +
|
|
|
|
|
"GROUP BY\n" +
|
|
|
|
@ -131,6 +131,7 @@ public interface FinancialBDPrizeLogMapper {
|
|
|
|
|
"\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" +
|
|
|
|
|
"\tAND fbc.bd_type in (1, 2, 6, 7) \n" +
|
|
|
|
|
"GROUP BY\n" +
|
|
|
|
|
"\tfbc.bd_type \n" +
|
|
|
|
|
"\t) t1\n" +
|
|
|
|
@ -151,6 +152,7 @@ public interface FinancialBDPrizeLogMapper {
|
|
|
|
|
"\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" +
|
|
|
|
|
"\tAND fbc.bd_type in (1, 2, 6, 7) \n" +
|
|
|
|
|
"GROUP BY\n" +
|
|
|
|
|
"\tfbc.bd_type \n" +
|
|
|
|
|
"\t) t2 ON t1.bd_group = t2.bd_group")
|
|
|
|
|