1
<?xml version="1.0" encoding="UTF-8" ?>
4
PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
5
"http://ibatis.apache.org/dtd/sql-map-2.dtd">
7
<sqlMap namespace="routineDataValue">
11
<typeAlias alias="routineDataValue" type="org.hisp.dhis.importexport.dhis14.object.Dhis14RoutineDataValue"/>
15
<resultMap class="routineDataValue" id="routineDataValueResultMap">
16
<result property="dataElementId" column="DataElementID"/>
17
<result property="periodId" column="DataPeriodID"/>
18
<result property="organisationUnitId" column="OrgUnitID"/>
19
<result property="value" column="EntryNumber" nullValue="0"/>
20
<result property="storedBy" column="lastUserID"/>
21
<result property="comment" column="Comment"/>
26
<select id="getRoutineDataValues" resultMap="routineDataValueResultMap">
27
SELECT * FROM RoutineData
30
<select id="getRoutineDataValuesLastUpdated" parameterClass="java.util.Date" resultMap="routineDataValueResultMap">
31
SELECT * FROM RoutineData WHERE LastUpdated > #value#
34
<select id="getDistinctPeriodIdentifiers" resultClass="java.lang.Integer">
35
SELECT DISTINCT DataPeriodID FROM RoutineData