UserWxFollowMapper.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.zhongzheng.modules.user.mapper.UserWxFollowMapper">
  6. <resultMap type="com.zhongzheng.modules.user.domain.UserWxFollow" id="UserWxFollowResult">
  7. <result property="id" column="id"/>
  8. <result property="unionId" column="union_id"/>
  9. <result property="gzhOpenId" column="gzh_open_id"/>
  10. <result property="status" column="status"/>
  11. <result property="createTime" column="create_time"/>
  12. <result property="updateTime" column="update_time"/>
  13. </resultMap>
  14. <select id="getBatchList" parameterType="com.zhongzheng.modules.user.bo.UserWxFollowQueryBo" resultMap="UserWxFollowResult">
  15. SELECT
  16. *
  17. FROM
  18. user_wx_follow
  19. WHERE
  20. union_id IS NULL
  21. <if test="id != null">
  22. AND id > #{id}
  23. </if>
  24. ORDER BY
  25. id
  26. LIMIT 1000
  27. </select>
  28. <update id="truncateTable" >
  29. TRUNCATE TABLE user_wx_follow
  30. </update>
  31. </mapper>