| | |
| | | tpp.project_name AS projectName, ted.experiment_name AS experimentName, ted.experiment_code AS experimentCode |
| | | from t_test_method_confirm_sheet tmcs |
| | | left join t_experiment_dispatch ted on tmcs.dispatch_id = ted.id |
| | | left join t_project_proposal tpp on ted.project_id = tpp.id |
| | | left join t_project_proposal tpp on ted.proposal_id = tpp.id |
| | | <where> |
| | | <if test="query.projectName != null and query.projectName != ''"> |
| | | and tpp.project_name like concat('%', #{query.projectName}, '%') |
| | |
| | | <if test="query.experimentCode != null and query.experimentCode !=''"> |
| | | and ted.experiment_code like concat('%', #{query.experimentCode}, '%') |
| | | </if> |
| | | <if test="query.auditStatus != null and query.auditStatus != ''"> |
| | | <if test="query.auditStatus != null and query.auditStatus != -1"> |
| | | and tmcs.audit_status = #{query.auditStatus} |
| | | </if> |
| | | <if test="query.auditStatus == null"> |
| | | and tmcs.audit_status != -1 |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> |
| | | AND tmcs.create_time BETWEEN #{query.startTime} AND #{query.endTime} |
| | | </if> |