insert into bm_worker_witness (ID_NUMBER, witness_path, witness_type, upload_date, upload_time, upload_id,contract_id, is_active) values (#{idNumber}, #{witnessPath}, '1', #{uploadDate}, #{uploadTime}, #{uploadId},#{id}, '1') insert into bm_worker_contract (idCard, contractCode, laborContractType, role, contractValidDate, contractInvalidDate, contractType, wageApprovedWay, wageCriterion, miurInsurance, whetherOnJob, endowmentInsurance,id ,is_audit ) values (#{idNumber}, #{contractCode}, #{laborContractType}, #{role}, #{contractValidDate}, #{contractInvalidDate}, #{contractType}, #{wageApprovedWay}, #{wageCriterion}, #{miurInsurance}, #{whetherOnJob}, #{endowmentInsurance},#{id} ,1 ) update bm_worker_contract set is_active = '0' where idCard = #{idNumber} and id = #{delId} ; update bm_worker_contract_details set is_active = '0' where part_b_idCard = #{idNumber} and contract_id = #{delId} ; update bm_worker_witness set is_active = '0' where ID_NUMBER = #{idNumber} and contract_id = #{delId} and witness_type = '1'