From 9263a9be2c9c820c322dd734c4c18b0bcd05f91e Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 22 八月 2023 14:51:52 +0800
Subject: [PATCH] 改动4.0

---
 inspection-server/src/main/resources/mapper/InspectionMapper.xml |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/inspection-server/src/main/resources/mapper/InspectionMapper.xml b/inspection-server/src/main/resources/mapper/InspectionMapper.xml
index d324cf1..e2feafa 100644
--- a/inspection-server/src/main/resources/mapper/InspectionMapper.xml
+++ b/inspection-server/src/main/resources/mapper/InspectionMapper.xml
@@ -55,8 +55,33 @@
         select inspection_status result,
                count(id)         num
         from lims_laboratory.inspection
-        where state=1
+        where state = 1
         group by result
         order by num desc
     </select>
+
+    <!--璁$畻鍘熸潗鏂欎笌鎴愬搧鐨勫悎鏍肩巼-->
+    <select id="qualified" resultType="java.lang.Long">
+        select count(id)
+        from lims_laboratory.inspection
+        where state = 1
+          and type = 0
+          and inspection_status = #{b}
+    </select>
+
+    <!--璁$畻鍘熸潗鏂欐楠屽崟鎬绘暟-->
+    <select id="getallmater" resultType="java.lang.Integer">
+        select count(id)
+        from lims_laboratory.inspection
+        where state = 1
+          and type = 0
+    </select>
+
+    <!--璁$畻鎴愬搧妫�楠屽崟鎬绘暟-->
+    <select id="getallfin" resultType="java.lang.Integer">
+        select count(id)
+        from lims_laboratory.inspection
+        where state = 1
+          and type in (1,2)
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3