(select name from sys_dictitem where groupid='CODE_XZQH' AND code = BZ.xzqhdm) hjdz,
BZ.SYRK_ZXWD y
BZ.X x,
BZ.Y y
FROM
FROM
tb_st_rybz BZ
tb_st_rybz BZ
LEFT JOIN sys_dictitem DIC ON BZ.XBDM = DIC.CODE AND DIC.GROUPID = 'CODE_XB'
LEFT JOIN sys_dictitem DIC ON BZ.XBDM = DIC.CODE AND DIC.GROUPID = 'CODE_XB'
WHERE
WHERE
<iftest="startLng != null and startLng != '' and endLng != null and endLng != '' and startLat != null and startLat != ''and endLat != null and endLat != ''">
<iftest="startLng != null and startLng != '' and endLng != null and endLng != '' and startLat != null and startLat != ''and endLat != null and endLat != ''">
SYRK_ZXJD BETWEEN #{startLng} AND #{endLng}
X BETWEEN #{startLng} AND #{endLng}
AND SYRK_ZXWD BETWEEN #{startLat} AND #{endLat}
AND Y BETWEEN #{startLat} AND #{endLat}
</if>
</if>
<iftest="xm != null and xm != ''">
<iftest="xm != null and xm != ''">
AND BZ.XM LIKE concat('%', #{xm , jdbcType=VARCHAR }, '%')
AND BZ.XM LIKE concat('%', #{xm , jdbcType=VARCHAR }, '%')