IotServerInfoMapper.xml 814 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.xunmei.iot.mapper.IotServerInfoMapper">
  4. <select id="selectServerPage" resultType="com.xunmei.iot.vo.serverInfo.IotServerInfoPageVo">
  5. select i.* from iot_server_info i
  6. <where>
  7. <if test="req.iotStatus!=null">
  8. and i.iot_status=#{req.iotStatus}
  9. </if>
  10. <if test="req.iotName!=null and req.iotName!=''">
  11. and i.iot_name like concat('%',#{req.iotStatus},'%')
  12. </if>
  13. <if test="req.iotCode!=null and req.iotCode!=''">
  14. and i.iot_code like concat('%',#{req.iotCode},'%')
  15. </if>
  16. </where>
  17. </select>
  18. </mapper>