From 5d2d6fdff67f8f9a7e65abdbb4b87dba07dcb32b Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期二, 02 九月 2025 10:23:02 +0800
Subject: [PATCH] 上传修改

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

diff --git a/ruoyi-system/src/main/resources/mapper/system/TProjectApprovalReportMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TProjectApprovalReportMapper.xml
index 57cb959..124b004 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TProjectApprovalReportMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TProjectApprovalReportMapper.xml
@@ -24,5 +24,40 @@
     <sql id="Base_Column_List">
         id, team_id, report_code, report_name, report_text, status, audit_person_id, audit_time, audit_remark, create_time, update_time, create_by, update_by, disabled
     </sql>
+    <select id="pageList" resultType="com.ruoyi.system.vo.TProjectApprovalReportVO">
+        select tpar.id, tpar.team_id, tpar.report_code, tpar.report_name, tpar.report_text, tpar.status, tpar.audit_person_id,
+        tpar.audit_time, tpar.audit_remark, tpar.create_time, tpar.update_time, tpar.create_by, tpar.update_by, tpar.disabled,
+        tpt.team_name as teamName
+        from t_project_approval_report tpar
+        left join t_project_team tpt on tpt.id = tpar.team_id
+        <where>
+            <if test="query.teamIds != null and query.teamIds.size() > 0">
+                and tpt.id in
+                <foreach item="item" collection="query.teamIds" separator="," open="(" close=")" index="">
+                    #{item}
+                </foreach>
+            </if>
+            <if test="query.teamName != null and query.teamName != ''">
+                and tpt.team_name like concat('%',#{query.teamName},'%')
+            </if>
+            <if test="query.reportCode != null and query.reportCode != ''">
+                and tpar.report_code like concat('%',#{query.reportCode},'%')
+            </if>
+            <if test="query.reportName != null and query.reportName != ''">
+                and tpar.report_name like concat('%',#{query.reportName},'%')
+            </if>
+            <if test="query.status != null">
+                and tpar.status = #{query.status}
+            </if>
+            <if test="query.status == null">
+                and tpar.status != -1
+            </if>
+            <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''">
+                AND tpar.create_time BETWEEN #{query.startTime} AND #{query.endTime}
+            </if>
+            AND tpar.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
+        </where>
+        ORDER BY tpar.create_time DESC
+    </select>
 
 </mapper>

--
Gitblit v1.7.1