diff options
author | kaixiliu <liukaixi@chinamobile.com> | 2023-06-13 16:24:29 +0800 |
---|---|---|
committer | kaixiliu <liukaixi@chinamobile.com> | 2023-06-13 16:24:47 +0800 |
commit | 6e2dc3e031d258c2a447d6a175ce100bb3956993 (patch) | |
tree | 29cfa19f956ef2454c033ab6efe442c1a29d9d1e /intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml | |
parent | 09cd2f9f50b3ecde778e7d5ba4e243bbad74eef2 (diff) |
Layered Analysis FulfillmentInfo
Issue-ID: USECASEUI-812
Signed-off-by: kaixiliu <liukaixi@chinamobile.com>
Change-Id: I79a06db33444a153708cd1804789a5d719551b9f
Diffstat (limited to 'intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml')
-rw-r--r-- | intentanalysis/src/main/resources/mybatis/sql/ObjectInstanceMapper.xml | 12 |
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"> |