SELECT t1.*, t2.name as company_name, t2.is_first_housing_fund , t2.is_pay_on_window, t2.housing_fund_password , t2.housing_fund_unit_account, t2.housing_fund_deduction_password FROM biz_housing_fund_confirm_detail t1 left join biz_company t2 on t2.id = t1.company_id t1.deleted = 0 AND t1.id = #{id} AND t1.housing_fund_confirm_id = #{housingFundConfirmId} 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