From 95bd45377f1e04b448d407e3af4ee2707b90a24b Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期四, 17 八月 2023 17:07:52 +0800
Subject: [PATCH] MOM系统-8-17计量管理版本一结束

---
 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