|
|
@ -62,11 +62,17 @@ |
|
|
|
|
|
|
|
act.activity_code as activity_code, |
|
|
|
act.act_title as activity_title, |
|
|
|
|
|
|
|
<if test="query.centerName != null and query.centerName != ''"> |
|
|
|
ac.center_name, |
|
|
|
</if> |
|
|
|
|
|
|
|
act.act_start_date as act_start_date, |
|
|
|
act.act_end_date as act_end_date, |
|
|
|
act.total_amount as activity_amount, |
|
|
|
act.release_amount as release_amount |
|
|
|
|
|
|
|
|
|
|
|
<if test="query.showType == 0 or query.showType == 2"> |
|
|
|
,v.id as vtb_id, |
|
|
|
v.verification_code as vtb_code, |
|
|
@ -89,6 +95,16 @@ |
|
|
|
LEFT JOIN tbs_activity act ON a.id = act.cost_apply_id |
|
|
|
LEFT JOIN vtb_verification v ON v.activity_id = act.id |
|
|
|
LEFT JOIN pay_payment_item p ON p.verification_id = v.id |
|
|
|
|
|
|
|
<if test="query.centerName != null and query.centerName != ''"> |
|
|
|
left join |
|
|
|
(select activity_id, GROUP_CONCAT(DISTINCT center_name SEPARATOR ', ') AS center_name |
|
|
|
from tbs_activity_center where |
|
|
|
center_name LIKE CONCAT('%', #{query.centerSearch}, '%') |
|
|
|
GROUP BY activity_id |
|
|
|
) as ac on act.id = ac.activity_id |
|
|
|
</if> |
|
|
|
|
|
|
|
WHERE |
|
|
|
1=1 |
|
|
|
and a.del_flag = 0 |
|
|
@ -97,6 +113,9 @@ |
|
|
|
and (act.del_flag = 0 or act.id is null ) |
|
|
|
and (v.del_flag = 0 or v.id is null ) |
|
|
|
and (p.del_flag = 0 or p.id is null ) |
|
|
|
<if test="query.centerName != null and query.centerName != ''"> |
|
|
|
AND c.center_name is not null |
|
|
|
</if> |
|
|
|
<if test="query.contractFlag != null and query.contractFlag != ''"> |
|
|
|
AND a.contract_flag = #{query.contractFlag} |
|
|
|
</if> |
|
|
|