From da30df12fc02f28a4b016c8c35a3b57e5c29fe35 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 22 八月 2023 13:56:49 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

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

diff --git a/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml b/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml
new file mode 100644
index 0000000..a04eeab
--- /dev/null
+++ b/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.yuanchu.limslaboratory.mapper.InspectionProductMapper">
+    <update id="upda">
+        update lims_laboratory.inspection_product
+        set test_state=null
+        where id = #{id}
+          and state = 1
+    </update>
+
+    <!--鏍规嵁妫�楠屽崟id鏌ヨ妫�楠岄」鐩殑妫�楠岀粨鏋�-->
+    <select id="getresult" resultType="java.lang.Integer">
+        select test_state
+        from lims_laboratory.inspection_product
+        where state = 1
+          and inspection_material_id = (select id from lims_laboratory.inspection_material where inspection_id = #{id})
+    </select>
+    <!--鏍规嵁妫�楠屾牱鍝乮d浣滃簾妫�楠岄」鐩�-->
+    <update id="updat">
+        update lims_laboratory.inspection_product
+        set state=0
+        where inspection_material_id = #{id}
+    </update>
+
+    <!--璁$畻宸叉楠岄」鐩暟閲�-->
+    <select id="seleCountInspro" resultType="java.lang.Integer">
+        select count(id)
+        from lims_laboratory.inspection_product
+        where state = 1
+          and test_state in (0, 1)
+    </select>
+
+    <!--璁$畻鏈楠岄」鐩暟閲�-->
+    <select id="seleCountUnInspro" resultType="java.lang.Integer">
+        select count(id)
+        from lims_laboratory.inspection_product
+        where state = 1
+          and test_state is null
+    </select>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.3