123456789101112131415161718192021222324 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.zy.bms.mapper.MqttLogMapper">
- <select id="getListPage" resultType="com.zy.bms.model.MqttLog">
- SELECT
- *
- FROM
- mqtt_log
- <where>
- <if test="io.deviceId != null and io.deviceId != ''">
- AND deviceId LIKE CONCAT("%",#{io.deviceId},"%")
- </if>
- <if test="io.tag != null and io.tag >-1">
- AND tag = #{io.tag}
- </if>
- <if test="io.instruction != null and io.instruction !=''">
- AND instruction = #{io.instruction}
- </if>
- </where>
- </select>
- </mapper>
|