UPDATE ta_person SET ${field} = IFNULL(${field}, 0) + #{increment} WHERE person_id = #{personId} UPDATE ta_person SET points = IFNULL(points, 0) + #{increment} WHERE person_id = #{personId} UPDATE ta_person a INNER JOIN ( SELECT t.*, s.shortname AS province FROM td_city t INNER JOIN td_city s ON t.parentid = s.id ) b ON a.city = b.shortname AND a.province = b.province Left join ta_recommend_customer m on m.org_id = a.org_id and m.person_id = a.person_id set a.city = b.id, m.city = b.id where a.city IS NOT NULL and (a.city REGEXP '[^0-9.]')=1 and a.person_id = #{personId} insert into ta_person_position id, person_id, lon, lat, citycode, country, province, city, district, address, create_time, org_id, #{id,jdbcType=INTEGER}, #{personId,jdbcType=INTEGER}, #{lon,jdbcType=VARCHAR}, #{lat,jdbcType=VARCHAR}, #{citycode}, #{country}, #{province}, #{city}, #{district}, #{address}, #{createTime}, #{orgId} UPDATE ta_person SET person_type = 'customer', user_id = null WHERE person_id = #{personId}