INSERT INTO bm_unit
unit_name,
depart_id,
link_man,
telphone,
create_time,
create_by,
del_flag,
project_id,
bzz_idcard,
#{teamName},
#{departId},
#{relName},
#{relPhone},
NOW(),
#{createUser},
0,
#{projectId},
#{idCard},
UPDATE bm_unit
unit_name = #{teamName},
depart_id = #{departId},
link_man = #{relName},
telphone = #{relPhone},
update_by = #{updateUser},
status = #{status},
update_time = NOW()
WHERE unit_id = #{id}
update bm_unit
set del_flag = '2'
where unit_id = #{id}