summaryrefslogtreecommitdiffstats
path: root/intentanalysis/src/main/resources
diff options
context:
space:
mode:
authorkaixiliu <liukaixi@chinamobile.com>2023-06-13 16:24:29 +0800
committerKeguang He <hekeguang@chinamobile.com>2023-06-14 01:24:47 +0000
commit40fbaefbaf67524b497b8ec0eb3e1725b2e37ff1 (patch)
tree29cfa19f956ef2454c033ab6efe442c1a29d9d1e /intentanalysis/src/main/resources
parent09cd2f9f50b3ecde778e7d5ba4e243bbad74eef2 (diff)
Layered Analysis FulfillmentInfo
Issue-ID: USECASEUI-812 Signed-off-by: kaixiliu <liukaixi@chinamobile.com> Change-Id: I79a06db33444a153708cd1804789a5d719551b9f (cherry picked from commit 6e2dc3e031d258c2a447d6a175ce100bb3956993)
Diffstat (limited to 'intentanalysis/src/main/resources')
-rw-r--r--intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml
index 63047ce..cec563c 100644
--- a/intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml
+++ b/intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml
@@ -5,11 +5,13 @@
<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>
+ <if test="objectInstances != null and objectInstances.size>0">
+ insert into object_instance(parent_id, object_instance)
+ values
+ <foreach collection="objectInstances" index="index" item="item" separator=",">
+ (#{parentId}, #{item})
+ </foreach>
+ </if>
</insert>
<select id="getObjectInstances" resultType="java.lang.String">