multi-system/src/main/resources/mapper/system/AnnualReportMapper.xml
@@ -30,7 +30,8 @@ ar.`create_by`, ar.`create_time`, ar.`update_by`, ar.`update_time` ar.`update_time`, ar.`year` FROM `annual_report` ar LEFT JOIN sys_company sc ON ar.company_id = sc.id @@ -42,6 +43,9 @@ <if test="companyId!=null"> AND ar.company_id = 24 </if> <if test="year!=null"> AND ar.year = #{year} </if> ORDER BY ar.create_time DESC </select>