|
@ -695,4 +695,26 @@ |
|
|
ORDER BY |
|
|
ORDER BY |
|
|
h.NEIGHBOR_HOOD_NAME ASC |
|
|
h.NEIGHBOR_HOOD_NAME ASC |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="queryNeighborHoodOptionsYanTai" parameterType="map" resultType="com.epmet.commons.tools.dto.result.OptionResultDTO"> |
|
|
|
|
|
SELECT |
|
|
|
|
|
concat(cg.grid_name,'-',h.NEIGHBOR_HOOD_NAME) as label, |
|
|
|
|
|
h.ID as `value` |
|
|
|
|
|
FROM |
|
|
|
|
|
ic_neighbor_hood h |
|
|
|
|
|
left join customer_grid cg on(h.grid_id=cg.id) |
|
|
|
|
|
WHERE |
|
|
|
|
|
h.DEL_FLAG = '0' |
|
|
|
|
|
AND h.CUSTOMER_ID = #{customerId} |
|
|
|
|
|
<if test=" null != agencyId and agencyId != ''"> |
|
|
|
|
|
AND ( h.AGENCY_ID = #{agencyId} OR h.AGENCY_PIDS LIKE concat( '%', #{agencyId}, '%' ) ) |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test=" null != neighborHoodName and neighborHoodName != ''"> |
|
|
|
|
|
and h.NEIGHBOR_HOOD_NAME like concat('%',#{neighborHoodName},'%') |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test=" null != gridId and gridId != ''"> |
|
|
|
|
|
and h.GRID_ID=#{gridId} |
|
|
|
|
|
</if> |
|
|
|
|
|
ORDER BY h.NEIGHBOR_HOOD_NAME ASC |
|
|
|
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |
|
|