multi-system/src/main/resources/mapper/system/PurchaseContractMapper.xml
@@ -7,6 +7,7 @@ SELECT pc.`id`, pc.`company_id`, pc.`year`, sc.`name` AS company_name, pc.`file_name`, pc.`file_path`, @@ -23,6 +24,9 @@ <if test="companyId!=null"> AND pc.company_id = #{companyId} </if> <if test="year!=null and year !=''"> AND pc.`year` = #{year} </if> ORDER BY pc.create_time DESC </select>