t.base_id , t.create_time , t.creator , t.delete_type , t.duty_free_rate , t.duty_free_value , t.id , t.income_lower_limit , t.income_upper_limit , t.index_num , t.tax_deduction , t.tax_rate , t.taxable_income_ll , t.taxable_income_ul , t.tenant_key , t.update_time INSERT INTO hrsa_tax_rate_detail base_id, create_time, creator, delete_type, duty_free_rate, duty_free_value, id, income_lower_limit, income_upper_limit, index_num, tax_deduction, tax_rate, taxable_income_ll, taxable_income_ul, tenant_key, update_time, #{baseId}, #{createTime}, #{creator}, #{deleteType}, #{dutyFreeRate}, #{dutyFreeValue}, #{id}, #{incomeLowerLimit}, #{incomeUpperLimit}, #{indexNum}, #{taxDeduction}, #{taxRate}, #{taxableIncomeLl}, #{taxableIncomeUl}, #{tenantKey}, #{updateTime}, select hrsa_tax_rate_detail_id.currval from dual INSERT INTO hrsa_tax_rate_detail base_id, create_time, creator, delete_type, duty_free_rate, duty_free_value, id, income_lower_limit, income_upper_limit, index_num, tax_deduction, tax_rate, taxable_income_ll, taxable_income_ul, tenant_key, update_time, #{baseId}, #{createTime}, #{creator}, #{deleteType}, #{dutyFreeRate}, #{dutyFreeValue}, #{id}, #{incomeLowerLimit}, #{incomeUpperLimit}, #{indexNum}, #{taxDeduction}, #{taxRate}, #{taxableIncomeLl}, #{taxableIncomeUl}, #{tenantKey}, #{updateTime}, INSERT INTO hrsa_tax_rate_detail base_id, create_time, creator, delete_type, duty_free_rate, duty_free_value, id, income_lower_limit, income_upper_limit, index_num, tax_deduction, tax_rate, taxable_income_ll, taxable_income_ul, tenant_key, update_time, #{baseId}, #{createTime}, #{creator}, #{deleteType}, #{dutyFreeRate}, #{dutyFreeValue}, #{id}, #{incomeLowerLimit}, #{incomeUpperLimit}, #{indexNum}, #{taxDeduction}, #{taxRate}, #{taxableIncomeLl}, #{taxableIncomeUl}, #{tenantKey}, #{updateTime}, select hrsa_tax_rate_detail_id.currval from dual INSERT INTO hrsa_tax_rate_detail base_id, create_time, creator, delete_type, duty_free_rate, duty_free_value, id, income_lower_limit, income_upper_limit, index_num, tax_deduction, tax_rate, taxable_income_ll, taxable_income_ul, tenant_key, update_time, #{baseId}, #{createTime}, #{creator}, #{deleteType}, #{dutyFreeRate}, #{dutyFreeValue}, #{id}, #{incomeLowerLimit}, #{incomeUpperLimit}, #{indexNum}, #{taxDeduction}, #{taxRate}, #{taxableIncomeLl}, #{taxableIncomeUl}, #{tenantKey}, #{updateTime}, UPDATE hrsa_tax_rate_detail base_id=#{baseId}, create_time=#{createTime}, creator=#{creator}, delete_type=#{deleteType}, duty_free_rate=#{dutyFreeRate}, duty_free_value=#{dutyFreeValue}, income_lower_limit=#{incomeLowerLimit}, income_upper_limit=#{incomeUpperLimit}, index_num=#{indexNum}, tax_deduction=#{taxDeduction}, tax_rate=#{taxRate}, taxable_income_ll=#{taxableIncomeLl}, taxable_income_ul=#{taxableIncomeUl}, tenant_key=#{tenantKey}, update_time=#{updateTime}, WHERE id = #{id} AND delete_type = 0 UPDATE hrsa_tax_rate_detail base_id=#{baseId}, create_time=#{createTime}, creator=#{creator}, delete_type=#{deleteType}, duty_free_rate=#{dutyFreeRate}, duty_free_value=#{dutyFreeValue}, income_lower_limit=#{incomeLowerLimit}, income_upper_limit=#{incomeUpperLimit}, index_num=#{indexNum}, tax_deduction=#{taxDeduction}, tax_rate=#{taxRate}, taxable_income_ll=#{taxableIncomeLl}, taxable_income_ul=#{taxableIncomeUl}, tenant_key=#{tenantKey}, update_time=#{updateTime}, WHERE id = #{id} AND delete_type = 0 UPDATE hrsa_tax_rate_detail SET delete_type=1 WHERE id = #{id} AND delete_type = 0 UPDATE hrsa_tax_rate_detail SET delete_type = 1 WHERE delete_type = 0 AND base_id IN #{baseId}