diff options
author | zhuguanyu <zhuguanyu5@huawei.com> | 2022-09-01 20:15:30 +0800 |
---|---|---|
committer | zhuguanyu <zhuguanyu5@huawei.com> | 2022-09-06 10:34:47 +0800 |
commit | a822724a4928b19aba349776ac17bdc5c72e8696 (patch) | |
tree | b7a2d89b9562dc71e6e2f9af6ca8b3235700ead9 /intentanalysis/src/main/resources/mybatis/sql | |
parent | 7a41339ea8a18aa7a93d73c509a74af1ef13f0a7 (diff) |
Add UT to uui services
Issue-ID: USECASEUI-716
Signed-off-by: zhuguanyu <zhuguanyu5@huawei.com>
Change-Id: I5650e9f859cf80d5ac04062fac851a092184f3e0
Diffstat (limited to 'intentanalysis/src/main/resources/mybatis/sql')
-rw-r--r-- | intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml | 8 | ||||
-rw-r--r-- | intentanalysis/src/main/resources/mybatis/sql/ExpectationMapper.xml | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml index ff04551..6eb44e3 100644 --- a/intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml +++ b/intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml @@ -40,10 +40,14 @@ </update> <delete id="deleteContext"> - DELETE FROM context WHERE context_id = #{context.contextId} + DELETE + FROM context + WHERE context_id = #{contextId} </delete> <delete id="deleteContextList"> - DELETE FROM context WHERE parent_id = #{parentId} + DELETE + FROM context + WHERE parent_id = #{parentId} </delete> </mapper> diff --git a/intentanalysis/src/main/resources/mybatis/sql/ExpectationMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/ExpectationMapper.xml index 16c7850..e6a3b26 100644 --- a/intentanalysis/src/main/resources/mybatis/sql/ExpectationMapper.xml +++ b/intentanalysis/src/main/resources/mybatis/sql/ExpectationMapper.xml @@ -21,15 +21,13 @@ </insert> <select id="selectIntentExpectationList" resultType="org.onap.usecaseui.intentanalysis.bean.models.Expectation"> - select expectation_id expectationId, expectation_name expectationName, expectation_type expectationType, - intent_id intentId + select expectation_id expectationId, expectation_name expectationName, expectation_type expectationType from expectation where intent_id = #{intentId} </select> <select id="selectIntentExpectation" resultType="org.onap.usecaseui.intentanalysis.bean.models.Expectation"> - select expectation_id expectationId, expectation_name expectationName, expectation_type expectationType, - intent_id intentId + select expectation_id expectationId, expectation_name expectationName, expectation_type expectationType from expectation where expectation_id = #{expectationId} </select> |