INSERT INTO management_exam_apply( exam_apply_id, exam_id, certificate_office, theory_exam_address_id, theory_exam_start_time, theory_exam_end_time, payment_voucher, payment_voucher_num, status, user_status, check_status, exam_type, reason, gmt_create, creator, gmt_modified, modifier, is_delete ) VALUES( #{examApplyId}, #{examId}, #{certificateOffice}, #{theoryExamAddressId}, #{theoryExamStartTime}, #{theoryExamEndTime}, #{paymentVoucher}, #{paymentVoucherNum}, #{status}, #{userStatus}, #{checkStatus}, #{examType}, #{reason}, #{gmtCreate}, #{creator}, #{gmtModified}, #{modifier}, #{isDelete} ) UPDATE management_exam_apply SET gmt_modified = #{gmtModified}, modifier = #{modifier}, is_delete = 1 WHERE exam_apply_id IN #{examApplyIds[${index}]} DELETE FROM management_exam_apply WHERE exam_apply_id IN #{examApplyIds[${index}]} UPDATE management_exam_apply SET exam_id = #{examId}, certificate_office = #{certificateOffice}, theory_exam_address_id = #{theoryExamAddressId}, theory_exam_start_time = #{theoryExamStartTime}, theory_exam_end_time = #{theoryExamEndTime}, practice_exam_address_id = #{practiceExamAddressId}, practice_exam_start_time = #{practiceExamStartTime}, practice_exam_end_time = #{practiceExamEndTime}, payment_voucher = #{paymentVoucher}, payment_voucher_num = #{paymentVoucherNum}, exam_apply_num = #{examApplyNum}, status = #{status}, user_status = #{userStatus}, check_status = #{checkStatus}, exam_type = #{examType}, reason = #{reason}, gmt_modified = #{gmtModified}, modifier = #{modifier}, exam_apply_id = exam_apply_id WHERE 1 = 1 AND exam_apply_id = #{examApplyId} AND exam_id = #{examId}