From 80b2025993331ac057b9a63210be2cb6ba124806 Mon Sep 17 00:00:00 2001
From: “zhuo” <“zhuo@itcast.cn”>
Date: 星期三, 09 八月 2023 17:55:19 +0800
Subject: [PATCH] 8-9提交代码

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

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

--
Gitblit v1.9.3