| | |
| | | select |
| | | tsr.id, tsr.dispatch_id, tsr.sampling_code, tsr.remark, tsr.status, tsr.create_time, tsr.update_time, |
| | | tsr.create_by, tsr.update_by, tsr.disabled, ted.experiment_code AS experimentCode,ted.experiment_name AS experimentName, |
| | | tpp.project_name AS projectName |
| | | tpp.project_name AS projectName,tpp.project_code as projectCode |
| | | from t_sampling_record tsr |
| | | left join t_experiment_dispatch ted on ted.id = tsr.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> |