IotProductMapper.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.middle.platform.manage.biz.mapper.IotProductMapper">
  4. <resultMap id="BaseResultMap" type="com.middle.platform.manage.biz.entity.IotProduct">
  5. <!--@mbg.generated-->
  6. <!--@Table iot_product-->
  7. <id column="id" jdbcType="BIGINT" property="id" />
  8. <result column="code" jdbcType="VARCHAR" property="code" />
  9. <result column="name" jdbcType="VARCHAR" property="name" />
  10. <result column="secret" jdbcType="VARCHAR" property="secret" />
  11. <result column="node_type" jdbcType="TINYINT" property="nodeType" />
  12. <result column="network_type" jdbcType="TINYINT" property="networkType" />
  13. <result column="report_protocol" jdbcType="TINYINT" property="reportProtocol" />
  14. <result column="vendors" jdbcType="TINYINT" property="vendors" />
  15. <result column="data_format" jdbcType="TINYINT" property="dataFormat" />
  16. <result column="auth_type" jdbcType="TINYINT" property="authType" />
  17. <result column="tag" jdbcType="VARCHAR" property="tag" />
  18. <result column="size" jdbcType="INTEGER" property="size" />
  19. <result column="remark" jdbcType="VARCHAR" property="remark" />
  20. <result column="create_by" jdbcType="BIGINT" property="createBy" />
  21. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  22. <result column="update_by" jdbcType="BIGINT" property="updateBy" />
  23. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  24. <result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime" />
  25. <result column="del_flag" jdbcType="TINYINT" property="delFlag" />
  26. </resultMap>
  27. <sql id="Base_Column_List">
  28. <!--@mbg.generated-->
  29. id, code, `name`, secret, node_type, network_type, report_protocol, data_format, vendors,
  30. auth_type, tag, `size`, remark, create_by, create_time, update_by, update_time, delete_time,
  31. del_flag
  32. </sql>
  33. <select id="pageQuery" resultType="com.middle.platform.manage.biz.domain.vo.IotProductVo">
  34. select *
  35. from iot_product ip
  36. <where>
  37. <if test="keywords != null and keywords != ''">
  38. and ip.name like concat('%', #{keywords,jdbcType=VARCHAR}, '%')
  39. </if>
  40. and ip.del_flag = 0
  41. </where>
  42. </select>
  43. </mapper>