From 9fce552f48c898b61fa1cb9be73aa4ae7dfc5bb4 Mon Sep 17 00:00:00 2001 From: liding <756868258@qq.com> Date: 星期五, 28 三月 2025 14:07:53 +0800 Subject: [PATCH] 设备导入优化 --- 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