From 1d1091013432cbac77a38b32d7d6d4f809b1b378 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期一, 21 八月 2023 09:02:49 +0800
Subject: [PATCH] 计量管理-》计划计量新增

---
 inspection-server/src/main/resources/mapper/ReportMapper.xml |    5 +++++
 1 files changed, 5 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..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,10 @@
         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>
             <if test="status != null">
                 and r.status = #{status}
             </if>

--
Gitblit v1.9.3