t.id , t.employee_id , t.payment_organization , t.social_archives_id , t.fund_archives_id , t.other_archives_id , t.run_status , t.create_time , t.update_time , t.creator , t.delete_type , t.tenant_key , t.employee_type INSERT INTO hrsa_insurance_base_info (id,employee_id,payment_organization,social_archives_id,fund_archives_id,other_archives_id,tenant_key,creator,delete_type,create_time,update_time,run_status, employee_type) VALUES ( #{item.id}, #{item.employeeId}, #{item.paymentOrganization}, #{item.socialArchivesId}, #{item.fundArchivesId}, #{item.otherArchivesId}, #{item.tenantKey}, #{item.creator}, #{item.deleteType}, #{item.createTime}, #{item.updateTime}, #{item.runStatus}, #{item.employeeType} ) INSERT INTO hrsa_insurance_base_info (id,employee_id,payment_organization,social_archives_id,fund_archives_id,other_archives_id,tenant_key,creator,delete_type,create_time,update_time,run_status, employee_type) select #{item.id,jdbcType=DOUBLE}, #{item.employeeId,jdbcType=DOUBLE}, #{item.paymentOrganization,jdbcType=DOUBLE}, #{item.socialArchivesId,jdbcType=DOUBLE}, #{item.fundArchivesId,jdbcType=DOUBLE}, #{item.otherArchivesId,jdbcType=DOUBLE}, #{item.tenantKey,jdbcType=VARCHAR}, #{item.creator,jdbcType=DOUBLE}, #{item.deleteType}, #{item.createTime}, #{item.updateTime}, #{item.runStatus,jdbcType=VARCHAR}, #{item.employeeType} from dual INSERT INTO hrsa_insurance_base_info (id,employee_id,payment_organization,social_archives_id,fund_archives_id,other_archives_id,tenant_key,creator,delete_type,create_time,update_time,run_status, employee_type) VALUES ( #{item.id}, #{item.employeeId}, #{item.paymentOrganization}, #{item.socialArchivesId}, #{item.fundArchivesId}, #{item.otherArchivesId}, #{item.tenantKey}, #{item.creator}, #{item.deleteType}, #{item.createTime}, #{item.updateTime}, #{item.runStatus}, #{item.employeeType} ) UPDATE hrsa_insurance_base_info SET delete_type = 1 WHERE delete_type = 0 AND employee_id IN #{employeeId} UPDATE hrsa_insurance_base_info SET delete_type = 1 WHERE delete_type = 0 AND id IN #{id} UPDATE hrsa_insurance_base_info SET delete_type = 1 WHERE employee_id = #{param.employeeId} AND payment_organization = #{param.paymentOrganization} AND delete_type = 0 UPDATE hrsa_insurance_base_info run_status=#{runStatus} WHERE id IN #{id} UPDATE hrsa_insurance_base_info run_status=#{runStatus} WHERE employee_id IN #{employeeId} UPDATE hrsa_insurance_base_info WHEN id = #{item.id} THEN #{item.runStatus} WHEN id = #{item.id} THEN #{item.updateTime} WHEN id = #{item.id} THEN #{item.deleteType} WHERE delete_type = 0 AND id IN #{item.id} UPDATE hrsa_insurance_base_info employee_id = #{employeeId}, payment_organization = #{paymentOrganization}, social_archives_id = #{socialArchivesId}, fund_archives_id = #{fundArchivesId}, other_archives_id = #{otherArchivesId}, run_status = #{runStatus}, create_time = #{createTime}, update_time = #{updateTime}, creator = #{creator}, delete_type = #{deleteType}, tenant_key = #{tenantKey}, WHERE id = #{id}