dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21803
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10419: Added missing properties to RelativePeriodsBatchHandler
------------------------------------------------------------
revno: 10419
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-03-25 13:37:42 +0100
message:
Added missing properties to RelativePeriodsBatchHandler
modified:
dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/RelativePeriodsBatchHandler.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/RelativePeriodsBatchHandler.java'
--- dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/RelativePeriodsBatchHandler.java 2013-03-14 10:12:47 +0000
+++ dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/RelativePeriodsBatchHandler.java 2013-03-25 12:37:42 +0000
@@ -101,6 +101,9 @@
statementBuilder.setColumn( "thisfinancialyear" );
statementBuilder.setColumn( "lastfinancialyear" );
statementBuilder.setColumn( "last5financialyears" );
+ statementBuilder.setColumn( "lastweek" );
+ statementBuilder.setColumn( "last4weeks" );
+ statementBuilder.setColumn( "last12weeks" );
statementBuilder.setColumn( "last52weeks" );
}
@@ -126,6 +129,9 @@
statementBuilder.setValue( relatives.isThisFinancialYear() );
statementBuilder.setValue( relatives.isLastFinancialYear() );
statementBuilder.setValue( relatives.isLast5FinancialYears() );
+ statementBuilder.setValue( relatives.isLastWeek() );
+ statementBuilder.setValue( relatives.isLast4Weeks() );
+ statementBuilder.setValue( relatives.isLast12Weeks() );
statementBuilder.setValue( relatives.isLast52Weeks() );
}
}