select group_id,
group_parent_id,
ancestors,
group_name,
order_num,
create_by,
create_time,
update_by,
update_time,
del_flag
from ard_inspection_group
insert into ard_inspection_group
group_id,
group_parent_id,
ancestors,
group_name,
order_num,
create_by,
create_time,
update_by,
update_time,
#{groupId},
#{groupParentId},
#{ancestors},
#{groupName},
#{orderNum},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update ard_inspection_group
group_parent_id = #{groupParentId},
ancestors = #{ancestors},
group_name = #{groupName},
order_num = #{orderNum},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where group_id = #{groupId}
update ard_inspection_group set del_flag = '2' where group_id = #{groupId}
update ard_inspection_group set del_flag = '2' where group_id in
#{groupId}
update ard_inspection_group set ancestors =
when #{item.groupId} then #{item.ancestors}
where group_id in
#{item.groupId}