From 6331fc23cbe8321150fbcf0f176a1106e3982aa0 Mon Sep 17 00:00:00 2001 From: zhangfan345 Date: Tue, 30 Aug 2022 10:47:22 +0800 Subject: Update intent module and CRUD APIs Issue-ID: USECASEUI-710 Signed-off-by: zhangfan345 Change-Id: I3e53e952b3554235e324b87adef2a997bae82d2a Signed-off-by: zhangfan345 --- .../mybatis/sql/ExpectationTargetMapper.xml | 46 ++++++++++++++++++---- 1 file changed, 38 insertions(+), 8 deletions(-) (limited to 'intentanalysis/src/main/resources/mybatis/sql/ExpectationTargetMapper.xml') diff --git a/intentanalysis/src/main/resources/mybatis/sql/ExpectationTargetMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/ExpectationTargetMapper.xml index 1910912..31625c8 100644 --- a/intentanalysis/src/main/resources/mybatis/sql/ExpectationTargetMapper.xml +++ b/intentanalysis/src/main/resources/mybatis/sql/ExpectationTargetMapper.xml @@ -6,17 +6,47 @@ - - insert into expectation_target(target_id, target_name, target_condition, expectation_id) - values - (#{expectationTarget.targetId}, #{expectationTarget.targetName}, #{expectationTarget.targetCondition}, #{expectationId}) - + insert into expectation_target(target_id, target_name, expectation_id) + values + (#{expectationTarget.targetId}, #{expectationTarget.targetName}, #{expectationId}) - + select target_id targetId, target_name targetName from expectation_target where expectation_id = #{expectationId} - \ No newline at end of file + + + + update expectation_target + + target_name = #{expectationTarget.targetName}, + + where target_id = #{expectationTargetId} + + + + delete from expectation_target + where target_id = #{expectationTargetId} + + + + delete from expectation_target + where expectation_id= #{expectationId} + + + -- cgit 1.2.3-korg