| | |
| | | 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 |
| | |
| | | <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> |