BankDsdzxxMapper.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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.BankDsdzxxMapper">
  4. <resultMap id="bankDsdzxxMap" type="com.tofly.feesapi.sfds.entity.BankDsdzxx">
  5. <id property="id" column="ID"/>
  6. <result property="yhbh" column="YHBH"/>
  7. <result property="yhzwrq" column="YHZWRQ"/>
  8. <result property="sfrq" column="SFRQ"/>
  9. <result property="yhzwlsh" column="YHZWLSH"/>
  10. <result property="fffs" column="FFFS"/>
  11. <result property="xzje" column="XZJE"/>
  12. <result property="jfje" column="JFJE"/>
  13. <result property="dzbz" column="DZBZ"/>
  14. <result property="dzrq" column="DZRQ"/>
  15. <result property="yhdm" column="YHDM"/>
  16. </resultMap>
  17. <select id="getPage" resultType="com.tofly.feesapi.sfds.entity.dto.BankDsdzxxSelect">
  18. SELECT a.* FROM bank_dsdzxx a
  19. WHERE 1 = 1
  20. <if test="filter.yhdm!=null">
  21. AND a.yhdm = #{filter.yhdm}
  22. </if>
  23. <if test="filter.yhbh!=null">
  24. AND a.yhbh = #{filter.yhbh}
  25. </if>
  26. <if test="filter.dzbz!=null">
  27. AND a.dzbz = #{filter.dzbz}
  28. </if>
  29. <if test="filter.yhzwrqStart!=null and filter.yhzwrqEnd!=null">
  30. AND a.yhzwrq BETWEEN #{filter.yhzwrqStart} AND
  31. #{filter.yhzwrqEnd}
  32. </if>
  33. </select>
  34. </mapper>