select pkt.id, pkt.parent_id, pkt.tag_name, pkt.tag_type, pkt.tag_heat, pkt.create_time, pkt.update_time, pkt.create_by, pkt.remark, pkt.order_num from pm_know_tag pkt INSERT INTO pm_know_tag (tag_name, tag_type, tag_heat, is_active, parent_id, create_by, remark, order_num) VALUES (#{tagName}, #{tagType}, #{tagHeat}, '0', #{parentId}, #{createBy}, #{remark}, #{orderNum}); update pm_know_tag parent_id = #{parentId}, tag_name = #{tagName}, order_num = #{orderNum}, update_by = #{updateBy}, update_time = sysdate() where id = #{id} update pm_know_tag is_active ='1' where id = #{id}