在where语句中使用以下两个and条件可以查询出相应结果。
and u.no='37040305'
and un.varsec_id ='2019090606'
改为使用以下参数,并将默认值设为以上数值时,查询结果应同上语句,但实际查询为空?难道参数格式或语句有问题,麻烦给检查指正,谢谢。
${if(len(kh)=0," "," and u.no= ' "+kh+" ' ")}
{if(len(wzzl)=0," "," and un.varsec_id= ' "+wzzl+" ' ")}
${if(len(kh)=0," "," and u.no= '"+ kh +"'")} ${if(len(wzzl)=0," "," and un.varsec_id= '"+ wzzl +"'")}