select f_id, f_types, f_no, f_name, f_ename, f_laneid, f_portid, f_country, f_province, f_city, f_tel, f_email, f_managerid, f_uncode, f_port, case when f_status = 'T' then '正常' else '停用' end as f_status, create_by, create_time, update_by, update_time, remark from t_address insert into t_address f_id, f_types, f_no, f_name, f_ename, f_laneid, f_portid, f_country, f_province, f_city, f_tel, f_email, f_managerid, f_uncode, f_port, f_status, create_by, create_time, update_by, update_time, remark, #{fId}, #{fTypes}, #{fNo}, #{fName}, #{fEname}, #{fLaneid}, #{fPortid}, #{fCountry}, #{fProvince}, #{fCity}, #{fTel}, #{fEmail}, #{fManagerid}, #{fUncode}, #{fPort}, #{fStatus}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update t_address f_types = #{fTypes}, f_no = #{fNo}, f_name = #{fName}, f_ename = #{fEname}, f_laneid = #{fLaneid}, f_portid = #{fPortid}, f_country = #{fCountry}, f_province = #{fProvince}, f_city = #{fCity}, f_tel = #{fTel}, f_email = #{fEmail}, f_managerid = #{fManagerid}, f_uncode = #{fUncode}, f_port = #{fPort}, f_status = #{fStatus}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where f_id = #{fId} delete from t_address where f_id = #{fId} delete from t_address where f_id in #{fId} update t_address set f_status = F where f_id in #{fId}