where的各个条件之间不加逗号
select w.*, (select d.name from sys_dept d where d.id = w.deptid) deptName from welder_info w
and w.weldername like #{patternweldername}
and deptid = #{deptid,jdbcType=BIGINT}
注:sql语句中test的使用;string类型的值为空时不能强制转换为long类型,需要将string类型为空时,将其变量值重新赋值。