select * from jrjf.t_base_ignoemp where v_createorgid in (${jg}) ${if(xm="",""," and v_empname = '"+xm+"'")} ${if(dm="",""," and c_source_system = '"+dm+"'")} ${if(gh="",""," and c_source_staffgh = '"+gh+"'")} ${if(zt="",""," and n_del = '"+zt+"'")} 配置错误You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1把v_createorgid in (${jg}) 改成v_createorgid=1 就没事