From 8bf9254ba43e744517d4de2516121da2979fd057 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 01 四月 2025 11:29:51 +0800
Subject: [PATCH] 1.检验项目参数导入 2.对象导入
---
cnas-device/src/main/resources/mapper/DeviceMapper.xml | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/cnas-device/src/main/resources/mapper/DeviceMapper.xml b/cnas-device/src/main/resources/mapper/DeviceMapper.xml
index 5b557f1..a254044 100644
--- a/cnas-device/src/main/resources/mapper/DeviceMapper.xml
+++ b/cnas-device/src/main/resources/mapper/DeviceMapper.xml
@@ -90,7 +90,7 @@
, #{createTime})
</select>
- <select id="selectDeviceParameterPage" resultType="com.ruoyi.device.pojo.Device">
+ <select id="selectDeviceParameterPage" resultType="com.ruoyi.device.dto.DeviceDto">
select * from(
SELECT
d.*,
@@ -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