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 #{employeeId} UPDATE hrsa_fund_archives SET delete_type = 1 WHERE delete_type = 0 AND id IN #{id} UPDATE hrsa_fund_archives SET delete_type = 1 WHERE employee_id = #{param.employeeId} AND payment_organization = #{param.paymentOrganization} AND delete_type = 0 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,jdbcType=DOUBLE}, #{item.fundAccount,jdbcType=VARCHAR}, #{item.fundEndTime,jdbcType=VARCHAR}, #{item.fundStartTime,jdbcType=VARCHAR}, #{item.fundPaymentBaseString,jdbcType=VARCHAR}, #{item.supplementFundAccount,jdbcType=VARCHAR}, #{item.createTime,jdbcType=DATE}, #{item.creator,jdbcType=DOUBLE}, #{item.nonPayment,jdbcType=INTEGER}, #{item.deleteType,jdbcType=INTEGER}, #{item.tenantKey,jdbcType=VARCHAR}, #{item.underTake,jdbcType=INTEGER}, #{item.paymentOrganization,jdbcType=DOUBLE}, #{item.updateTime,jdbcType=DATE}, #{item.welfareType,jdbcType=INTEGER}, #{item.employeeId,jdbcType=DOUBLE} 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} ) update hrsa_fund_archives when id=#{item.id} then #{item.fundPaymentBaseString} when id=#{item.id} then #{item.deleteType} where id in #{item.id} UPDATE hrsa_fund_archives SET fund_end_time = #{endTime} WHERE delete_type = 0 AND id IN #{id} UPDATE hrsa_fund_archives welfare_type = #{welfareType}, fund_payment_base_string = #{fundPaymentBaseString}, fund_scheme_id = #{fundSchemeId}, fund_end_time = #{fundEndTime}, fund_start_time = #{fundStartTime}, non_payment = #{nonPayment}, tenant_key = #{tenantKey}, employee_id = #{employeeId}, update_time = #{updateTime}, under_take = #{underTake}, fund_account = #{fundAccount}, payment_organization = #{paymentOrganization}, supplement_fund_account = #{supplementFundAccount}, WHERE id = #{id} AND delete_type = 0 UPDATE hrsa_fund_archives SET fund_end_time = null WHERE delete_type = 0 AND id IN #{id} UPDATE hrsa_fund_archives SET fund_end_time = #{endTime} WHERE delete_type = 0 AND id = #{id} 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 ( #{fundSchemeId}, #{fundAccount}, #{fundEndTime}, #{fundStartTime}, #{fundPaymentBaseString}, #{supplementFundAccount}, #{createTime}, #{creator}, #{nonPayment}, #{deleteType}, #{tenantKey}, #{underTake}, #{paymentOrganization}, #{updateTime}, #{welfareType}, #{employeeId} )