select ctli.id, ctli.parent_id, ctli.tab_name, ctli.belong_org3, ctli.tab_enum, ctli.create_time,
ctli.update_by, ctli.update_time, ctli.create_by, ctli.remark, ctli.cust_type, ctli.comput_type,
ctli.end_date, ctli.auth_type, ctli.auth_user,ctli.tab_id,ctli.is_start
from cust_tab_list_info ctli
insert into cust_tab_list_info
parent_id,
tab_name,
tab_id,
belong_org3,
tab_enum,
cust_type,
comput_type,
end_date,
auth_type,
auth_user,
update_by,
pot_relation,
create_dept,
remark,
pot_sql,
tree_list,
tab_threshold_type,
update_time,
create_time,
create_by,
is_delete,
is_start,
#{parentId},
#{tabName},
#{tabId},
#{tabType},
#{belongOrg3},
#{tabEnum},
#{custType},
#{computType},
#{endDate},
#{authType},
#{authUser},
#{updateBy},
#{potRelation},
#{createDept},
#{remark},
#{potSql},
#{treeList},
#{tabThresholdType},
sysdate(),
sysdate(),
#{createBy},
'0',
'0',
update cust_tab_list_info
parent_id = #{parentId},
tab_name = #{tabName},
belong_org3 = #{belongOrg3},
tab_enum = #{tabEnum},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
create_by = #{createBy},
remark = #{remark},
is_start = #{isStart},
where id = #{id}
update cust_tab_list_info set is_delete = '1' ,update_time = sysdate(),update_by = #{loginId}
where id = #{id} or parent_id = #{id}
delete from cust_tab_list_info where id in
#{id}