BankDsdzhzMapper.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  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.tofly.feesapi.sfds.mapper.BankDsdzhzMapper">
  4. <resultMap id="bankDsdzhzMap" type="com.tofly.feesapi.sfds.entity.BankDsdzhz">
  5. <id property="id" column="ID"/>
  6. <result property="yhzwrq" column="YHZWRQ"/>
  7. <result property="fffs" column="FFFS"/>
  8. <result property="xzbs" column="XZBS"/>
  9. <result property="xzje" column="XZJE"/>
  10. <result property="jfbs" column="JFBS"/>
  11. <result property="jfje" column="JFJE"/>
  12. <result property="dzbz" column="DZBZ"/>
  13. <result property="yhdm" column="YHDM"/>
  14. <result property="dzrq" column="DZRQ"/>
  15. </resultMap>
  16. <select id="getPage" resultType="com.tofly.feesapi.sfds.entity.dto.BankDsdzhzSelect">
  17. SELECT a.* FROM bank_dsdzhz a
  18. WHERE 1 = 1
  19. <if test="filter.yhdm!=null">
  20. AND a.yhdm = #{filter.yhdm}
  21. </if>
  22. <if test="filter.dzbz!=null">
  23. AND a.dzbz = #{filter.dzbz}
  24. </if>
  25. <if test="filter.yhzwrqStart!=null and filter.yhzwrqEnd!=null">
  26. AND a.yhzwrq BETWEEN #{filter.yhzwrqStart} AND
  27. #{filter.yhzwrqEnd}
  28. </if>
  29. <if test="orders!=null">
  30. order by a.yhzwrq asc
  31. </if>
  32. </select>
  33. </mapper>