From 56f89b4a45a561ff017ffd1e611e542130d046a0 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 15 八月 2023 09:15:19 +0800
Subject: [PATCH] 合并

---
 inspect-server/src/main/resources/mapper/RawInspectMapper.xml |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/inspect-server/src/main/resources/mapper/RawInspectMapper.xml b/inspect-server/src/main/resources/mapper/RawInspectMapper.xml
index e2d212b..a5b294b 100644
--- a/inspect-server/src/main/resources/mapper/RawInspectMapper.xml
+++ b/inspect-server/src/main/resources/mapper/RawInspectMapper.xml
@@ -39,4 +39,28 @@
         order by id desc
         limit #{pageSize},#{countSize}
     </select>
+    <select id="selCountRaw" resultType="java.lang.Integer">
+        select count(id)
+        from mom_ocean.raw_inspect
+        where state=1
+        and ins_state=1
+        and judge_state=#{judgeState}
+        <if test="begin != null and begin!=''">
+            and raw_inspect.create_time &gt;= #{begin}
+        </if>
+        <if test="end != null and end!=''">
+            and raw_inspect.create_time &lt;= #{end}
+        </if>
+    </select>
+    <select id="seAllCount" resultType="java.lang.Long">
+        select count(id)
+        from mom_ocean.raw_inspect
+        where state=1
+        <if test="begin != null and begin!=''">
+            and raw_inspect.create_time &gt;= #{begin}
+        </if>
+        <if test="end != null and end!=''">
+            and raw_inspect.create_time &lt;= #{end}
+        </if>
+    </select>
 </mapper>

--
Gitblit v1.9.3