BmCbplMapper.xml 1.1 KB

123456789101112131415161718192021222324252627282930
  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.BmCbplMapper">
  4. <resultMap id="bmCbplMap" type="com.tofly.feesapi.bmgl.entity.BmCbpl">
  5. <id property="code" column="CODE"/>
  6. <result property="name" column="NAME"/>
  7. <result property="cbyf" column="CBYF"/>
  8. <result property="cbrq" column="CBRQ"/>
  9. <result property="bz" column="BZ"/>
  10. <result property="isdisabled" column="ISDISABLED"/>
  11. <result property="czry" column="CZRY"/>
  12. </resultMap>
  13. <select id="getMaxid" resultType="java.lang.String">
  14. select max(code) + 1
  15. from bm_cbpl
  16. </select>
  17. <select id="getPage" resultType="com.tofly.feesapi.bmgl.entity.BmCbpl">
  18. select * from bm_cbpl a
  19. where 1=1
  20. <if test="filter.searchText!=null">
  21. AND (a.code like '%${filter.searchText}%' or a.name like '%${filter.searchText}%' or a.cbyf like '%${filter.searchText}%' or a.bz like '%${filter.searchText}%' )
  22. </if>
  23. </select>
  24. </mapper>