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