BmCbfsMapper.xml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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.bmgl.mapper.BmCbfsMapper">
  4. <select id="selectListMap" resultType="java.util.Map">
  5. select * from bm_cbfs where 1=1
  6. </select>
  7. <resultMap id="bmCbfsMap" type="com.tofly.feesapi.bmgl.entity.BmCbfs">
  8. <id property="code" column="CODE"/>
  9. <result property="name" column="NAME"/>
  10. <result property="isdisabled" column="ISDISABLED"/>
  11. <result property="xh" column="XH"/>
  12. <result property="cdate" column="CDATE"/>
  13. <result property="ocode" column="OCODE"/>
  14. </resultMap>
  15. <select id="getPage" resultType="com.tofly.feesapi.bmgl.entity.BmCbfs">
  16. SELECT a.* FROM bm_cbfs a
  17. WHERE 1 = 1
  18. <if test="filter.code!=null">
  19. AND a.code like '%${filter.code}%'
  20. </if>
  21. <if test="filter.name!=null">
  22. AND a.name like '%${filter.name}%'
  23. </if>
  24. </select>
  25. </mapper>