diff options
author | hekeguang <hekeguang@chinamobile.com> | 2022-08-22 21:16:25 +0800 |
---|---|---|
committer | hekeguang <hekeguang@chinamobile.com> | 2022-08-22 21:16:44 +0800 |
commit | 6433005256513ec2943ee2ea52f2844711e4d62f (patch) | |
tree | 779e80ca6f3e812a6d1c4fecb7ce577f6ab9fe88 /intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml | |
parent | 235aa1c823235f98ee9564e717e77ca068c2b1f1 (diff) |
Add database code.
Issue-ID: USECASEUI-696
Change-Id: I1c8ce807ca1f2aaeebc8646d8a14df9f4b27a436
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
Diffstat (limited to 'intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml')
-rw-r--r-- | intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml index 450721d..56569e4 100644 --- a/intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml +++ b/intentanalysis/src/main/resources/mybatis/sql/ContextMapper.xml @@ -6,10 +6,10 @@ <insert id="insertContextList"> - insert into context(context_id, context_name, context_type, context_condition) + insert into context(context_id, context_name) values <foreach collection="contextList" index="index" item="item" separator=","> - (#{item.contextId}, #{item.contextName}, #{item.contextType}, #{item.contextCondition}) + (#{item.contextId}, #{item.contextName}) </foreach> </insert> @@ -22,7 +22,7 @@ </insert> <select id="selectContextByParentId" resultType="org.onap.usecaseui.intentanalysis.bean.models.Context"> - select context_id contextId, context_name contextName, context_type contextType, context_condition contextCondition + select context_id contextId, context_name contextName from context where intent_id = #{parentId} </select> |