${if(len(fnumber)==0,""," and bill.fsqnumber = '"+ fnumber+"'")}
${if(len(fnumber)==0,""," and d.fnumber = '"+ fnumber+"'")}
你这样子不就可以?有值的时候传进去?
${if(len(fnumber)==0,""," and bill.fsqnumber = '"+ fnumber+"' and d.fnumber = '"+ fnumber+"'")}