@ -70,7 +70,9 @@
AND ie.GRID_ID = #{orgId}
</if>
<if test='"agency" == orgType'>
AND (ie.AGENCY_ID = #{orgId} or ie.AGENCY_PIDS like concat('%',#{orgId},'%'))
<if test='null != orgId and "" != orgId'>
<if test='null==orgType or "" == orgType'>
AND (