sql查询没问题,但是两个下拉组件绑定的参数在页面上只有一个下拉选中能查询,另一个下来选择后没反应
if(len(status) == 0你应该用长度
把你下面那串拿上来。
where 1=1 ${len(type)==0,"","and exception_type='"+type+"'"} ${len(address)==0,"","and street='"+address+"'"} ${and(states>0,states<3),"and exception_states='"+states+"'",""} 改成上面的格式