可以
${if(len(hours)=0,"","and hours>'"+hours+"'")}
SQL上比较麻烦
这儿写条件属性行高为0 条件是 $$$<>$合计小时数控件名
参考下面这个格式
默认控件为空
where 1=1
${if(len(参数)==0,"and zsub_hours>36"," and zsub_hours = '"+参数+"'")}