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}