SELECT t1.*, t2.government_account_no, t2.name as company_name , t2.government_password, t2.social_security_account_no, t2.social_security_password , t2.employee_password, t2.is_first_social_security FROM biz_social_security_confirm_detail t1 left join biz_company t2 on t2.id = t1.company_id t1.deleted = 0 AND t1.id = #{id} AND t1.social_security_confirm_id = #{socialSecurityConfirmId} AND t1.company_id = #{companyId} AND t1.year = #{year} AND t1.month = #{month} AND t1.status = #{status} AND t1.content = #{content} AND t1.verify_content = #{verifyContent} AND STR_TO_DATE(concat(t1.year, '-', t1.month, '-01'), '%Y-%m-%d') between #{startMonth} and #{endMonth} AND