SELECT a.id,c.name,c.isNeed,a.registerId,a.companyId,a.code,a.filePath,a.validDate,a.expireDate,a.checkStatus,a.checkTime,a.checkComment,a.status,a.remark FROM user_cert_set c LEFT JOIN
SELECT a.id,c.name,c.isNeed,a.businessId,a.companyId,a.code,a.filePath,a.validDate,a.expireDate,a.checkStatus,a.checkTime,a.checkComment,a.status,a.remark FROM user_cert_set c LEFT JOIN
(SELECT * from user_cert WHERE registerId=#{registerId}) a ON c.name = a.name
(SELECT * from user_cert WHERE businessId=#{registerId}) a ON c.name = a.name