From b7586ba9b38136c7af8ca9b31f92f570a0b039c2 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期一, 21 八月 2023 18:02:35 +0800
Subject: [PATCH] 计量管理-》计量修改                                  试验管理-》合格率统计

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

diff --git a/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml b/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml
index 93e3111..594632c 100644
--- a/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml
+++ b/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml
@@ -1,4 +1,24 @@
 <?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>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3