insert into tt_personnel_entry_exit
personnel_id,work_type,lot_id,entry_date,status,#{personnelId},#{workType},#{lotId},#{entryDate},#{status},
update tt_personnel_entry_exit
exit_date = #{exitDate},status = #{status},
where personnel_id = #{personnelId} and status = 0