From d9e44be293710a7a27f051c7e4ed1da6a79b64e3 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期三, 02 四月 2025 16:45:10 +0800
Subject: [PATCH] 可靠性计划产品计划

---
 cnas-device/src/main/resources/mapper/DeviceMapper.xml |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/cnas-device/src/main/resources/mapper/DeviceMapper.xml b/cnas-device/src/main/resources/mapper/DeviceMapper.xml
index 33fd802..a254044 100644
--- a/cnas-device/src/main/resources/mapper/DeviceMapper.xml
+++ b/cnas-device/src/main/resources/mapper/DeviceMapper.xml
@@ -181,4 +181,20 @@
                  u1.name,
                  u2.name
     </select>
+
+    <select id="selectByKeys" resultType="com.ruoyi.device.pojo.Device">
+        SELECT
+        id, device_name, specification_model, management_number,
+        manufacturer, factory_no, technical_indicators, acquisition_date,
+        activation_date, equipment_manager, storage_point, subordinate_departments_id,
+        calibration_services, last_calibration_date, next_calibration_date, large_category,
+        unit_price, device_status, calibration_date, image_upload, image_name
+        FROM device
+        WHERE
+        <foreach collection="keys" item="key" separator=" OR " open="(" close=")">
+            (device_name = #{key.deviceName}
+            AND specification_model = #{key.specModel}
+            AND management_number = #{key.manageNumber})
+        </foreach>
+    </select>
 </mapper>

--
Gitblit v1.9.3