blob: 078ea9be3978e84cdc4328c68f0300aa22bae36d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?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.IntentReportMapper">
<insert id="insertIntentReport">
insert into intent_report(intent_report_id, intent_reference,report_time)
values (#{intentReport.intentReportId},#{intentReport.intentReference},to_timestamp(#{intentReport.reportTime},'yyyy-MM-dd HH24:mi:ss'))
</insert>
<select id="getIntentReportIds" resultType="java.lang.String">
select intent_report_id
from intent_report
where intent_reference = #{intentReference}
</select>
</mapper>
|