diff --git a/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcNeighborHoodDao.xml b/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcNeighborHoodDao.xml index 1a0b871150..0120d31bb0 100644 --- a/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcNeighborHoodDao.xml +++ b/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcNeighborHoodDao.xml @@ -682,9 +682,15 @@ WHERE h.DEL_FLAG = '0' AND h.CUSTOMER_ID = #{customerId} - AND ( h.AGENCY_ID = #{agencyId} OR h.AGENCY_PIDS LIKE concat( '%', #{agencyId}, '%' ) ) - and h.NEIGHBOR_HOOD_NAME like concat('%',#{neighborHoodName},'%') - and h.GRID_ID=#{gridId} + + AND ( h.AGENCY_ID = #{agencyId} OR h.AGENCY_PIDS LIKE concat( '%', #{agencyId}, '%' ) ) + + + and h.NEIGHBOR_HOOD_NAME like concat('%',#{neighborHoodName},'%') + + + and h.GRID_ID=#{gridId} + ORDER BY h.NEIGHBOR_HOOD_NAME ASC