From 805248000274ad1bd010ec4a7ed6b2821be87d23 Mon Sep 17 00:00:00 2001
From: “zhuo” <“zhuo@itcast.cn”>
Date: 星期四, 10 八月 2023 17:58:32 +0800
Subject: [PATCH] 8-10提交代码

---
 inspection-server/src/main/resources/mapper/ReportMapper.xml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/inspection-server/src/main/resources/mapper/ReportMapper.xml b/inspection-server/src/main/resources/mapper/ReportMapper.xml
index 2beac5c..7983e64 100644
--- a/inspection-server/src/main/resources/mapper/ReportMapper.xml
+++ b/inspection-server/src/main/resources/mapper/ReportMapper.xml
@@ -15,6 +15,7 @@
         join user u on i.user_id = u.id
         join inspection_material im on i.id = im.inspection_id
         <where>
+            r.state = 1
             <if test="status != null">
                 and r.status = #{status}
             </if>
@@ -39,6 +40,7 @@
         join inspection i on r.inspection_id = i.id
         join inspection_material im on i.id = im.inspection_id
         <where>
+            r.state = 1
             <if test="status == null">
                 and r.status in (0, 1)
             </if>

--
Gitblit v1.9.3