--"set dateformat dmy select *  from [rpt].[EMC_MOPersonCard] ("+params["paramLpu"].value+","+params["paramLpuRegionOsn"].value+","+params["paramLpuRegionTypeOsn"].value+",'"+params["paramBegDate"].value+"','"+params["paramEndDate"].value+"') 
select *
from rpt.emc_mopersoncard_pg(
cast($1 as int8), 
cast($2 as int8), 
cast($3 as int8), 
cast(to_timestamp($4,'dd.mm.yyyy') as timestamp), 
cast(to_timestamp($5,'dd.mm.yyyy') as timestamp))
order by 1
