From 0ad13cb4bf387d4f2db2d62540ebb73a376087f5 Mon Sep 17 00:00:00 2001
From: shiyunteng <shiyunteng@example.com>
Date: 星期二, 22 四月 2025 17:08:25 +0800
Subject: [PATCH] 巡检标准 巡检计划 巡检任务
---
platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml b/platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml
index 635bf6f..c3a261f 100644
--- a/platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml
+++ b/platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml
@@ -66,4 +66,21 @@
and ci.contract_id = #{contractId}
and ci.device_id = d.id )
</select>
+ <select id="getDropdownnByWinningId" resultType="com.by4cloud.platformx.device.entity.Device">
+ select
+ *
+ from
+ device d
+ where
+ d.del_flag = '0'
+ and exists (
+ select
+ pwl.device_id
+ from
+ purchase_winning_letter pwl
+ where
+ pwl.del_flag = '0'
+ and pwl.id = #{id}
+ and pwl.device_id = d.id )
+ </select>
</mapper>
--
Gitblit v1.9.1