DemandRewardMapper.xml 794 B

1234567891011121314151617181920212223
  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="cn.ubitech.ttc.dao.DemandRewardMapper">
  4. <select id="getDemandRewardListByStatus" resultType="cn.ubitech.ttc.entity.DemandReward" useCache="false">
  5. SELECT
  6. *
  7. FROM
  8. demand_reward dr
  9. WHERE 1=1
  10. AND dr.node = #{node}
  11. AND dr.restype = #{restype}
  12. <if test='demandstatus!=null'>
  13. AND dr.demandstatus IN
  14. <foreach collection="demandstatus" item="ids" index="index"
  15. open="(" close=")" separator=",">
  16. #{ids}
  17. </foreach>
  18. </if>
  19. ORDER BY
  20. dr.createtime DESC
  21. </select>
  22. </mapper>