EiSpbmMapper.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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.dzfp.mapper.EiSpbmMapper">
  4. <!--list查询-->
  5. <select id="selectListMap" resultType="java.util.Map">
  6. select * from EI_SPBM where 1=1
  7. <!--模糊查询 -->
  8. <if test="searchText!=null">
  9. AND (code like '%${searchText}%'
  10. OR name like '%${searchText}%'
  11. OR jc like '%${searchText}%'
  12. )
  13. </if>
  14. </select>
  15. <select id="selectMaxId" resultType="int">
  16. select max(code) from EI_SPBM where 1=1
  17. </select>
  18. <resultMap id="EiSpbmMap" type="com.tofly.feesapi.dzfp.entity.EiSpbm">
  19. <id property="code" column="CODE"/>
  20. <result property="name" column="NAME"/>
  21. <result property="jc" column="JC"/>
  22. <result property="sszlbm" column="SSZLBM"/>
  23. <result property="sszlmc" column="SSZLMC"/>
  24. <result property="sl" column="SL"/>
  25. <result property="dw" column="DW"/>
  26. <result property="yxbz" column="YXBZ"/>
  27. <result property="czry" column="CZRY"/>
  28. <result property="czsj" column="CZSJ"/>
  29. <result property="djHsbs" column="DJ_HSBS"/>
  30. <result property="yhZcbs" column="YH_ZCBS"/>
  31. <result property="yhZcmc" column="YH_ZCMC"/>
  32. <result property="lslBs" column="LSL_BS"/>
  33. </resultMap>
  34. </mapper>