aboutsummaryrefslogtreecommitdiffstats
path: root/intentanalysis/src/main/resources/mybatis/sql/IntentReportFulfillmentInfoMapper.xml
blob: c090d5abc45005e0272ad3119b3aedc2ea9b2209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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.IntentReportFulfillmentInfoMapper">

    <insert id="insertIntentReportFulfillment">
        insert into intent_report_fulfillment_info(parent_id,fulfillment_info_id, fulfillment_info_status, not_fulfilled_state, not_fulfilled_reason,achieve_value)
        values (#{parentId},#{fulfillmentInfo.fulfillmentId}, #{fulfillmentInfo.fulfillmentStatus}, #{fulfillmentInfo.notFulfilledState}, #{fulfillmentInfo.notFulfilledReason},#{fulfillmentInfo.achieveValue})
    </insert>
    <select id="getFulfillmentInfosByParentId"
            resultType="org.onap.usecaseui.intentanalysis.bean.models.FulfillmentInfo">
        select fulfillment_info_id fulfillmentId,
               fulfillment_info_status fulfillmentStatus,
               not_fulfilled_state notFulfilledState,
               not_fulfilled_reason notFulfilledReason,
               achieve_value achieveValue
        from intent_report_fulfillment_info
        where parent_id = #{parentId}
    </select>
</mapper>