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} UPDATE hrsa_other_archives SET delete_type = 1 WHERE delete_type = 0 AND id IN #{id} UPDATE hrsa_other_archives SET delete_type = 1 WHERE employee_id = #{param.employeeId} AND payment_organization = #{param.paymentOrganization} AND delete_type = 0 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,jdbcType=DOUBLE}, #{item.otherStartTime,jdbcType=VARCHAR}, #{item.underTake,jdbcType=INTEGER}, #{item.tenantKey,jdbcType=VARCHAR}, #{item.welfareType,jdbcType=INTEGER}, #{item.otherEndTime,jdbcType=VARCHAR}, #{item.employeeId,jdbcType=DOUBLE}, #{item.deleteType,jdbcType=INTEGER}, #{item.updateTime,jdbcType=DATE}, #{item.createTime,jdbcType=DATE}, #{item.nonPayment,jdbcType=INTEGER}, #{item.creator,jdbcType=DOUBLE}, #{item.paymentOrganization,jdbcType=DOUBLE}, #{item.otherPaymentBaseString,jdbcType=VARCHAR} 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} ) update hrsa_other_archives when id=#{item.id} then #{item.employeeId} when id=#{item.id} then #{item.otherPaymentBaseString} when id=#{item.id} then #{item.deleteType} where id in #{item.id} UPDATE hrsa_other_archives SET other_end_time = #{endTime} WHERE delete_type = 0 AND id IN #{id} UPDATE hrsa_other_archives welfare_type = #{welfareType}, other_payment_base_string = #{otherPaymentBaseString}, other_scheme_id = #{otherSchemeId}, other_end_time = #{otherEndTime}, other_start_time = #{otherStartTime}, non_payment = #{nonPayment}, tenant_key = #{tenantKey}, employee_id = #{employeeId}, update_time = #{updateTime}, under_take = #{underTake}, payment_organization = #{paymentOrganization}, WHERE id = #{id} AND delete_type = 0 UPDATE hrsa_other_archives SET other_end_time = null WHERE delete_type = 0 AND id IN #{id} UPDATE hrsa_other_archives SET other_end_time = #{endTime} WHERE delete_type = 0 AND id = #{id} 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 ( #{otherSchemeId}, #{otherStartTime}, #{underTake}, #{tenantKey}, #{welfareType}, #{otherEndTime}, #{employeeId}, #{deleteType}, #{updateTime}, #{createTime}, #{nonPayment}, #{creator}, #{paymentOrganization}, #{otherPaymentBaseString} )