PassBackMapper.xml 969 B

1234567891011121314151617181920212223242526272829303132333435
  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.unis.transaction.server.dao.PassBackDao">
  4. <select id="selectDetail" resultType="com.unis.transaction.server.entity.givebackbail.PassBackDO">
  5. select * from ty_jywcjtk
  6. <where>
  7. <if test="ccbm !=null and ccbm!=''">
  8. and ccbm = #{ccbm}
  9. </if>
  10. </where>
  11. </select>
  12. <select id="selectPageList" resultType="com.unis.transaction.common.vo.givebackbail.PassBackVO">
  13. select
  14. *
  15. from
  16. ty_jywcjtk tk
  17. <where>
  18. <if test="tkzt != null">
  19. and tk.tkzt=#{tkzt}
  20. </if>
  21. <if test="jylx != null">
  22. and tk.jylx=#{jylx}
  23. </if>
  24. <if test="tkztList!= null">
  25. and tk.tkzt in
  26. <foreach collection="tkztList" item="item" open="(" close=")" separator=",">
  27. #{item}
  28. </foreach>
  29. </if>
  30. </where>
  31. order by tk.apcc desc
  32. </select>
  33. </mapper>