You can tell JasperReports to use the parameter to determine part of the request using syntax $P!{PARAMETER_NAME}. This tells JasperReports to use a literal value PARAMETER_NAMEas part of the request. Then you can:
$P! SQL :
SELECT * FROM table WHERE 1=1
. $P{} $P!{} - (!).
SQL.