Skip to content

Commit

Permalink
Fixed a typo in the continuous data exporter query.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeaudoinfortin committed Oct 8, 2024
1 parent 88e3835 commit f03b6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/dbf/naps/data/db/mappers/DataMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public interface DataMapper {
+ " where"
+ " year >= #{startYear} and year <= #{endYear}"
+ "<if test=\"sites != null &amp;&amp; !sites.isEmpty()\">"
+ " and s.naps_id in <foreach collection='sites' item='site' index='index' open='(' separator = ',' close=')'>{site}</foreach>"
+ " and s.naps_id in <foreach collection='sites' item='site' index='index' open='(' separator = ',' close=')'>#{site}</foreach>"
+ "</if>"
+ "<if test=\"pollutants != null &amp;&amp; !pollutants.isEmpty()\">"
+ " and p.name in <foreach collection='pollutants' item='pollutant' index='index' open='(' separator = ',' close=')'>pollutant</foreach>"
+ " and p.name in <foreach collection='pollutants' item='pollutant' index='index' open='(' separator = ',' close=')'>#{pollutant}</foreach>"
+ "</if>"
+ " group by"
+ " <if test=\"groupByYear\">d.year</if>"
Expand Down

0 comments on commit f03b6b1

Please sign in to comment.