| | |
| | | ted.experiment_name as experimentName |
| | | from t_experiment_scheme tes |
| | | left join t_experiment_dispatch ted on tes.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.status != null and query.status != -1"> |
| | | and tes.status = #{query.status} |
| | | </if> |
| | | <if test="query.status == null"> |
| | | and tes.status != -1 |
| | | </if> |
| | | <if test="query.projectName != null and query.projectName != ''"> |
| | | and tpp.project_name like concat('%', #{query.projectName}, '%') |
| | | </if> |
| | | <if test="query.experimentCode != null and query.experimentCode != ''"> |
| | | and tes.experiment_code like concat('%', #{query.experimentCode}, '%') |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> |
| | | AND tes.create_time BETWEEN #{query.startTime} AND #{query.endTime} |
| | | </if> |
| | | AND tes.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY tes.create_time DESC |
| | | </select> |
| | | <select id="auditPageList" resultType="com.ruoyi.system.vo.TExperimentSchemeVO"> |
| | | select tes.id, tes.dispatch_id, tes.experiment_date, tes.experiment_objective, tes.experiment_param_route, |
| | | tes.experiment_material, tes.experiment_device, tes.experiment_step_record, tes.stop_reason, tes.stop_file,tes.stop_file_name, |
| | | tes.commit_sign, tes.status, tes.audit_person_id, tes.audit_time, tes.audit_remark, tes.create_time, tes.update_time, |
| | | tes.create_by, tes.update_by, tes.disabled, tpp.project_name as projectName,ted.experiment_code as experimentCode, |
| | | ted.experiment_name as experimentName |
| | | from t_experiment_scheme tes |
| | | left join t_experiment_dispatch ted on tes.dispatch_id = ted.id |
| | | left join t_project_proposal tpp on ted.proposal_id = tpp.id |
| | | <where> |
| | | <if test="query.status != null"> |
| | | and tes.status = #{query.status} |
| | |
| | | <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> |
| | | AND tes.create_time BETWEEN #{query.startTime} AND #{query.endTime} |
| | | </if> |
| | | AND tes.status IN (2,3,4) |
| | | AND tes.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY tes.create_time DESC |