aboutsummaryrefslogtreecommitdiffstats
path: root/intentanalysis/src/main/resources/mybatis/sql/IntentReportMapper.xml
diff options
context:
space:
mode:
Diffstat (limited to 'intentanalysis/src/main/resources/mybatis/sql/IntentReportMapper.xml')
-rw-r--r--intentanalysis/src/main/resources/mybatis/sql/IntentReportMapper.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/intentanalysis/src/main/resources/mybatis/sql/IntentReportMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/IntentReportMapper.xml
index 078ea9b..901055e 100644
--- a/intentanalysis/src/main/resources/mybatis/sql/IntentReportMapper.xml
+++ b/intentanalysis/src/main/resources/mybatis/sql/IntentReportMapper.xml
@@ -14,4 +14,14 @@
from intent_report
where intent_reference = #{intentReference}
</select>
+
+ <select id="getIntentReportsByTime" resultType="org.onap.usecaseui.intentanalysis.bean.models.IntentReport">
+ select intent_report_id intentReportId,
+ intent_reference intentReference,
+ to_char(report_time,'yyyy-mm-dd HH24:mi:ss') reportTime
+ from intent_report
+ where report_time &gt;= to_timestamp(#{startTime},'yyyy-MM-dd HH24:mi:ss')
+ and report_time &lt; to_timestamp(#{endTime},'yyyy-MM-dd HH24:mi:ss')
+ and intent_reference = #{intentInstanceId}
+ </select>
</mapper>