diff options
author | kaixiliu <liukaixi@chinamobile.com> | 2023-05-22 16:00:31 +0800 |
---|---|---|
committer | kaixiliu <liukaixi@chinamobile.com> | 2023-05-22 16:00:55 +0800 |
commit | e004e125398130e92119ad4a5809cc0d55c0fc65 (patch) | |
tree | 525cdd128bff96bce7a746ea8b1954cfd170b08c /intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml | |
parent | b436bc418da80472426e2aeaddd2eadf0f8de17b (diff) |
Add Intent Report Interface
Issue-ID: USECASEUI-812
Signed-off-by: kaixiliu <liukaixi@chinamobile.com>
Change-Id: I9b534efa6161b8cbbdc3f8dafcec4e62660d0235
Diffstat (limited to 'intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml')
-rw-r--r-- | intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml new file mode 100644 index 0000000..8cf9b3c --- /dev/null +++ b/intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="org.onap.usecaseui.intentanalysis.mapper.ObjectInstanceMapper"> + + <insert id="insertObjectInstanceList"> + insert into object_instance(parent_id, object_instance) + values + <foreach collection="objectInstances" index="index" item="item" separator=","> + (#{parentId}, #{item}) + </foreach> + </insert> + + <select id="getObjectInstances" resultType="java.lang.String"> + select object_instance from object_instance where parent_id = #{parentId} + </select> +</mapper> |