A.oc_id, A.oc_name, A.oc_type_id, A.root_id, A.parent_id, A.admin_id, B.account_name AS admin_name, A.group_id, A.node_left, A.node_right, A.node_level, A.is_leaf, A.status, A.if_lic A.oc_id, A.admin_id, B.account_name AS admin_name, B.account_phone AS admin_phone INSERT INTO oc oc_id, oc_name, oc_type_id, root_id, parent_id, admin_id, group_id, node_left, node_right, node_level, is_leaf, status, created_by, created_at, #{ocId ,jdbcType=BIGINT}, #{ocName ,jdbcType=VARCHAR}, #{ocTypeId ,jdbcType=BIGINT}, #{rootId ,jdbcType=BIGINT}, #{parentId ,jdbcType=BIGINT}, #{adminId ,jdbcType=BIGINT}, #{groupId ,jdbcType=BIGINT}, #{nodeLeft ,jdbcType=BIGINT}, #{nodeRight ,jdbcType=BIGINT}, #{nodeLevel ,jdbcType=BIGINT}, #{isLeaf ,jdbcType=BIGINT}, #{status ,jdbcType=BIGINT}, #{createdBy ,jdbcType=BIGINT}, #{createdAt ,jdbcType=TIMESTAMP}, UPDATE oc oc_name = #{ocName, jdbcType=VARCHAR}, oc_type_id = #{ocTypeId ,jdbcType=BIGINT}, root_id = #{rootId ,jdbcType=BIGINT}, parent_id = #{parentId ,jdbcType=BIGINT}, admin_id = #{adminId ,jdbcType=BIGINT}, group_id = #{groupId ,jdbcType=BIGINT}, node_left = #{nodeLeft ,jdbcType=BIGINT}, node_right = #{nodeRight ,jdbcType=BIGINT}, node_level = #{nodeLevel ,jdbcType=BIGINT}, is_leaf = #{isLeaf ,jdbcType=BIGINT}, status = #{status ,jdbcType=BIGINT}, if_lic = #{ifLic ,jdbcType=BIGINT}, updated_by = #{updatedBy ,jdbcType=BIGINT}, updated_at = #{updatedAt ,jdbcType=TIMESTAMP}, WHERE oc_Id = #{ocId ,jdbcType=BIGINT} UPDATE oc deleted_flag = #{deletedFlag,jdbcType=BIGINT}, deleted_at = #{deletedAt,jdbcType=TIMESTAMP}, deleted_by = #{deletedBy,jdbcType=BIGINT} WHERE 1=1 AND oc_id = #{ocId ,jdbcType=BIGINT} AND parent_id = #{parentId ,jdbcType=BIGINT} = #{nodeLeft ,jdbcType=BIGINT} AND node_right <= #{nodeRight ,jdbcType=BIGINT} ]]>