package org.openlmis.report.builder;

import org.openlmis.report.model.params.LogTagParam;

import java.util.Map;


/**
 * Created by hassan on 7/5/17.
 */
public class LogTagQueryBuilder {

    public static String getQuery(Map params){

        LogTagParam filter = (LogTagParam)params.get("filterCriteria");
        return " select * from log_tags where " +
                " createdDate >='"+filter.getStartDate()+"'::DATE AND createdDate <='"+filter.getEndDate()+"'::DATE";

    }

}

@@ -372,24 +372,26 @@
       %22 
-createdD
+logDate::d
 ate %3E='%22
@@ -430,16 +430,18 @@
 AND 
-createdD
+logDate::d
 ate 

update log tag date range filter