id, graph_id, lat, lng delete from ba_map_coordinates where id = #{id,jdbcType=BIGINT} insert into ba_map_coordinates (id, graph_id, lat, lng) values (#{id,jdbcType=BIGINT}, #{graphId,jdbcType=BIGINT}, #{lat,jdbcType=DECIMAL}, #{lng,jdbcType=DECIMAL}) insert into ba_map_coordinates id, graph_id, lat, lng, #{id,jdbcType=BIGINT}, #{graphId,jdbcType=BIGINT}, #{lat,jdbcType=DECIMAL}, #{lng,jdbcType=DECIMAL}, update ba_map_coordinates graph_id = #{graphId,jdbcType=BIGINT}, lat = #{lat,jdbcType=DECIMAL}, lng = #{lng,jdbcType=DECIMAL}, where id = #{id,jdbcType=BIGINT} update ba_map_coordinates set graph_id = #{graphId,jdbcType=BIGINT}, lat = #{lat,jdbcType=DECIMAL}, lng = #{lng,jdbcType=DECIMAL} where id = #{id,jdbcType=BIGINT} DELETE coo FROM ba_map_coordinates coo INNER JOIN ba_map_graph gra ON gra.id = coo.graph_id WHERE gra.block_id = #{blockId}