diff options
author | Keguang He <hekeguang@chinamobile.com> | 2022-08-02 06:37:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-08-02 06:37:26 +0000 |
commit | b34ff8fd9dfd78e8858dbc63e429d61a86f5c57e (patch) | |
tree | ab49b6185d0446f61830ef9a0d7ca9ed78fbb195 /intentanalysis/src/main/resources/mybatis/sql/StateMapper.xml | |
parent | 0c41af52f3f453219a0240cf54ea321829a49c0e (diff) | |
parent | a51fa2e8573a8463109e7c8b1ed6938c9488fb21 (diff) |
Merge "Delete imtent po and reformat code"
Diffstat (limited to 'intentanalysis/src/main/resources/mybatis/sql/StateMapper.xml')
-rw-r--r-- | intentanalysis/src/main/resources/mybatis/sql/StateMapper.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intentanalysis/src/main/resources/mybatis/sql/StateMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/StateMapper.xml index 987c75f..4850870 100644 --- a/intentanalysis/src/main/resources/mybatis/sql/StateMapper.xml +++ b/intentanalysis/src/main/resources/mybatis/sql/StateMapper.xml @@ -2,9 +2,9 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="org.onap.usecaseui.server.mapper.StateMapper"> +<mapper namespace="org.onap.usecaseui.intentanalysis.mapper.StateMapper"> - <select id="selectStateByExpectation" resultType="org.onap.usecaseui.intentanalysis.bean.po.StatePo"> + <select id="selectStateByExpectation" resultType="org.onap.usecaseui.intentanalysis.bean.models.State"> select state_id stateId, state_name stateName, expectation_id expectationId, is_satisfied isSatisfied, condition from state @@ -14,8 +14,8 @@ <insert id="insertState" parameterType="java.util.ArrayList"> insert into state(state_id, state_name, expectation_id, is_satisfied, condition) values - <foreach collection="list" index="index" item="item" separator=","> - (#{item.stateId}, #{item.stateName}, #{item.expectationId}, #{item.isSatisfied}, #{item.condition}) + <foreach collection="stateList" index="index" item="item" separator=","> + (#{item.stateId}, #{item.stateName}, #{expectationId}, #{item.isSatisfied}, #{item.condition}) </foreach> </insert> |