|
|
@ -8,8 +8,12 @@ |
|
|
|
select count(1) |
|
|
|
from ic_enterprise e |
|
|
|
where e.CUSTOMER_ID = #{customerId} |
|
|
|
and e.PLACE_ORG_NAME like CONCAT('%',#{search},'%') |
|
|
|
and (e.AGENCY_ID = #{agencyId} or e.AGENCY_PIDS like CONCAT(#{staffOrgIds}, '%')) |
|
|
|
<if test='null != search and "" != search'> |
|
|
|
and e.PLACE_ORG_NAME like CONCAT('%',#{search},'%') |
|
|
|
</if> |
|
|
|
<if test="null==gridId || ''==gridId"> |
|
|
|
and (e.AGENCY_ID = #{agencyId} or e.AGENCY_PIDS like CONCAT(#{staffOrgIds}, '%')) |
|
|
|
</if> |
|
|
|
<if test="'enterprise_patrol_unqualified'!= categoryKey"> |
|
|
|
and e.PLACE_TYPE = #{categoryKey} |
|
|
|
</if> |
|
|
|