diff options
author | zhuguanyu <zhuguanyu5@huawei.com> | 2022-08-16 16:14:56 +0800 |
---|---|---|
committer | zhuguanyu <zhuguanyu5@huawei.com> | 2022-08-26 16:34:02 +0800 |
commit | a6a29c67cbb22b9b120d08fe5310a45a16d987c6 (patch) | |
tree | ab4941a0309a835b111dadd9fc8d2f9056f21f9f /intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml | |
parent | 9643136574c0c06909ebe9af120c022fbb951b6d (diff) |
Update intent module and intent API of retrieval
Issue-ID: USECASEUI-710
Signed-off-by: zhuguanyu <zhuguanyu5@huawei.com>
Change-Id: I1d6e19db2a4c78f07b907f51fa3c9cf904eff4aa
Diffstat (limited to 'intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml')
-rw-r--r-- | intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml index 9d6029f..643c193 100644 --- a/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml +++ b/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml @@ -5,17 +5,19 @@ <mapper namespace="org.onap.usecaseui.intentanalysis.mapper.IntentMapper"> <select id="selectIntentById" resultType="org.onap.usecaseui.intentanalysis.bean.models.Intent"> - select intent_id intentId, intent_name intentName from intent + select intent_id intentId, intent_name intentName + from intent where intent_id = #{intentId} </select> - <select id="selectIntents" resultType="org.onap.usecaseui.intentanalysis.bean.models.Intent"> - select intent_id intentId, intent_name intentName from intent + <select id="selectIntentList" resultType="org.onap.usecaseui.intentanalysis.bean.models.Intent"> + select intent_id intentId, intent_name intentName + from intent </select> <insert id="insertIntent" > insert into Intent(intent_id, intent_name) - values(#{intentId}, #{intentName}) + values(#{intent.intentId}, #{intent.intentName}) </insert> <update id="updateIntent" parameterType="org.onap.usecaseui.intentanalysis.bean.models.Intent"> @@ -27,7 +29,8 @@ </update> <delete id="deleteIntentById" parameterType="string"> - delete from intent + delete + from intent where intent_id = #{intentId} </delete> |