wenminjie
2026-07-13 0220811fbcffd4bd4df334502a2af272ae29f1e3
ruoyi-system/src/main/resources/mapper/system/TInspectionReportMapper.xml
@@ -25,7 +25,7 @@
        select tir.id, tir.dispatch_id, tir.test_result, tir.test_reason, tir.status, tir.create_time,
        tir.update_time, tir.create_by, tir.update_by, tir.disabled, tir.commit_user_id,
        ted.experiment_name, ted.experiment_code,
        tpp.project_name
        tpp.project_name,tpp.project_code
        from t_inspection_report tir
        left join t_experiment_dispatch ted on ted.id = tir.dispatch_id
        left join t_project_proposal tpp on ted.proposal_id = tpp.id
@@ -33,6 +33,9 @@
            <if test="query.projectName != null and query.projectName != ''">
                and tpp.project_name like concat('%', #{query.projectName}, '%')
            </if>
            <if test="query.projectCode != null and query.projectCode != ''">
                and tpp.project_code like concat('%',#{query.projectCode},'%')
            </if>
            <if test="query.experimentName != null and query.experimentName != ''">
                and ted.experiment_name like concat('%', #{query.experimentName}, '%')
            </if>