SELECT
`0002_00用户基本信息表`.namepy,
`0002_00用户基本信息表`.fullnamecn,
`0012_01监事任职表`.`公司代码`
FROM
`0002_00用户基本信息表`
INNER JOIN `0012_01监事任职表`
ON `0012_01监事任职表`.`姓名` = `0002_00用户基本信息表`.namepy
where 1=1
${if(jscomp=""," AND `0012_01监事任职表`.`公司代码` = '" + jscomp +"'","")}
试试