t.id , t.employee_id , t.non_payment , t.welfare_type , t.fund_start_time , t.fund_end_time , t.fund_scheme_id , t.fund_account , t.supplement_fund_account , t.payment_organization , t.under_take , t.fund_payment_base_string , t.create_time , t.update_time , t.creator , t.delete_type , t.tenant_key UPDATE hrsa_fund_archives SET delete_type = 1 WHERE delete_type = 0 AND employee_id IN #{employeeIds} INSERT INTO hrsa_fund_archives( fund_scheme_id, fund_account, fund_end_time, fund_start_time, fund_payment_base_string, supplement_fund_account, create_time, creator, non_payment, delete_type, tenant_key, under_take, payment_organization, update_time, welfare_type, employee_id) VALUES ( #{item.fundSchemeId}, #{item.fundAccount}, #{item.fundEndTime}, #{item.fundStartTime}, #{item.fundPaymentBaseString}, #{item.supplementFundAccount} #{item.createTime} #{item.creator} #{item.nonPayment} #{item.deleteType} #{item.tenantKey} #{item.underTake} #{item.paymentOrganization} #{item.updateTime} #{item.welfareType} #{item.employeeId} ) INSERT INTO hrsa_fund_archives( fund_scheme_id, fund_account, fund_end_time, fund_start_time, fund_payment_base_string, supplement_fund_account, create_time, creator, non_payment, delete_type, tenant_key, under_take, payment_organization, update_time, welfare_type, employee_id) select #{item.fundSchemeId}, #{item.fundAccount}, #{item.fundEndTime}, #{item.fundStartTime}, #{item.fundPaymentBaseString}, #{item.supplementFundAccount} #{item.createTime} #{item.creator} #{item.nonPayment} #{item.deleteType} #{item.tenantKey} #{item.underTake} #{item.paymentOrganization} #{item.updateTime} #{item.welfareType} #{item.employeeId} from dual INSERT INTO hrsa_fund_archives( fund_scheme_id, fund_account, fund_end_time, fund_start_time, fund_payment_base_string, supplement_fund_account, create_time, creator, non_payment, delete_type, tenant_key, under_take, payment_organization, update_time, welfare_type, employee_id) VALUES ( #{item.fundSchemeId}, #{item.fundAccount}, #{item.fundEndTime}, #{item.fundStartTime}, #{item.fundPaymentBaseString}, #{item.supplementFundAccount} #{item.createTime} #{item.creator} #{item.nonPayment} #{item.deleteType} #{item.tenantKey} #{item.underTake} #{item.paymentOrganization} #{item.updateTime} #{item.welfareType} #{item.employeeId} )