left join sys_client_bd cb on cb.client_id = c.client_id
left join sys_client_bd cb on cb.client_id = c.client_id
left join sys_managers m on m.manager_id = cb.bd_id
left join sys_managers m on m.manager_id = cb.bd_id
@ -101,7 +102,8 @@
and c.suburb like #{suburb_pattern}
and c.suburb like #{suburb_pattern}
</if>
</if>
<iftest="approving">
<iftest="approving">
and ((c.approve_result=4 and c.open_status is null) or (c.approve_result=3 and c.open_status is null) or c.open_status=1 or c.open_status=2 or c.open_status=4)
and ((c.approve_result=4 and c.open_status is null) or (c.approve_result=3 and c.open_status is null) or
c.open_status=1 or c.open_status=2 or c.open_status=4)
and (c.client_moniker=#{search_text} or c.short_name like #{name_pattern} or c.company_name like #{name_pattern} or c.business_name like #{name_pattern} or c.remark like
and (c.client_moniker=#{search_text} or c.short_name like #{name_pattern} or c.company_name like
#{name_pattern} or c.business_name like #{name_pattern} or c.remark like
#{name_pattern} or c.contact_email=#{search_text})
#{name_pattern} or c.contact_email=#{search_text})
</if>
</if>
<iftest="text_type=='client_moniker'">
<iftest="text_type=='client_moniker'">
@ -161,7 +164,8 @@
</if>
</if>
<iftest="org_id!=null and org_ids==null">and c.org_id=#{org_id}</if>
<iftest="org_id!=null and org_ids==null">and c.org_id=#{org_id}</if>
sum(if(((c.approve_result=4 and c.open_status is null) or (c.approve_result=3 and c.open_status is null) or c.open_status=1 or c.open_status=2 or c.open_status=4),1,0)) wp,
sum(if(((c.approve_result=4 and c.open_status is null) or (c.approve_result=3 and c.open_status is null) or
c.open_status=1 or c.open_status=2 or c.open_status=4),1,0)) wp,
sum(if(c.approve_result is null and c.source= 4,1,0)) a_unagree,
sum(if(c.approve_result is null and c.source= 4,1,0)) a_unagree,
sum(if(((c.approve_result=4 and c.open_status is null) or (c.approve_result=3 and c.open_status is null) or c.open_status=1 or c.open_status=2 or c.open_status=4) and c.source = 4,1,0)) a_wp,
sum(if(((c.approve_result=4 and c.open_status is null) or (c.approve_result=3 and c.open_status is null) or
c.open_status=1 or c.open_status=2 or c.open_status=4) and c.source = 4,1,0)) a_wp,
sum(if(c.approve_result=2 and c.source = 4,1,0)) wa,
sum(if(c.approve_result=2 and c.source = 4,1,0)) wa,
sum(if(c.approve_result=1,1,0)) pass,
sum(if(c.approve_result=1,1,0)) pass,
sum(if(c.approve_result=1 and c.source=2,1,0)) z_pass,
sum(if(c.approve_result=1 and c.source=2,1,0)) z_pass,
<png-if="!accounts.length">There is no accounts for this partner, <arole="button"ng-click="addAccount()"ng-if="'111'|withRole">Create One</a></p>
<png-if="!accounts.length">There is no accounts for this partner, <arole="button"ng-click="addAccount()"ng-if="'100000011'|withRole">Create One</a></p>