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 (#{expectation.expectationId}, #{expectation.expectationName}, #{expectation.expectationType}, #{intentId})
update expectation
expectation_name = #{expectationName},
target_moi = #{targetMOI},
where expectation_id = #{expectationId}
delete from expectation
where intent_id = #{intentId}
delete
from expectation
where expectation_id = #{expectationId}