From 5d2932cadaee4be576c1b650b402c74d6296e6dd Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期三, 30 八月 2023 13:56:58 +0800
Subject: [PATCH] 修改设备计划搜索

---
 laboratory-server/src/main/resources/mapper/InstrumentMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/laboratory-server/src/main/resources/mapper/InstrumentMapper.xml b/laboratory-server/src/main/resources/mapper/InstrumentMapper.xml
index 2bd4204..3aa5914 100644
--- a/laboratory-server/src/main/resources/mapper/InstrumentMapper.xml
+++ b/laboratory-server/src/main/resources/mapper/InstrumentMapper.xml
@@ -23,7 +23,8 @@
 
     <!--閫夋嫨璁惧-->
     <resultMap id="chooseinstumMap" type="map">
-        <id property="name" column="father_name"/>
+        <id property="id" column="cid"/>
+        <result property="name" column="father_name"/>
         <collection property="children" resultMap="chooseinstumTowMap" javaType="List"/>
     </resultMap>
     <resultMap id="chooseinstumTowMap" type="map">
@@ -43,5 +44,9 @@
                equipment_name name
         from lims_laboratory.instrument
                  left join lims_laboratory.classify c on c.id = instrument.classify_id
+        where conditions in(1,5)
+    </select>
+    <select id="getInstrument" resultType="com.yuanchu.limslaboratory.pojo.Instrument">
+        select id,equipment_name name from instrument  where 1=1  and state=1 and conditions=5
     </select>
 </mapper>

--
Gitblit v1.9.3