|
|
|
@ -267,11 +267,21 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="comListPartners" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
|
SELECT DISTINCT c.*,o.name org_name
|
|
|
|
|
SELECT DISTINCT c.*,o.name org_name,tmp.operator
|
|
|
|
|
FROM sys_clients c
|
|
|
|
|
inner join sys_client_config cc on cc.client_id = c.client_id
|
|
|
|
|
inner join sys_org o
|
|
|
|
|
on o.org_id=c.org_id
|
|
|
|
|
LEFT JOIN (
|
|
|
|
|
SELECT
|
|
|
|
|
client_id,
|
|
|
|
|
GROUP_CONCAT( DISTINCT ap.operator ) AS operator
|
|
|
|
|
FROM
|
|
|
|
|
sys_clients_audit_process ap
|
|
|
|
|
INNER JOIN sys_managers m ON ap.operator_id = m.manager_id
|
|
|
|
|
AND <![CDATA[ m.role & 2 >0 ]]>
|
|
|
|
|
GROUP BY ap.client_id
|
|
|
|
|
) tmp ON tmp.client_id = c.client_id
|
|
|
|
|
<if test="bd_user!=null">
|
|
|
|
|
INNER JOIN sys_client_bd d ON c.client_id = d.client_id AND d.bd_id = #{bd_user} and
|
|
|
|
|
date(d.start_date)<= date(now()) and (d.end_date is null or date(d.end_date)>= date(now())) and
|
|
|
|
|