直接写死不就可以吗
${if(cs='上半年',"and rq >= '"+nd+"-01-01" +"'" and rq <= '"+nd+"-06-31" +"'","and rq >= '"+nd+"-07-01" +"'" and rq <= '"+nd+"-12-31" +"'")}
或
${if(cs='上半年',"and rq >= '"+ CONCATENATE(nd,"-01-01") +"'" and rq <= '"+CONCATENATE(nd,"-06-31") +"'","and rq >= '"+CONCATENATE(nd,"-07-01") +"'" and rq <= '"+CONCATENATE(nd,"-12-31") +"'")}
JS实现自定义按钮快速给参数赋指定范围值-https://help.finereport.com/doc-view-1992.html