From 3eda4de769e0852dd051182efe74c2a49865fa84 Mon Sep 17 00:00:00 2001
From: zhanzhiqin <895896009@qq.com>
Date: 星期一, 06 六月 2022 18:46:32 +0800
Subject: [PATCH] 灯杆倾斜处理
---
dao/src/main/resources/mapper/LightPoleHeelingProcessingMapper.xml | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/dao/src/main/resources/mapper/LightPoleHeelingProcessingMapper.xml b/dao/src/main/resources/mapper/LightPoleHeelingProcessingMapper.xml
index 3615510..cba5f32 100644
--- a/dao/src/main/resources/mapper/LightPoleHeelingProcessingMapper.xml
+++ b/dao/src/main/resources/mapper/LightPoleHeelingProcessingMapper.xml
@@ -37,4 +37,23 @@
</if>
</where>
</select>
+ <select id="processingDetailList" resultType="com.sandu.ximon.dao.domain.LightPoleHeelingProcessing">
+ SELECT t1.*, t3.pole_code,
+ t3.pole_name
+ FROM light_pole_heeling_processing t1
+ LEFT JOIN pole_binding t2 ON t1.mac = t2.device_code
+ AND t2.device_type = 8
+ LEFT JOIN pole t3 ON t3.id = t2.pole_id
+ <where>
+ <if test="keyword != null and keyword != ''">
+ AND (
+ t1.processing_number LIKE CONCAT(CONCAT('%', #{keyword}), '%')
+ OR (t1.warning_number LIKE CONCAT(CONCAT('%', #{keyword}), '%'))
+ )
+ </if>
+ <if test="userId != null">
+ AND (t3.user_id = #{userId} OR t3.client_id = #{userId})
+ </if>
+ </where>
+ </select>
</mapper>
--
Gitblit v1.9.3