t.id , t.employee_id , t.non_payment , t.welfare_type , t.other_start_time , t.other_end_time , t.other_scheme_id , t.payment_organization , t.under_take , t.other_payment_base_string , t.create_time , t.update_time , t.creator , t.delete_type , t.tenant_key UPDATE hrsa_other_archives SET delete_type = 1 WHERE delete_type = 0 AND employee_id IN #{employeeId} INSERT INTO hrsa_other_archives( other_scheme_id, other_start_time, under_take, tenant_key, welfare_type, other_end_time, employee_id, delete_type, update_time, create_time, non_payment, creator, payment_organization, other_payment_base_string) VALUES ( #{item.otherSchemeId}, #{item.otherStartTime}, #{item.underTake}, #{item.tenantKey}, #{item.welfareType}, #{item.otherEndTime}, #{item.employeeId}, #{item.deleteType}, #{item.updateTime}, #{item.createTime}, #{item.nonPayment}, #{item.creator}, #{item.paymentOrganization}, #{item.otherPaymentBaseString} ) INSERT INTO hrsa_other_archives( other_scheme_id, other_start_time, under_take, tenant_key, welfare_type, other_end_time, employee_id, delete_type, update_time, create_time, non_payment, creator, payment_organization, other_payment_base_string) select #{item.otherSchemeId}, #{item.otherStartTime}, #{item.underTake}, #{item.tenantKey}, #{item.welfareType}, #{item.otherEndTime}, #{item.employeeId}, #{item.deleteType}, #{item.updateTime}, #{item.createTime}, #{item.nonPayment}, #{item.creator}, #{item.paymentOrganization}, #{item.otherPaymentBaseString} from dual INSERT INTO hrsa_other_archives( other_scheme_id, other_start_time, under_take, tenant_key, welfare_type, other_end_time, employee_id, delete_type, update_time, create_time, non_payment, creator, payment_organization, other_payment_base_string) VALUES ( #{item.otherSchemeId}, #{item.otherStartTime}, #{item.underTake}, #{item.tenantKey}, #{item.welfareType}, #{item.otherEndTime}, #{item.employeeId}, #{item.deleteType}, #{item.updateTime}, #{item.createTime}, #{item.nonPayment}, #{item.creator}, #{item.paymentOrganization}, #{item.otherPaymentBaseString} )