后台服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 rivejä
1.4 KiB

  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.iformall.mapper.WxCuserFloatingLayerMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxCuserFloatingLayer">
  5. <id column="id" jdbcType="BIGINT" property="id"/>
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
  7. <result column="user_id" jdbcType="BIGINT" property="userId"/>
  8. <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
  9. </resultMap>
  10. <sql id="allColumns">
  11. `id`, `tenant_id` , `user_id` , `create_time`
  12. </sql>
  13. <sql id="dynamicWhereConditions">
  14. where 1 = 1
  15. <if test=" null != id ">
  16. and `id` = #{id}
  17. </if>
  18. <if test=" null != tenantId ">
  19. and `tenant_id` = #{tenantId}
  20. </if>
  21. <if test=" null != userId ">
  22. and `user_id` = #{user_id}
  23. </if>
  24. <if test=" null != ids ">
  25. and id in
  26. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  27. #{idItem}
  28. </foreach>
  29. </if>
  30. <if test=" null != sortColumns">order by ${sortColumns}</if>
  31. </sql>
  32. <select id="findList" parameterType="com.iformall.domain.po.WxCuserFloatingLayer" resultMap="BaseResultMap">
  33. select
  34. <include refid="allColumns"/>
  35. from wx_cuser_floating_layer
  36. <include refid="dynamicWhereConditions"/>
  37. </select>
  38. </mapper>