From 3d4db19b2658a682801e2bbc6607d47f6c1cd4bf Mon Sep 17 00:00:00 2001 From: zhaoxianglong Date: Tue, 2 Jul 2024 15:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=BB=9F=E8=AE=A1SQL=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/business/StatusMapper.xml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/zc-business/src/main/resources/mapper/business/StatusMapper.xml b/zc-business/src/main/resources/mapper/business/StatusMapper.xml index 225df1d7..a00cf156 100644 --- a/zc-business/src/main/resources/mapper/business/StatusMapper.xml +++ b/zc-business/src/main/resources/mapper/business/StatusMapper.xml @@ -120,6 +120,12 @@ AND d.use_state = #{status.useState} + + AND s.device_name like concat('%', #{status.deviceName}, '%') + + + AND d.direction = #{status.direction} + ORDER BY ${status.orderByField} ${status.orderDirection} @@ -148,6 +154,12 @@ AND d.use_state = #{status.useState} + + AND s.device_name like concat('%', #{status.deviceName}, '%') + + + AND d.direction = #{status.direction} + @@ -274,6 +286,12 @@ AND d.use_state = #{status.useState} + + AND s.device_name like concat('%', #{status.deviceName}, '%') + + + AND d.direction = #{status.direction} + ORDER BY ${status.orderByField} ${status.orderDirection} @@ -290,6 +308,12 @@ AND s.device_id = #{status.deviceId} + + AND s.device_name like concat('%', #{status.deviceName}, '%') + + + AND d.direction = #{status.direction} + ORDER BY ${status.orderByField} ${status.orderDirection}