t.id , t.primary_id , t.insurance_id , t.effective_time , t.expiration_time , t.is_payment , t.payment_scope , t.upper_limit , t.lower_limit , t.payment_proportion , t.fixed_cost , t.valid_num , t.rentention_rule , t.create_time , t.update_time , t.creator , t.delete_type , t.tenant_key t.id , t.primary_id , t.insurance_id , t.is_payment , t.payment_scope , t.payment_proportion , t.fixed_cost , t.valid_num , t.rentention_rule , t.create_time , t.update_time , t.creator , t.delete_type , t.tenant_key AND primary_id = #{primaryId} INSERT INTO hrsa_scheme_detail primary_id, insurance_id, effective_time, expiration_time, is_payment, payment_scope, upper_limit, lower_limit, payment_proportion, fixed_cost, valid_num, rentention_rule, create_time, update_time, creator, delete_type, tenant_key, #{primaryId}, #{insuranceId}, #{effectiveTime}, #{expirationTime}, #{isPayment}, #{paymentScope}, #{upperLimit}, #{lowerLimit}, #{paymentProportion}, #{fixedCost}, #{validNum}, #{rententionRule}, #{createTime}, #{updateTime}, #{creator}, #{deleteType}, #{tenantKey}, select hrsa_scheme_detail_id.currval from dual INSERT INTO hrsa_scheme_detail primary_id, insurance_id, effective_time, expiration_time, is_payment, payment_scope, upper_limit, lower_limit, payment_proportion, fixed_cost, valid_num, rentention_rule, create_time, update_time, creator, delete_type, tenant_key, #{primaryId}, #{insuranceId}, #{effectiveTime}, #{expirationTime}, #{isPayment}, #{paymentScope}, #{upperLimit}, #{lowerLimit}, #{paymentProportion}, #{fixedCost}, #{validNum}, #{rententionRule}, #{createTime}, #{updateTime}, #{creator}, #{deleteType}, #{tenantKey}, UPDATE hrsa_scheme_detail SET delete_type = 1 WHERE delete_type = 0 AND primary_id IN #{primaryIds} UPDATE hrsa_scheme_detail SET delete_type = 1 WHERE primary_id IN #{id}