|
|
@ -42,13 +42,15 @@ |
|
|
|
person_phone as personPhone, |
|
|
|
ID, |
|
|
|
CUSTOMER_ID, |
|
|
|
ORG_ID |
|
|
|
ORG_ID, |
|
|
|
IC_RESI_USER_ID |
|
|
|
from ic_community_self_organization_personnel |
|
|
|
where org_id = #{orgId} |
|
|
|
and del_flag = 0 |
|
|
|
</select> |
|
|
|
<select id="selectCommunitySelfOrganizationList" resultMap="selectCommunitySelfOrganizationListMap" parameterType="com.epmet.dto.form.CommunitySelfOrganizationListFormDTO"> |
|
|
|
SELECT |
|
|
|
so.ORG_ID as agencyId, |
|
|
|
so.ORGANIZATION_NAME AS organizationName, |
|
|
|
so.CATEGORY_CODE AS categoryCode, |
|
|
|
so.ORGANIZATION_PERSON_COUNT AS organizationPersonCount, |
|
|
@ -63,7 +65,7 @@ |
|
|
|
FROM ic_community_self_organization so |
|
|
|
WHERE so.DEL_FLAG = 0 |
|
|
|
<if test="null != agencyId and agencyId != '' "> |
|
|
|
AND so.ORG_ID = #{agencyId} |
|
|
|
AND (so.ORG_ID = #{agencyId} or so.PIDS like concat('%',#{agencyId},'%') ) |
|
|
|
</if> |
|
|
|
AND so.CUSTOMER_ID = #{customerId} |
|
|
|
<if test="null != organizationName and organizationName != '' "> |
|
|
|