${if(len(姓名)=0,"","and A.jobtitle in(SELECT jobtitle FROM hrmresource WHERE lastname = '" + 姓名 + "'")}
${if(len(姓名)=0,"","and A.jobtitle in(SELECT jobtitle FROM hrmresource WHERE lastname = '" + 姓名 + "')")}
最后那边,姓名那边少了个括号,你复制我这个看看