From 20739d95d85d5d6744690093a061292325ce4a9b Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期一, 19 五月 2025 14:10:27 +0800
Subject: [PATCH] 项目总积分

---
 ruoyi-system/src/main/resources/mapper/system/TExperimentSchemeMapper.xml |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/TExperimentSchemeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TExperimentSchemeMapper.xml
index 55577e8..e6a7d76 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TExperimentSchemeMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TExperimentSchemeMapper.xml
@@ -59,5 +59,32 @@
         </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>
+            <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.status IN (2,3,4)
+            AND tes.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
+        </where>
+        ORDER BY tes.create_time DESC
+    </select>
 
 </mapper>

--
Gitblit v1.7.1