summaryrefslogtreecommitdiffstats
path: root/intentanalysis/src/main/resources/mybatis
diff options
context:
space:
mode:
authorhekeguang <hekeguang@chinamobile.com>2022-08-19 15:20:44 +0800
committerhekeguang <hekeguang@chinamobile.com>2022-08-19 15:21:22 +0800
commit235aa1c823235f98ee9564e717e77ca068c2b1f1 (patch)
tree6f14b10bda4b30d4d53743e8b1395e910ecf4d02 /intentanalysis/src/main/resources/mybatis
parent031d49919a7b7dfd53b760619f87e79a57419ba9 (diff)
Modify intent base code.
Issue-ID: USECASEUI-696 Change-Id: I4d12d19757a30a1cc4b2a3a2f1f087bac91aa2c6 Signed-off-by: hekeguang <hekeguang@chinamobile.com>
Diffstat (limited to 'intentanalysis/src/main/resources/mybatis')
-rw-r--r--intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml
index 5e2847b..9d6029f 100644
--- a/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml
+++ b/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml
@@ -31,4 +31,9 @@
where intent_id = #{intentId}
</delete>
+ <select id="getIntentByName" resultType="org.onap.usecaseui.intentanalysis.bean.models.Intent">
+ select intent_id intentId, intent_name intentName from intent
+ where intent_name like "%"#{intentName}"%"
+ </select>
+
</mapper> \ No newline at end of file