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/TQaTestItemReportMapper.xml |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/TQaTestItemReportMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TQaTestItemReportMapper.xml
index 9b92717..a311bb6 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TQaTestItemReportMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TQaTestItemReportMapper.xml
@@ -31,6 +31,7 @@
         <include refid="Base_Column_List" />
         from t_qa_test_item_report
         where item_id = #{itemId}
+        AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
         order by create_time desc
     </select>
     <select id="pageList" resultType="com.ruoyi.system.vo.TQaTestItemReportVO">
@@ -54,6 +55,12 @@
             <if test="query.reportContent != null and query.reportContent != ''">
                 and tqtir.report_content = #{query.reportContent}
             </if>
+            <if test="query.teamIds != null and query.teamIds.size() > 0">
+                and tqti.team_id in
+                <foreach item="teamId" collection="query.teamIds" separator="," close=")" open="(" index="">
+                    #{teamId}
+                </foreach>
+            </if>
             <if test="query.status != null">
                 and tqtir.status = #{query.status}
             </if>
@@ -64,5 +71,14 @@
         </where>
         ORDER BY tqtir.create_time DESC
     </select>
+    <select id="getListByItemId" resultType="com.ruoyi.system.vo.TQaTestItemReportVO">
+        select
+        <include refid="Base_Column_List" />
+        from t_qa_test_item_report
+        where item_id = #{itemId}
+        and status in (1,2,3)
+        and disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
+        order by create_time desc
+    </select>
 
 </mapper>

--
Gitblit v1.7.1