<select id="sumColumnByTariff" parameterType="java.util.Map" resultType="Integer">
select
SUM(IFNULL(#{columnName},0))
from
ru_nl_manifest_temp
where
tariff = #{tariff}
</select>
select
SUM(IFNULL(#{columnName},0))
from
ru_nl_manifest_temp
where
tariff = #{tariff}
</select>