From ebc594f48f4010fa8b61cd3c871a17f3149607ec Mon Sep 17 00:00:00 2001
From: 李宇 <986321569@qq.com>
Date: 星期二, 22 十二月 2020 16:28:22 +0800
Subject: [PATCH] 添加危化品编码接口

---
 src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 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..703c10a 100644
--- a/src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml
+++ b/src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml
@@ -298,7 +298,8 @@
   </select>
   <select id="selectByCodeAndName" resultType="com.nanometer.smartlab.entity.DangerousEncode">
     select
-    <include refid="Base_Column_List" />
+      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
@@ -316,4 +317,31 @@
       </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 = #{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>
 </mapper>

--
Gitblit v1.9.2