select user_id, addr_id, contact_name, mobile, area_code, detail_addr, addr_full_name, if_default, create_by, create_time, update_by, update_time from user_addr insert into user_addr user_id, contact_name, mobile, area_code, detail_addr, addr_full_name, if_default, create_by, create_time, update_by, update_time, #{userId}, #{contactName}, #{mobile}, #{areaCode}, #{detailAddr}, #{addrFullName}, #{ifDefault}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update user_addr user_id = #{userId}, contact_name = #{contactName}, mobile = #{mobile}, area_code = #{areaCode}, detail_addr = #{detailAddr}, addr_full_name = #{addrFullName}, if_default = #{ifDefault}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where addr_id = #{addrId} update user_addr set if_default = #{ifDefault} where user_id = #{userId} update user_addr set if_default = #{ifDefault} where user_id = #{userId} and addr_id = #{addrId} delete from user_addr where addr_id = #{id} delete from user_addr where addr_id in #{addrId}