insert into expectation(expectation_id, expectation_name, expectation_type, intent_id)
values
(#{item.expectationId}, #{item.expectationName}, #{item.expectationType}, #{intentId})
insert into expectation(expectation_id, expectation_name, expectation_type, intent_id)
values (#{intentExpectation.expectationId}, #{intentExpectation.expectationName}, #{intentExpectation.expectationType}, #{intentId})
update expectation
expectation_name = #{intentExpectation.expectationName},
expectation_type = #{intentExpectation.expectationType},
where expectation_id = #{intentExpectation.expectationId}
delete
from expectation
where intent_id = #{intentId}
delete
from expectation
where expectation_id = #{expectationId}