From dd8795a2675e32b25abe98f644f80d5f72fadb90 Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: 星期三, 01 十一月 2023 14:08:55 +0800
Subject: [PATCH] update icon

---
 src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml |   40 ++++++++++++++++++++++++++++++++++++++--
 1 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml b/src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml
index 84d2724..57c3513 100644
--- a/src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml
+++ b/src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml
@@ -298,7 +298,9 @@
   </select>
   <select id="selectByCodeAndName" resultType="com.nanometer.smartlab.entity.DangerousEncode">
     select
-    <include refid="Base_Column_List" />
+    id,
+      container_number containerNumber, reagent_code reagentCode, reagent_name reagentName, cas, memo, property, feature, avoid,
+      status, fire, random, code, update_time, creator, count
     from sys_dangerous_encode
     <where>
       1=1
@@ -309,11 +311,45 @@
         and reagent_name =  #{reagentname}
       </if>
       <if test="cas != null and cas != ''">
-        and cas = #{cas}
+        and cas like concat("%",#{cas},"%")
       </if>
       <if test="code != null and code != ''">
         and code = #{code}
       </if>
     </where>
   </select>
+  <select id="selectByReagentName" resultType="com.nanometer.smartlab.entity.DangerousEncodeVo">
+    select
+      container_number containerNumber, reagent_code reagentCode, reagent_name reagentName, cas, memo, property, feature, avoid,
+      status, fire, random, code, update_time, creator, count
+    from sys_dangerous_encode
+    <where>
+        1=1
+        <if test="reagentname != null and reagentname != ''">
+            and reagent_name like concat("%",#{reagentname},"%")
+        </if>
+        <if test="cas != null and cas != ''">
+            and cas like concat("%",#{cas},"%")
+        </if>
+    </where>
+  </select>
+  <select id="selectByName" resultType="com.nanometer.smartlab.entity.DangerousEncode">
+      select
+      id,container_number containerNumber, reagent_code reagentCode, reagent_name reagentName, cas, memo,
+      property, feature, avoid, status, fire, random, code, update_time, creator, count
+      from sys_dangerous_encode
+      <where>
+          1=1
+          <if test="reagentname != null and reagentname != ''">
+              and reagent_name = #{reagentname}
+          </if>
+      </where>
+  </select>
+  <select id="selectById" resultType="com.nanometer.smartlab.entity.DangerousEncode">
+    select
+    id,container_number containerNumber, reagent_code reagentCode, reagent_name reagentName, cas, memo,
+      property, feature, avoid, status, fire, random, code, update_time, creator, count
+    from sys_dangerous_encode
+    where id = #{id}
+  </select>
 </mapper>

--
Gitblit v1.9.2