From 12de000e79c094471e0a5b55cb49b966d5b93721 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 02 八月 2024 13:13:09 +0800
Subject: [PATCH] 检验下单优化查询语句

---
 cnas-server/src/main/resources/mapper/DataConfigMapper.xml |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/cnas-server/src/main/resources/mapper/DataConfigMapper.xml b/cnas-server/src/main/resources/mapper/DataConfigMapper.xml
index 592af80..69e1e5f 100644
--- a/cnas-server/src/main/resources/mapper/DataConfigMapper.xml
+++ b/cnas-server/src/main/resources/mapper/DataConfigMapper.xml
@@ -18,6 +18,8 @@
                d.collect_url,
                d.storage_url,
                d.ip,
+            d.mdb_entrust_code,
+            d.mdb_sample_code,
                ip.inspection_item,
                if(ip.inspection_item_subclass is not null and ip.inspection_item_subclass != '',
                   ip.inspection_item_subclass, ip.inspection_item) inspection_item_subclass,
@@ -35,8 +37,8 @@
         where d.id = #{deviceId}
     </select>
 
-    <select id="deleteDataConfig" resultType="com.yuanchu.mom.pojo.DataConfig">
-        SELECT ddc.*
+    <select id="deleteDataConfig" resultType="integer">
+        SELECT ddc.id
         FROM device d
                  left join structure_item_parameter ip on not FIND_IN_SET(ip.id, d.ins_product_ids)
                  inner join device_data_config ddc on ddc.device_id = d.id and ddc.structure_item_parameter_id = ip.id

--
Gitblit v1.9.3